SIMPLE EA CODING HELP

Post Reply
kostas17881
Posts: 2
Joined: Mon Oct 01, 2012 9:50 pm

SIMPLE EA CODING HELP

Post by kostas17881 »

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

Post by garyfritz »

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...
kostas17881
Posts: 2
Joined: Mon Oct 01, 2012 9:50 pm

Re: SIMPLE EA CODING HELP

Post by kostas17881 »

It works!thank you very much!
Post Reply

Return to “Coders Hangout”