EA created won’t open any trades
9 replies
ggiang
6 years ago #250793
I have coded an idea as below, but it won’t open any trades.
Would appreciate any help.
====================================================================
Pseudo Source Code of BBands Sell Side Re-Creation Attempt 1
Generated by StrategyQuant EA Wizard version 2.0.1
Generated at Wed Dec 04 10:29:00 EST 2019
====================================================================
//——————————————————————–
// Variables
MaxSlippage = 3;
VerboseMode = 1;
//——————————————————————–
// Go short
IF (IsBarOpen is True) && (((Close[2] >= BollingerBand_Upper( 20 , 2 , 0 , Close )[2])
And (Close[1] <= BollingerBand_Upper( 20 , 2 , 0 , Close )[1])))
THEN
Sell (MoneyManagement computed) lots at Market
Magic Number = 5;
END IF;
0
Truong Cao Xuan
6 years ago #250797
You need to set golbal SL/TP
0
ggiang
6 years ago #254668
I’ve added the global SL and TP.
Still won’t open any trades.
If anyone can help, would be much appreciated.
The code is as below:
====================================================================
Pseudo Source Code of BBands Sell Side Re-Creation Attempt 4
Generated by StrategyQuant EA Wizard version 2.0.1
Generated at Thu Dec 05 14:11:00 EST 2019
====================================================================
//——————————————————————–
// Variables
MaxSlippage = 3;
VerboseMode = 1;
//——————————————————————–
// Go short
IF (((Close[2] >= BollingerBand_Upper( 20 , 2 , 0 , Close )[2])
And (Close[1] <= BollingerBand_Upper( 20 , 2 , 0 , Close )[1])))
THEN
Sell 0.1 lots at Market
Magic Number = 5;
Stop Loss = Global pips;
Profit Target = Global pips;
END IF;
0
Truong Cao Xuan
6 years ago #254669
Still won’t open any trades = No signal!!!
You might run back test on mt4 to check.
0
ggiang
6 years ago #254670
Hi Truong,
I have run a backtest on MT4 using visual mode, and I can definitely see the signal, but no trades opening.
I coded the strategy using a different EA builder software but also wanted to try building with EA Wizard to become more familiar.
Thanks for you help anyway, looking forward to anyone else’s input
0
Tomas Matejka
6 years ago #254720
Works like a charm for me. Have you checked the MT journal for possible errors?
0
ggiang
6 years ago #254726
I attached the journal file.
It doesn’t seem to have any errors – or am I missing something?
Did you make any modifications to the strategy file, tomas262?
0
Tomas Matejka
6 years ago #254735
No modifications whatsoever, just straight export into MT4
0
ggiang
6 years ago #254736
Ok.
i wonder why it’s not working for me then.
what version/build of MT4 are you using?
could it be that your settings/parameters in EA Wizard are different to mine?
0
ggiang
6 years ago #254737
Hi, I figured out the issue.
I was copying the file from a different save location to the experts folder and not directly saving the file into the experts folder.
Glad I did some re-reading of the user guide. Thanks for the replies.
0
Viewing 9 replies - 1 through 9 (of 9 total)