Jump to content

[REQ] Newsfilter for Donchian Scalper


Recommended Posts

Hi folks,

is somebody able to add a newsfilter to that EA?

 

http://[email protected]/715656

 

It´s a good EA but on some days are large DD. In my opinion a newsfilter will avoid the large DD.

 

Could somebody add the following code or another newsfilter to the EA? Unfortunately I can´t code. :(

 

This code is for FFCal indicator.

Code:

 

extern bool NewsFilter = true;

extern int MinutesBeforeNews = 10;

extern int MinutesAfterNews = 10;

extern bool IncludeHigh = true;

extern bool IncludeMedium = true;

extern bool IncludeLow = false;

extern bool IncludeSpeaks = true;

int MinutesUntilNextEvent,MinutesAfterPrevEvent;

bool TradingTime;

datetime Time2,Time3,Time4;

 

Call this function to check if trading is permitted:

 

bool NewsPeriod()

{if (TimeCurrent()>Time4 && NewsFilter)

{MinutesUntilNextEvent=iCustom(Symbol(),0,"FFCal",IncludeHigh,IncludeMedium,IncludeLow,IncludeSpeaks,true,1,1);

MinutesAfterPrevEvent=iCustom(Symbol(),0,"FFCal",IncludeHigh,IncludeMedium,IncludeLow,IncludeSpeaks,true,1,0);

if (MinutesUntilNextEvent!=99999 || MinutesAfterPrevEvent!=99999)

{Time2=iTime(Symbol(),1,0)-(MinutesAfterPrevEvent-MinutesAfterNews)*60;

Time3=iTime(Symbol(),1,0)+(MinutesUntilNextEvent-MinutesBeforeNews)*60;

Time4=iTime(Symbol(),1,0)+(MinutesUntilNextEvent+MinutesAfterNews)*60;}}

TradingTime=(TimeCurrent()>Time2 && (TimeCurrent()<Time3 || TimeCurrent()>Time4)); return(TradingTime);}

 

Here is the FFCal Indi:

 

http://www.fileuploadx.de/640259

 

Thank you for your efforts! ^:)^

Best regards!

Link to comment
Share on other sites

Re: [REQ] Newsfilter for Donchian Scalper

 

The DC EA can mislead one to believe it is a profitable EA but in reality it is a very poor performer. The reason it appears to do well is that the backtests are run with no SL. If you run them with even a 300 pip SL, you will see how nicely it crashes the account. Also for more proof if you run a backtest of the latest version 1.02 with the "timeout" option enabled you will see that it also kills the account very fast.

Reason being is that it holds the trades that have not reached TP yet and these trades get it in trouble. Hardly worth even a second look IMHO.. even with the news filter it cannot be turned into a profitable EA. I think a lot of people discovered this very quickly already.

 

Good luck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...