I would like to create a backtest that has me entering when the price == MA value (or any other indicator). I don't know how to acquire past bar values to do this. One thought would be to test & see if the MA value was between the price high & low, but the only means I know to do this involves using getValue(). How to then align the values, especially if in an array. Use bar index? The numbers for a 2 minute chart going back 30 days alone would be huge. Just as much so, if data is loading for a certain amount of historical data, how to get the starting date? Most importantly, this is bumping into, & probably beyond, my limited programming skills.
Any help is greatly appreciated.
Thanks,
Greg
Any help is greatly appreciated.
Thanks,
Greg
Comment