I hope I understood you correctly
if(TradeOrNotA == true) { Alert("You can take a trade TradeOrNotA"); } else if (TradeOrNotB == true) { Alert("You can take a trade TradeOrNotB"); } else { Alert("Conditions not optimal"); }
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
Hello all
I am coding an EA which trades when price closes below/above a 10 SMA, along with confirmation from 2 other indicators. The only problem is, that sometimes all criteria are met several candles AFTER the initial cross, so simply saying "if((TenSMA > Ask) && (etc, etc))" doesnt suffice. I have written a script to test for this, but no matter what the candle position is, the result the script gives me is the same: