Skip to content

Commit 5582a4b

Browse files
Update Indicatior_Donchian_Channel.ipynb
Formula For Dochian Channel Calculation Updated
1 parent 93f4366 commit 5582a4b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/Indicatior_Donchian_Channel.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@
2121
"source": [
2222
"infile = 'data/t_data.csv'\n",
2323
"\n",
24-
"df = pd.read_csv(infile, index_col=0, parse_dates=True)"
24+
"#Data Used In This Example\n",
25+
"df = pd.read_csv(infile, index_col=0, parse_dates=True)\n",
26+
"#For Calcultation Dochian Channel\n",
27+
"#period = 10\n",
28+
"#df['DCU_10_15'] = df['High'].rolling(period).max()\n",
29+
"#df['DCM_10_15'] = df['Low'].rolling(period).min()\n",
30+
"#df['DCL_10_15'] = (df['DCU_10_15] + df['DCL_10_15']) / 2\n"
31+
2532
]
2633
},
2734
{

0 commit comments

Comments
 (0)