Rank: Newbie
Groups: Registered Users, Subscribers Joined: 11/11/2015(UTC) Posts: 3
|
Hello there,
I took my time, counted every trading day, and came up with these formulas for years when there are 252 trading days in USA.
Jan Ref(ROC(C,19,%),-232) 20 trading days,19 to calculate on
252 trading days – 20 trading days for Jan = 232 to push ROC back
Feb Ref(ROC(C,18,%),-213)
March Ref(ROC(C,21,%),-191)
April Ref(ROC(C,20,%),-170)
May Ref(ROC(C,19,%),-150)
June Ref(ROC(C,21,%),-128)
July Ref(ROC(C,21,%),-106)
Aug Ref(ROC(C,20,%),-85)
Sep Ref(ROC(C,20,%),-64)
Oct Ref(ROC(C,21,%),-43)
Nov Ref(ROC(C,21,%),-23)
Dec ROC(C,21,%)
One has to bear in mind that the number of trading days always changes monthly and sometimes yearly.
252 trading days in 2010, but only 250 in 2012.
I started in The Explorer but it can also be done in Expert Advisor.
Steve Achelis is great!
And ‘MS Support’ is great too.
Thank you for helping.
|