Re: Trend Indicators for MT4

1352
Please take a look at the AllAbsoluteStrengthTrend_v1 indicator with advanced sound/email alerts. So now you can easy build the systems like ASCtrend or AbleTrend (default settings correspond to ASCTrend1).

Code:

Code: Select all

//---- indicator parameters

extern int     TimeFrame         =     0;    // TimeFrame in min
extern int     MathMode          =     1;    // Math method: 0-RSI;1-Stoch;2-DMI;3-MACD 
extern int     Price             =     0;    // Price = 0...10 (see List of Prices)
extern int     Length            =     9;    // Period of evaluation
extern int     PreSmooth         =     1;    // Period of PreSmoothing
extern int     Smooth            =     1;    // Period of smoothing
extern int     MA_Method         =     0;    // See list above
extern int     LevelsMode        =     0;    // Levels Mode: 0-Standard OverBought/OverSold 
                                             //              1-StdDev Bands
                                             //              2-High/Low Channel
extern double  StrengthLevel     =    70;    // Strength Level (ex.70)
extern double  WeaknessLevel     =    30;    // Weakness Level (ex.30)
extern int     LookBackPeriod    =    20;    // LookBack Period for LevelsMode=1,2 
extern double  UpperMultiplier   =     1;    // Upper Band Multiplier for LevelsMode=1 
extern double  LowerMultiplier   =     1;    // Lower Band Multiplier for LevelsMode=1 

extern string  alerts            = "--- Alerts & Emails ---";
extern int     AlertMode         =     0;
extern int     SoundsNumber      =     5;    // Number of sounds after Signal
extern int     SoundsPause       =     5;    // Pause in sec between sounds 
extern string  UpSound           = "alert.wav";
extern string  DnSound           = "alert2.wav";
extern int     EmailMode         =     0;    // 0-on,1-off   
extern int     EmailsNumber      =     1;    // 0-on,1-off
These users thanked the author Jedidiah for the post (total 2):
Chickenspicy, thomdel
Be patient therefore, brethren, until the coming of the Lord. Behold, the husbandman waiteth for the precious fruit of the earth: patiently bearing till he receive the early and latter rain.
Behold, we account them blessed who have endured. You have heard of the patience of Job, and you have seen the end of the Lord, that the Lord is merciful and compassionate.




Who is online

Users browsing this forum: Amazon [Bot], brendons, IBM oBot [Bot], Jimmy, talaate and 82 guests