EA doesn't open LIVE trades
The attached is a bad strategy for testing only (don't actually trade it). On axitrader it won't open during live trading but it will open
during demo trading and in the strategy tester (yes, I have a smiley face, enabled auto trading, etc.) It was generated with
fxpro quant.
I tested it on the M1 chart and it opens on a new bar on a demo account. But on a live account it doesn't open. Any thoughts?
Files:
0000001_testing_see_if_open.mq4
8 kb
- Reverse Trade HELP
- Questions from Beginners MQL4 MT4 MetaTrader 4
- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
ok, but why did it work in demo and not live?
No idea. A Print(Volume[0]) could tell you what's going on. Would be interesting to know.
i think it's .... Code
says if (free-margin/1000)*(input lot size) is less than minimum lot, to not send orders. Beerrun over in forexfactory helped me. My live
amount is less than $1000. So it wouldn't open. Thanks for your help!
This ea is less complicated than the other one I'm working on. Thanks, that should be very helpful.
lippmaje: Most likely the new bar check fails:
For a new bar test, Bars is unreliable (a refresh/reconnect can change
number of bars on chart,) volume is unreliable (miss ticks,) Price is unreliable
(duplicate prices and The == operand. -
MQL4 programming forum.)
Always use time.I disagree with making a new bar function, because it can only be called once per tick. A variable can be tested multiple times.
New candle - MQL4 programming forum
Comments that do not relate to this topic, have been moved to "My expert advisor doesnot open live Trades Please help me out".

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