Averages Comparison...!!!


New Member

I have 6 averages. On a particular day, if I want to know which is the highest average & lowest average and the difference between highest & lowest, what code should I write ?

I have tried HHV, HighestSince and a few other options but I lost the way in between. I dont know how to move further. Please guide & help

Achal, I think you are going to need to write a loop to compare the averages and then rank them, or possibly a long long list of IIF statements.

Something very similar was recently discussed and answered on the official amibroker forum, you should probably look there and adapt the coded answers to your specific problem.

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Are you a day trader?