[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding the first bar of chart



PureBytes Links

Trading Reference Links







I am wanting to set upa
long term MA. In some cases there would not be enough history data to create
this MA. I then will set it to the number of bars possible.

My query, and I know this
has been asked before, and cannot remember. How can I write in an AFL to find
the first bar for the stock and then define this to use in an MA.

I will use the lesser of 500 bars or total bars in
chart.

 

Thanks in advance

Graham