Do you have a smiley face in the top right corner of the chart? if not try in terminal menu tools>options>experts>enable experts
V
look like you are running demo on brokers' doesn't accept instant order, try to fix your code at OrderSend by set stoploss/ ttekaeprofit = 0, then use Ordermodify to set sl/tp.
Do you have a smiley face in the top right corner of the chart? if not try in terminal menu tools>options>experts>enable experts
V
Yes, the smiley is on the chart.
At yster,
i have tested the EA on 3 Brokers on demo, and the problem was always the same.
WHAT PROBLEM? In other words, what error is being reported in the journal?
CB
WHAT PROBLEM? In other words, what error is being reported in the journal?
CB
No error in the journal. Only "EA is loaded sucessful". No more. Thats mystical and my problem. thaks
Time to check the obvious - are experts enabled, is live trading enabled (in other words have you a smiley face in the top right of the chart).
If so, then it is time to start littering your code with Print() statements to tell you what logic is being executed and what is the content of various key variables (like Bars and Long_MA_Period).
CB
Time to check the obvious - are experts enabled, is live trading enabled (in other words have you a smiley face in the top right of the chart).
If so, then it is time to start littering your code with Print() statements to tell you what logic is being executed and what is the content of various key variables (like Bars and Long_MA_Period).
CB
Ok there is a smiley of the chart. Print() statements, can you explain me this more exacly (example)????
Andy
hi, most likely your broker uses some kind of ECN-bridge and you are Sending Orderstoploss/Takeprofit inside the Ordersend(), you have to send the order first with empty SL/TP and then set the SL/TP with a OrderModify();
hi,
I´ve tested it. TP / SL =0 but no open order. I´m frustrated. Why run´s the program only on Strategytester and not on Demo Account. I´ve no mor ideas.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
my EA runs on the Strategytester but not on the Demoaccount. Why??? Have someone an Idea??? Thanks.
Andy