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);Cheers
Tommaso
Code: Select all
datetime start = iTime(symbol, PERIOD_D1, 0);
DrawLine(dailypivot, start, DailyPivot, start + 60 * 3600, DailyPivot, DailyPivotColour, 2, STYLE_SOLID, true);Tommaso,milanese wrote:Hi Peter,
have you tried without the linesthat should workCode: Select all
datetime start = iTime(symbol, PERIOD_D1, 0); DrawLine(dailypivot, start, DailyPivot, start + 60 * 3600, DailyPivot, DailyPivotColour, 2, STYLE_SOLID, true);
Cheers![]()
Tommaso
not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".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.
Thank you very much, Marc.fxdaytrader wrote:not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".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.
When it is TRUE then it should do what you asked for, pls. check
Sorrry the ea won't compile, error messagefx8000 wrote:Thank you very much, Marc.fxdaytrader wrote:not tested (because I do not have mt4gui.mqh library installed ...), but added the new external parameter "UseDailyPivotFilter".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.
When it is TRUE then it should do what you asked for, pls. check
I will check it out and report back.
peter
Thanks. I was adding brackets everywhere but just couldn't find the right one !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
Hi Marc,fx8000 wrote:Thanks. I was adding brackets everywhere but just couldn't find the right one !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
Fixed now.