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
You require a user name and password to get the files.
tradergirl:
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;
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
SVOS Multi-Indicator EA:
Author: Brian Dee - Random Trader