- Sākumlapa
- Kopiena
- Programmēšana
- Calculate exact 2 MA crossover price
Edit Your Comment
Calculate exact 2 MA crossover price
forex_trader_339107
Biedrs kopš
5 ieraksti
Jun 26, 2016 at 12:01
Biedrs kopš
5 ieraksti
Hello,
I'm developing own indicator and i want to calculate/predict exact 2 MA crossover price. Does anyone have formula how to do this?
For example i have Fast MA 10, and Slow MA 20 and i want to calculate crossover price before crossover happen to draw horizontal line at this level.
I'm developing own indicator and i want to calculate/predict exact 2 MA crossover price. Does anyone have formula how to do this?
For example i have Fast MA 10, and Slow MA 20 and i want to calculate crossover price before crossover happen to draw horizontal line at this level.
forex_trader_25447
Biedrs kopš
131 ieraksti
Jun 26, 2016 at 16:30
(labots Jun 26, 2016 at 16:31)
Biedrs kopš
131 ieraksti
Mathematically You have to made extrapolation of both MA,
( or simply use their current speed : MA[i]-MA[i-1] )
and find time where they replace positions :
( ( MA1[i-1]>MA2[i-1] && MA1[i]<MA2[i] ) || ( MA1[i-1]<MA2[i-1] && MA1[i]>MA2[i] ) )
( or simply use their current speed : MA[i]-MA[i-1] )
and find time where they replace positions :
( ( MA1[i-1]>MA2[i-1] && MA1[i]<MA2[i] ) || ( MA1[i-1]<MA2[i-1] && MA1[i]>MA2[i] ) )
forex_trader_29148
Biedrs kopš
1916 ieraksti
forex_trader_339107
Biedrs kopš
5 ieraksti
Jun 27, 2016 at 05:40
Biedrs kopš
5 ieraksti
So i have,...
FastMAPrice = NormalizeDouble(iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, 0), Digits);
SlowMAPrice = NormalizeDouble(iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, 0), Digits);
And how can i find exact price when MAs will be crossed?
FastMAPrice = NormalizeDouble(iMA(NULL, 0, 10, 0, MODE_SMA, PRICE_CLOSE, 0), Digits);
SlowMAPrice = NormalizeDouble(iMA(NULL, 0, 20, 0, MODE_SMA, PRICE_CLOSE, 0), Digits);
And how can i find exact price when MAs will be crossed?
forex_trader_339107
Biedrs kopš
5 ieraksti
*Spams netiks pieļauts, un tā rezultātā var slēgt kontu.
Tip: Posting an image/youtube url will automatically embed it in your post!
Tip: Type the @ sign to auto complete a username participating in this discussion.