what causes an EA not to work after attaching it in the chart
- help, how to launch an EA in live trading
- ATTENTION;ALL EAs IN ONLINE LIBERARY DOES NOT WORK IN LIVE TRADING,WHY
- Indicators From the Market Not Attaching to Charts After Windows 11 update
JB
Look for error messages in the Journal & Experts tabs of the Terminal view.
Also, you may have to wait a while before it does anything!
Which is why I add something like this to show if the EA is 'awake'!
Paste it in just below the start function line, so that it runs every tick
start() { Comment("SelectFX Expert Adviser\n", "Forex Account Server:",AccountServer(),"\n", "Account Balance: $",AccountBalance(),"\n", "Price: ",NormalizeDouble(Bid,4),"\n", "Date: ",Month(),"-",Day(),"-",Year()," Server Time: ",Hour(),":",Minute(),":",Seconds(),"\n", "Minimum Lot Size: ",MarketInfo(Symbol(),MODE_MINLOT)); // Rest of your code START
// Rest of your code END return(0); }
You will see the price & time changing if the EA is working OK.
So then, if there is no errors and no orders, its because the conditions in the code have not been met...
-BB-