HELP WITH ERROR 4107

Post Reply
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 »

Yes we can 8-) - but (maybe) not today.
I will just copy the candletrail-function and adjust it to have a look to the atr each candle.

pls. allow a little bit time ;)
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:Yes we can 8-) - but (maybe) not today.
I will just copy the candletrail-function and adjust it to have a look to the atr each candle.

pls. allow a little bit time ;)
Thank you very much.

There is no hurry. The mod ea is doing very well as it is.

Just an idea about a suitable trailing stop, be it atr based or ma based as in Bob's 10.6.

The attached chart shows ATR TRAILING STOP FOR THE DOW JONES, PERIOD 14, ATR 2.0. Some traders use Period 21 and ATR 3.0.
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 »

if I did not overlook something that should work :mrgreen:
You have to enable the AtrTrailingStop, by default its deactivated.
I suggest to set the variables as you need them and "hardcode" it (better than using setfiles ...).
version 2 attached
You do not have the required permissions to view the files attached to this post.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:if I did not overlook something that should work :mrgreen:
You have to enable the AtrTrailingStop, by default its deactivated.
I suggest to set the variables as you need them and "hardcode" it (better than using setfiles ...).
version 2 attached
Thank you very much again !

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

Re: HELP WITH ERROR 4107

Post by fx800 »

After all the trouble we went through with the pending order modification, I have just discovered that adding the following code to the condition for buy works just as well, and vice versa for sell

Code: Select all

if (Ask > iHigh(Symbol(),0,1) + (Buffer / factor)) 
For a long, if Ask price is > the high of the previous candle plus buffer, then the trade is triggered. Otherwise, no trade. The previous candle is the one that closed above 60LWMA.
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 »

fx8000 wrote:

Code: Select all

if (Ask > iHigh(Symbol(),0,1) + (Buffer / factor)) 
For a long, if Ask price is > the high of the previous candle plus buffer, then the trade is triggered. Otherwise, no trade. The previous candle is the one that closed above 60LWMA.
thanks. :)
It is possible to implement - if Ask > iHigh(...) enter with marketorder, otherwise with pending-stoporder, right? :idea:

Actually I am with Pedigree on this drag-tp/sl ea to get it working as desired/improved, ... (looks good) :mrgreen:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Hi Fxdaytrader,

Many pairs are trading outside WR2 and are really struggling.

Another improvement would be a boundary filter like MrLong's Multi 10.4 trader.
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 »

what do you mean with boundary filter? pls. explain, I do not have a clue :roll:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:what do you mean with boundary filter? pls. explain, I do not have a clue :roll:
E.g. Do not buy above WR2 or sell below WS2.

At the moment, many of the longs above WR2 are struggling to go any higher and vice versa.

Using WEEKLY PIVOTS AS BOUNDARIES is better than xxx ADR AWAY FROM TREND MA like in the Multi 10.4 trader.

In general, I do not like to buy above WR1 or sell below WS1. I like to trade within these two boundaries, hoping to buy from WS1 or WP and tp at WR1, and vice versa.
Last edited by Anonymous on Fri Sep 13, 2013 12:16 pm, edited 1 time in total.
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 »

ah, ok.
yes, we can do that, will be one more external parameter then ...
:idea:
Post Reply

Return to “Coders Hangout”