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

HELP WITH ERROR 4107
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=2914
Page 17 of 18
Author:  milanese [ Wed Sep 25, 2013 12:17 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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
Author:  fx800 [ Wed Sep 25, 2013 1:51 pm ]
Post subject:  Re: HELP WITH ERROR 4107

deleted
Author:  fx800 [ Wed Sep 25, 2013 2:02 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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

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)
Author:  fx800 [ Thu Sep 26, 2013 5:45 pm ]
Post subject:  Re: HELP WITH ERROR 4107

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

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

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

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

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

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.
All times are UTC Page 17 of 18