♥ 0 |
Hi Hahn, I am trying to build a scanner where current 5m candle crosses previous week’s high. I tried using aggregation period but it does not allow secondary aggregation period for scan. Request you to help me as to how I can get previous week’s high. Thank you in advance.
I tried this based on your previous day’s data, but this is not giving expected result. I may not be using it in the right way. rec previousWeekHigh = if GetWeek() <> GetWeek()[1] then high[1] else previousWeekHigh[1]; plot h1 = previousWeekHigh; h1.SetPaintingStrategy(PaintingStrategy.LIne); h1.setDefaultColor(Color.red);
Regards, Misha RESOLVED
Marked as spam
|
Please log in to post questions.