Download MetaTrader 5

Experts: SVOS Multi-Indicator EA

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
182637
MetaQuotes Software Corp.  

SVOS Multi-Indicator EA:

Uses several indicators and candle patterns plus assesses trending or ranging market

Author: Brian Dee - Random Trader

bobby
129
bobby  

Thanks for sharing this code, I have made a modified version for more optimization.

Ronaldo
281
Ronaldo  

Barrowboy

How do you use the VHF indicator to detect range / trending?

Brian Dee - Random Trader
1759
Brian Dee - Random Trader  

The key lines are these

extern double VHFThreshold=0.4; // 0.2=Ambitious 0.4=Conservative
double VHFPeriod=20;
   if(VHF_1 >= VHFThreshold) IsTrending=True;
   else IsTrending=False;

Using these tells us that if the VHF is above a certain level (VHFTreshold) then a trend is likely to be happening, so we use trend capable indicators.

If below VHFTreshold then likely there is no trend so we use range capable indicators

The VHFThreshold is an extern as it may vary over time for this pair - it will certainly be different on another pair and/or timeframe

MQL4 Comments
16319
MQL4 Comments  
funyoo:

Thanks for sharing this code, I have made a modified version for more optimization.


You require a user name and password to get the files.

MQL4 Comments
16319
MQL4 Comments  
tradergirl:
funyoo:

Thanks for sharing this code, I have made a modified version for more optimization.


You require a user name and password to get the files.



pls how can i get the modified version
whroeder1
14772
whroeder1  
Thanks for sharing. As a coding style, I would simplify code like
int IsDojiCandle()
{int retval=0;
 
if(
   (Body(1) < ((High[1] - Low[1])/iDoji))
  )
  retval=1;
 
 return (retval);
 
}
to the equivalent:
bool IsDojiCandle(){  return( Body(1) < (High[1] - Low[1])/iDoji ); }
Like wise:
// if(VHF_1 >= VHFThreshold) IsTrending=True;
//   else IsTrending=False;
IsTrending = VHF_1 >= VHFThreshold;
To add comments, please log in or register