HELP WITH ERROR 4107

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 Peter,

have you tried without the lines

Code: Select all

 datetime start =  iTime(symbol, PERIOD_D1, 0);
DrawLine(dailypivot, start, DailyPivot, start + 60 * 3600, DailyPivot, DailyPivotColour, 2, STYLE_SOLID, true);
that should work

Cheers :)

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

Re: HELP WITH ERROR 4107

Post by fx800 »

deleted
Last edited by Anonymous on Wed Sep 25, 2013 4:08 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 »

milanese wrote:Hi Peter,

have you tried without the lines

Code: Select all

 datetime start =  iTime(symbol, PERIOD_D1, 0);
DrawLine(dailypivot, start, DailyPivot, start + 60 * 3600, DailyPivot, DailyPivotColour, 2, STYLE_SOLID, true);
that should work

Cheers :)

Tommaso
Tommaso,

Sorry, no joy with your suggestion.
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: Is it possible to add a DailyPivot filter to Mr Longs Multi 10.4 trader.

I have found that adding only buy when askPrice > DailyPivot and only sell when bidPrice < DailyPivot would cut out some of the losing trades.
not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".

When it is TRUE then it should do what you asked for, pls. check :P

edit: Find the latest version at http://www.stevehopwoodforex.com/phpBB3 ... 877#p76877 (uses mt4gui), or http://www.stevehopwoodforex.com/phpBB3 ... 881#p76881 (does not use mt4gui)
Last edited by fxdaytrader on Sat Sep 28, 2013 4:13 pm, edited 2 times in total.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:
fx8000 wrote: Is it possible to add a DailyPivot filter to Mr Longs Multi 10.4 trader.

I have found that adding only buy when askPrice > DailyPivot and only sell when bidPrice < DailyPivot would cut out some of the losing trades.
not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".

When it is TRUE then it should do what you asked for, pls. check :P
Thank you very much, Marc.

I will check it out and report back.

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

Re: HELP WITH ERROR 4107

Post by fx800 »

fx8000 wrote:
fxdaytrader wrote:
fx8000 wrote: Is it possible to add a DailyPivot filter to Mr Longs Multi 10.4 trader.

I have found that adding only buy when askPrice > DailyPivot and only sell when bidPrice < DailyPivot would cut out some of the losing trades.
not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".

When it is TRUE then it should do what you asked for, pls. check :P
Thank you very much, Marc.

I will check it out and report back.

peter
Sorrry the ea won't compile, error message

'\end_of_program' - unbalanced left parenthesis C:\Users\peter\Downloads\Multi_10_4_EA_Final_V1.32.fxdaytrader (1).mq4 (3680, 1)
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 I forgot one bracket:

if (!UseDailyPivotFilter || (UseDailyPivotFilter && PivotFilterAllowsTrade(CurrentPair,type))) {//daily pivot filter, fxdaytrader

fixed, pls. download again or fix by yourself :idea:
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fxdaytrader wrote:I think I forgot one bracket:

if (!UseDailyPivotFilter || (UseDailyPivotFilter && PivotFilterAllowsTrade(CurrentPair,type))) {//daily pivot filter, fxdaytrader

fixed, pls. download again or fix by yourself :idea:
Thanks. I was adding brackets everywhere but just couldn't find the right one !

Fixed now.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

fx8000 wrote:
fxdaytrader wrote:I think I forgot one bracket:

if (!UseDailyPivotFilter || (UseDailyPivotFilter && PivotFilterAllowsTrade(CurrentPair,type))) {//daily pivot filter, fxdaytrader

fixed, pls. download again or fix by yourself :idea:
Thanks. I was adding brackets everywhere but just couldn't find the right one !

Fixed now.
Hi Marc,

The mod ea is working fine. Will report back if it produces good results.

The weekend is here again. Have a nice weekend.

peter
Last edited by Anonymous on Sat Sep 28, 2013 10:46 am, edited 2 times in total.
fx800
Trader
Posts: 1334
Joined: Sun Dec 04, 2011 4:11 am

Re: HELP WITH ERROR 4107

Post by fx800 »

Trends appears to be returning, and the mod Multi trader sprang back to life since last night, up 2.4%.

I am trading it live on my micro account.

In fact, all the ea's are making good progress since last night. May be the summer doldrums are over.
Post Reply

Return to “Coders Hangout”