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 »

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 !
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 »

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
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: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
User avatar
milanese
TechAdmin
Posts: 3293
Joined: Wed Jan 09, 2013 9:02 am
Location: btr rdx, r8 +

Re: HELP WITH ERROR 4107

Post by milanese »

Hi fx8000 and fxdaytrader,

thanks for this thread :D

Wish you two a very nice weekend!

Cheers :)

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

Re: HELP WITH ERROR 4107

Post by fx800 »

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.

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

Re: HELP WITH ERROR 4107

Post by fx800 »

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; 
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 »

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

see also: http://docs.mql4.com/constants/timeframes
:idea:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

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; 
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 »

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 ...
Last edited by fxdaytrader on Sun Sep 15, 2013 3:02 pm, edited 1 time in total.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

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

Return to “Coders Hangout”