Forums › ProRealTime English forum › ProBuilder support › DAYS statement: Malfunction? › Reply To: DAYS statement: Malfunction?
04/20/2020 at 8:37 PM
#127127
DAYS Statement test
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
if barindex > 0 then a = days b = days[1] c = a-b if barindex mod 2 = 0 then DRAWTEXT("a#a#", barindex, high*1.03) DRAWTEXT("b#b#", barindex, high*1.025) DRAWTEXT("c#c#", barindex, high*1.020) else DRAWTEXT("a#a#", barindex, low*0.99) DRAWTEXT("b#b#", barindex, low*0.98) DRAWTEXT("c#c#", barindex, low*0.97) endif endif return |
Attach file .itf and print of chart.
DAYS not work as DAYSOFWEEK, DAYS return a number that always growth.