what programming language is that?
SanMiguel:
Value1 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw](NetChg))
Value2 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw]( ABS (NetChg)))
RETURN TSI, EXPONENTIALAVERAGE [ 5 ](TSI)
Value1 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw](NetChg))
Value2 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw]( ABS (NetChg)))
RETURN TSI, EXPONENTIALAVERAGE [ 5 ](TSI)
To draw this in MQL4, do I need to put each value in a buffer and then just draw 1 line?
You will need 8 buffers total with 2 displayed. You put the values in the buffers and Mql4 draws the lines for you.
- EMA(5) of TSI
- TSI
- value1
- value2
- EMA(netChg)
- EMA(absNetChg)
- AbsNetChg
- NetChg
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
I have this for the True Strength index:
Parameters
Smooth (Smooth = 13 )
Value1 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw](NetChg))
Value2 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw]( ABS (NetChg)))
IF Value2 <> 0 THEN
TSI = Value1 / Value2
ELSE
TSI = 0
ENDIF
RETURN TSI, EXPONENTIALAVERAGE [ 5 ](TSI)
To draw this in MQL4, do I need to put each value in a buffer and then just draw 1 line?