Assuming that:
- All 3 bars are consecutive bars: current bar, previous bar, and previous-previous bar.
- Above EMA means the whole bar is above EMA, ie. the low value of the bars is above EMA
double ema = iMA(NULL,0,13,0,MODE_EMA,PRICE_LOW,0); bool above = Low[0] > ema && Low[1] > ema && Low[2] > ema; if( above ) { // the 3 bars are above EMA13 }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hey guys...........i need a solution to the this question:
what is the syntax to write on : check if 3bars are above 13 period_EMA.