If anyone have formula how to calculate exact price for next 2 MA crossover please post it.
I have 2 MAs, and wanted to know at what price next crossover will happen.
SlowMAPrice = NormalizeDouble(iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, 0), Digits);
Do the math.
SMA10 = (x + Close + ... + Close) / 10
SMA20 = (x + Close + ... + Close) / 20
Cross is SMA10 == SMA20, solve for x. Good until the next bar.