Hi all, I'm trying to program the following idea in a loop, but could use some help.
Right now i have the following code to measure the high of a specific time range. (4 hour timerange) H1 = ValueWhen(timerange, TimeFrameGetPrice( "H", inHourly, 0, expandFirst)); H2 = ValueWhen(timerange, TimeFrameGetPrice( "H", inHourly, -1, expandFirst)); H3 = ValueWhen(timerange, TimeFrameGetPrice( "H", inHourly, -2, expandFirst)); H4 = ValueWhen(timerange, TimeFrameGetPrice( "H", inHourly, -3, expandFirst)); Max1 = Max(H1,H2); Max2 = Max(H3,H4); High = Max(Max1,Max2); As you can see the High is measured every hour. But i want to measure it every minute. The code for that would be very long if i continued programming in this way. Thats why i think it should be done in a loop, but i have not enough programming skills to do that. Can anyone help me with it? regards
