Hi newschool,
I have been visually backtesting the ea that you kindly coded for me, and it has thrown up this rather major problem having to do with multiple order entries when the price whipsaws around the intertwined emas. Have a look at the attached picture.
One way to prevent this would be to code a condition that if a contrary signal is issued whilst one trade is still live, the live trade should be closed before the new signal is taken. That way at any given time only one trade would be active.
So for example if a short trade has triggered and then the price reverses shortly thereafter with the criteria being met for a long trade to be taken, then before the long trade is taken, the ea must first close out the short trade.
Is it possible for you to make this change to the ea?
I code your strategy into an EA
Moderator: moderators
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.
newschool wrote:Well hedging function will permit multiple orders... dont you check the inputs before running the EA ? Its all here..
The reason I asked is because the hedging input is a numerical value, and not a true or false input. So if I enter 0 next to hedging input, will it turn hedging off?
Also I am running into this error in back testing:
"farizu_EA: stopped due test limit "profit maximum=10000" reached with inputs: Lots=1..."
why has a profit maximum of $10000 been placed on the ea?
Many thanks for your ongoing help!
newschool wrote:hmm first you need to make the small change I talked about
then yes, boolean inputs accept both true/false and 1/0
PS: you shouldnt do forex on a saturdays night
well the only time i have to optimize this baby is on saturday nights!
Thanks again for your answers...this ea is looking pretty good on some of the back tests...
have you tried to optimise the settings at all?
Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.
Thank you for your support.