looping in amibroker

#1
hii

some one write the code for the following condition


from the start of the chart (from beginning),
on the sixth bar of the chart.. calculate the highest value of the previous 5 bars and plot it

on the seventh bar add the previous by 5 ,
on the eighth bar add the previous value by 5
the loop must complete until the end of bars

if you have doubts .. i will explain
thankyou
 
#3
How about if I want to plot let's say Average price of day 123 , 456 , 789 , 101112 ..... and so on. Kindly please advise. Thank you in advance
 

Similar threads