Experts: SVOS Multi-Indicator EA

 

SVOS Multi-Indicator EA:

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

Author: Brian Dee - Random Trader

 

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

 

Barrowboy

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

 

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

 
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.

 
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
 
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;
Reason: