HELP WITH ERROR 4107

Post Reply
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Hi Marc,

I have added your weekly pivot boundary filter code snippet to ChangeTheColourDPC ea.

Have I done it correctly ?

Thanks.
peter
You do not have the required permissions to view the files attached to this post.
User avatar
fxdaytrader
Trader
Posts: 190
Joined: Sun Jun 10, 2012 7:03 am
Location: Poon-Town (germany, se-asia, se-europe) ...

Re: HELP WITH ERROR 4107

Post by fxdaytrader »

I think so, but it depends on what you would like to ensure.

At the moment it does
for BUY:
if (PRICE > (PIVOTXYZ) THEN DO NOT TRADE

for SELL:
if (PRICE < (PIVOTXYZ) THEN DO NOT TRADE

and if none of the conditions is met, then ALLOW TRADE (the last return(true)) ...

In brief: If the functions returns(TRUE) then the EA will open a trade, if the functions returns(FALSE) then it does NOT OPEN A TRADE. :P
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:I think so, but it depends on what you would like to ensure.

At the moment it does
for BUY:
if (PRICE > (PIVOTXYZ) THEN DO NOT TRADE

for SELL:
if (PRICE < (PIVOTXYZ) THEN DO NOT TRADE

and if none of the conditions is met, then ALLOW TRADE (the last return(true)) ...

In brief: If the functions returns(TRUE) then the EA will open a trade, if the functions returns(FALSE) then it does NOT OPEN A TRADE. :P
Thanks for your comments. I just wanted to make sure the code snippet is added correctly before posting it for general download in Master Zen thread.

At the moment, the default setting is do not trade outside WR2/WS2. This should keep the ea out of trouble when a pair is trading well outside its normal boundaries.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Another "improvement" to your BASA mod ?

Close all trades when basket profit is 5%.

Your mod ea made 6% today trading 0.2 lots on 10k demo, well done Marc :!:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Any chance of a Multipair BASA.fxdaytrader with pending orders ?

:D
Post Reply

Return to “Coders Hangout”