stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

HELP WITH ERROR 4107
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2914
Page 13 of 18
Author:  fxdaytrader [ Wed Sep 11, 2013 6:32 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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 ;)
Author:  fx800 [ Wed Sep 11, 2013 10:22 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fxdaytrader [ Thu Sep 12, 2013 7:45 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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
Author:  fx800 [ Thu Sep 12, 2013 8:00 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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
Author:  fx800 [ Thu Sep 12, 2013 9:56 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fxdaytrader [ Thu Sep 12, 2013 10:10 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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:
Author:  fx800 [ Fri Sep 13, 2013 11:57 am ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fxdaytrader [ Fri Sep 13, 2013 12:00 pm ]
Post subject:  Re: HELP WITH ERROR 4107

what do you mean with boundary filter? pls. explain, I do not have a clue :roll:
Author:  fx800 [ Fri Sep 13, 2013 12:06 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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.
Author:  fxdaytrader [ Fri Sep 13, 2013 12:11 pm ]
Post subject:  Re: HELP WITH ERROR 4107

ah, ok.
yes, we can do that, will be one more external parameter then ...
:idea:
All times are UTC Page 13 of 18