| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| SIMPLE EA CODING HELP https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1123 |
Page 1 of 1 |
| Author: | kostas17881 [ Tue Nov 20, 2012 3:25 pm ] |
| Post subject: | 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 |
|
| Author: | garyfritz [ Tue Nov 20, 2012 5:57 pm ] |
| Post subject: | 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... |
|
| Author: | kostas17881 [ Wed Nov 21, 2012 6:37 pm ] |
| Post subject: | Re: SIMPLE EA CODING HELP |
It works!thank you very much! |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|