
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
May someone encode in Metatrader -StochasticsExtrem_v2
Someone can codify it in Metatrader
encode in Prorealtime
Works well with ExponentialAverage[20] , in the direction of the slope of the Average
REM Calculo B9StochEx_2(Volatility_StandardDesviacion[14])
REM Programacion
PDS11=14
PDS21=5
PDS31=3
{PDS41=5}
PDS51=3
if Close> Average[PDS11](Close) THEN
x11=STD[PDS11](close)
ELSE
x11=(-1)*STD[PDS11](close)
ENDIF
x21=((summation[PDS31](x11-lowest[PDS21](x11)))/summation[PDS31](highest[PDS21](x11)-lowest[PDS21](x11)))*100
x31=x11*AverageTrueRange[5](close)
x41=((summation[PDS31](x31-lowest[PDS21](x31)))/summation[PDS31](highest[PDS21](x31)-lowest[PDS21](x31)))*100
StochExSD=ExponentialAverage[PDS51](x21)
StochExATR=ExponentialAverage[PDS51](x41)
LineaSuperiorEx=100
LineaSuperior=90
LineaInferior=10
LineaInferiorEx=0
RETURN StochExSD as "StochExSD", StochExATR as "StochExATR", LineaSuperiorEx as "LineaSuperiorEx_100", LineaSuperior as "LineaSuperior_90", LineaInferior as "LineaInferior_10", LineaInferiorEx as "LineaInferiorEx_0"
Thanks
ElderTripleScreen
someone could create a
Indicator "On Chart" y/or separat window :
with Force Index [2] (close) and Bull / Bear [13] (close) and macd [60/130/45] (close) equal to ElderImpuls (created with EMA [13] (close and macd [12/26/9] (close)),
I leave the code to ProRealTime:
buywhen
Macd>0 and BearpowerBearPower[yesterday] and Force Index Force Index [yesterday]
Shell :
Macd0 bat BullPower[today]0 bat Force Index [today]<Force Index [yesterday]
Thanks
Here you go
For convenience attached the TTI stochastic extreme as well as TTI stochastic extreme 2 as described at page 101 of the book "Volatility-based technical analysis" from Kirk Northington so that they can be at a same place
These are written to the letter as described in the the book - TTI stochastic extended was already posted at Elite indicators thread under the name "Stochastic of stdev" with different calculation but same results, but decided to make the "to the letter" version too
( Sum(C - LLV{L, 5), 3) / Sum(HHV(H, 5) - LLV(L, 5), 3) ) * 100
to
1 x1:= Stdev (C, 14);
2 x2 := (Sum (x1 - LLV(x1, 5), 3) /
3 Sum(HHV(x1, 5) - LLV(x1, 5), 3) ) * 100;
4 Mov(x2, 3, E)
Line one assigns the value of the standard deviation for the past 14 days to the variable x1. The use of these variables saves us from a lot of repetitive code segments. Lines two and three are the stochastic algorithm, which substitute the x2 variable for the closing price. The indicator is therefore no longer using the closing price as the measured value; it is now using standard deviation. Line four converts the stochastic calculation, x2, to a three-period exponential moving average, for smoothing purposes.
and for TTI stochastic extended 2 (did not change the typos in formulas in order to keep the quotes 100% original)
1 x1:= If(C > Mov(C, 14, S), Stdev(C, 14), -1 * Stdev(C, 14));
2 x2 := (Sum (x1 - LLVfx1, 5), 3) /3 Sum(HHV(x1, 5) - LLV(x1, 5), 3) ) * 100;
4 x3:= x1 * ATR(5) ;
5 x4: = (Sum (x3 - LLV(x3, 5), 3) /
6 Sum(HHV(x3, 5) - LLV(x3, 5), 3)) * 100;
7 Mov(x2, 3, E);
8 Mov(x4, 3, E);
In this new version of code, we have doubled the indicator by creating a dual plot with the addition of line seven. The existing version is calculated along with the new version, which uses the ATR accelerator. Line one includes an If statement that converts the standard deviation measurement to a negative when the closing price is below the 14-period moving average. This is because regardless of the direction of the standard deviation, it is always expressed as a positive, which just wouldn't do. In line four, an additional variable called x3 is created to represent the measured value that is accelerated by ATR(5). Note that the standard deviation look-back period is 14 and the ATR look-back period is 5. The ATR period is shorter so as to measure a more recent change in true range volatility. In line 5, the same stochastic algorithm is used but with the new x3 value instead of x2. Both versions are plotted in lines six and seven. Plotting both of them next to each other will give us an immediate visual performance comparison when viewing charts.Someone can codify it in Metatrader
encode in Prorealtime
Works well with ExponentialAverage[20] , in the direction of the slope of the Average
REM Calculo B9StochEx_2(Volatility_StandardDesviacion[14])
REM Programacion
PDS11=14
PDS21=5
PDS31=3
{PDS41=5}
PDS51=3
if Close> Average[PDS11](Close) THEN
x11=STD[PDS11](close)
ELSE
x11=(-1)*STD[PDS11](close)
ENDIF
x21=((summation[PDS31](x11-lowest[PDS21](x11)))/summation[PDS31](highest[PDS21](x11)-lowest[PDS21](x11)))*100
x31=x11*AverageTrueRange[5](close)
x41=((summation[PDS31](x31-lowest[PDS21](x31)))/summation[PDS31](highest[PDS21](x31)-lowest[PDS21](x31)))*100
StochExSD=ExponentialAverage[PDS51](x21)
StochExATR=ExponentialAverage[PDS51](x41)
LineaSuperiorEx=100
LineaSuperior=90
LineaInferior=10
LineaInferiorEx=0
RETURN StochExSD as "StochExSD", StochExATR as "StochExATR", LineaSuperiorEx as "LineaSuperiorEx_100", LineaSuperior as "LineaSuperior_90", LineaInferior as "LineaInferior_10", LineaInferiorEx as "LineaInferiorEx_0"
ThanksMladen,
I guess you have the book.Is it possible for you to convert TTI RSIV indicator from easylanguage to mql4?Many thanks.
biddick
It was posted here : https://www.mql5.com/en/forum/general
regards
Mladen
Mladen, I guess you have the book.Is it possible for you to convert TTI RSIV indicator from easylanguage to mql4?Many thanks.
RSIV is one funny indcator, maybe the linear regression calculations makes it go funny in strong trend.It looks not too bad in cyclic mode.I like stochastic version.
Mladen what is the logic of having linear regression slope in RSI ?Is it not divergent in nature like RSI ?Do you know?Thanks.
Frankly
I do not know why he used linear regression slope in the indicator. Maybe simply because of inertia : since he is already using the linear regression value why not using the slope too
.
Using linear regression as a filter in indicators is not a bad idea (it is an extremely responsive indicator) but people have to know the cost of some ways of using it, and I have an impression that in the case of rsiv the "cost" is nether measured nor estimated. Here is a picture with peaks in price and rsiv marked : that is a 40 period linear regression and the correlation between the peaks is obvious. So in this case it is not used in a manner where it would mean improvement (that is my opinion) but is simply adding lagRSIV is one funny indcator, maybe the linear regression calculations makes it go funny in strong trend.It looks not too bad in cyclic mode.I like stochastic version. Mladen what is the logic of having linear regression slope in RSI ?Is it not divergent in nature like RSI ?Do you know?Thanks.
bebeshel
Something is not OK with those rules
Here is the indicator made according to those rules but it does not give logical results. As of Elder impulse (which is more or less "screen one" of the triple screen system), here is one version of it - it is OK but in choppy markets it can kill you regardsMladen
someone could create a
Indicator "On Chart" y/or separat window :
with Force Index [2] (close) and Bull / Bear [13] (close) and macd [60/130/45] (close) equal to ElderImpuls (created with EMA [13] (close and macd [12/26/9] (close)),
I leave the code to ProRealTime:
whenbuy
Macd>0 and BearpowerBearPower[yesterday] and Force Index Force Index [yesterday]
Shell
:Macd0 bat BullPower[today]0 bat Force Index [today]<Force Index [yesterday]
ThanksMladen , for RSIV it is not o "Grial"
We have to make trading with Zig Zag (5%) or Linera Regrecion of 40
We have to make trading with Zig Zag (5%) or Linera Regrecion of 40 ...
and create a System
We have to make trading with Zig Zag (5%) or Linera Regrecion of 40
We have to make trading with Zig Zag (5%) or Linera Regrecion of 40 ...
and create a System