SIMPLE EA CODING HELP
-
kostas17881
- Posts: 2
- Joined: Mon Oct 01, 2012 9:50 pm
SIMPLE EA CODING HELP
Hi,can someone please help me to modify the attached ea.I want to have the option to trade only long or only sort.thanks in advance
You do not have the required permissions to view the files attached to this post.
-
garyfritz
Re: SIMPLE EA CODING HELP
From a quick glance, it looks like it should be easy.
Define your switches:
extern bool EnterLong=true;
extern bool EnterShort=true;
Then in lines 163-165, change them to:
if (EnterLong && Buy1_1 > Buy1_2) Order = SIGNAL_BUY;
if (EnterShort && Sell1_1 < Sell1_2) Order = SIGNAL_SELL;
I haven't tested it, but I think that will do it...
Define your switches:
extern bool EnterLong=true;
extern bool EnterShort=true;
Then in lines 163-165, change them to:
if (EnterLong && Buy1_1 > Buy1_2) Order = SIGNAL_BUY;
if (EnterShort && Sell1_1 < Sell1_2) Order = SIGNAL_SELL;
I haven't tested it, but I think that will do it...
-
kostas17881
- Posts: 2
- Joined: Mon Oct 01, 2012 9:50 pm
Re: SIMPLE EA CODING HELP
It works!thank you very much!