Skip to content

Commit 74abc02

Browse files
Update Indicator_Donchian_Channel.ipynb
Thank You For Valuable Suggestion. I think its better to avoid confusion Dochian Channel Formula Updated
1 parent ae5c3b8 commit 74abc02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/Indicator_Donchian_Channel.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
"#Data Used In This Example\n",
2525
"df = pd.read_csv(infile, index_col=0, parse_dates=True)\n",
2626
"#For Calcultation Dochian Channel\n",
27-
"#period = 10\n",
28-
"#df['DCU_10_15'] = df['High'].rolling(period).max()\n",
27+
"#df['DCL_10'] = df['Low'].rolling(10).min()\n",
2928
"#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"
29+
"#df['DCM_10_15'] = (df['DCL_10'] + df['DCU_15']) / 2\n"
3130

3231
]
3332
},

0 commit comments

Comments
 (0)