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

HELP WITH ERROR 4107
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2914
Page 14 of 18
Author:  fx800 [ Fri Sep 13, 2013 12:19 pm ]
Post subject:  Re: HELP WITH ERROR 4107

fxdaytrader wrote:ah, ok.
yes, we can do that, will be one more external parameter then ...
:idea:
Sorry about that ! :oops:

Your mod ea was doing very well until this week when many pairs are over-extended, and the ea is at present struggling to make a profit.

Better to have no trades than losing trades !
Author:  fxdaytrader [ Fri Sep 13, 2013 12:56 pm ]
Post subject:  Re: HELP WITH ERROR 4107

try this one, should work 8-)
set UseBoundaryFilter = true and the BoundaryMode

for example, if BoundaryMode=1 and the filter enabled,
then it will not take trades if Bid > WR1 for BUYs and no trades for SELLs if Bid < WS1
Author:  fx800 [ Fri Sep 13, 2013 1:28 pm ]
Post subject:  Re: HELP WITH ERROR 4107

fxdaytrader wrote:try this one, should work 8-)
set UseBoundaryFilter = true and the BoundaryMode

for example, if BoundaryMode=1 and the filter enabled,
then it will not take trades if Bid > WR1 for BUYs and no trades for SELLs if Bid < WS1
Fantastic ! and thanks. Feedback next week.

In forex, LESS IS MORE. Cut out the bad trades and the profits will grow.

:D :D :D
Author:  milanese [ Fri Sep 13, 2013 1:37 pm ]
Post subject:  Re: HELP WITH ERROR 4107

Hi fx8000 and fxdaytrader,

thanks for this thread :D

Wish you two a very nice weekend!

Cheers :)

Tommaso
Author:  fx800 [ Fri Sep 13, 2013 3:18 pm ]
Post subject:  Re: HELP WITH ERROR 4107

milanese wrote:Hi fx8000 and fxdaytrader,

thanks for this thread :D

Wish you two a very nice weekend!

Cheers :)

Tommaso
Thank fxdaytrader.

I am the one who is benefitting from all his hard work.

;)
Author:  fx800 [ Sat Sep 14, 2013 3:15 pm ]
Post subject:  Re: HELP WITH ERROR 4107

Hi Fxdaytrader,

I am trading H1 time frame, should ATR time frame be set to 60 or 1440, using the daily average true range :?: :?

Code: Select all

//ATR trailing, fxdaytrader
extern string   ats="----ATR jumping stop----";
extern bool     UseAtrTrailingStop=true;
extern int      AtrTSPeriod=20;//old: 0 turns off atr. > 0 overrides StopLossPips
extern int      AtrTSTimeFrame=1440;//Allows tf independent of the chart. 0 means current chart
extern double   AtrTSMultiplier=2; 
Author:  fxdaytrader [ Sun Sep 15, 2013 12:27 pm ]
Post subject:  Re: HELP WITH ERROR 4107

For the daily 1440 (because 1 day = 24 hours = 24 X 60 minutes = 1440 minutes)

see also: http://docs.mql4.com/constants/timeframes
:idea:
Author:  fx800 [ Sun Sep 15, 2013 1:27 pm ]
Post subject:  Re: HELP WITH ERROR 4107

fxdaytrader wrote:For the daily 1440 (because 1 day = 24 hours = 24 X 60 minutes = 1440 minutes)

see also: http://docs.mql4.com/constants/timeframes
:idea:
Thanks.

I think I have phrased the question incorrectly.

For example, while trading the ea on H4, should I use ATR of 240 or 1440.

I see that in the original ea which was meant to trade on H4, the default value of ATR time frame is 240.

Code: Select all

extern int      AtrPeriod=0;// 0 turns off atr. > 0 overrides StopLossPips
extern int      AtrTimeFrame=240;//Allows tf independent of the chart. 0 means current chart
//extern double   AtrTpMultiplier=1;
extern double   AtrSlMultiplier=2; 
Author:  fxdaytrader [ Sun Sep 15, 2013 1:57 pm ]
Post subject:  Re: HELP WITH ERROR 4107

Short answer: To which timeframe you set the ATR-timeframe is up to you. :P

If you set to 1440, then it will take the daily values (which will generate wider stops), if you set the ATR-timeframe e.g. to 1 (M1), then the stops will be very very tighten ...
Author:  fx800 [ Sun Sep 15, 2013 2:24 pm ]
Post subject:  Re: HELP WITH ERROR 4107

fxdaytrader wrote:Short answer: To which timeframe you set the ATR-timeframe is up to you. :P

If you set to 1440, then it will take the daily values (which will generate wider stops), you you set the ATR-timeframe e.g. to 1 (M1), then the stops will be very very tighten ...
Thanks.
All times are UTC Page 14 of 18