Would I be out of line to ask you to post the Tradestation version??
Here it is. The indicator :
av = ADXVMA(Price, length);
Plot4(av, "ADXVMA", iff(av = av, GetPlotColor(3), iff(av > av, GetPlotColor(1), GetPlotColor(2))));
NoPlot(3); [/php]and the adxvma function
// in order to make it right the "pdm=0; mdm=0;" must be added (it does not
// exist in original and that is an error, tradestation inherits values fom
// a previous loop and they must be zeroed before these calculations)
if(Price>Price) then pdm=Price-Price else mdm=Price-Price;
pdm=((WeightDM-1)*pdm + pdm)/WeightDM;
mdm=((WeightDM-1)*mdm + mdm)/WeightDM;
pdi=((WeightDI-1)*pdi + pdi)/WeightDI;
mdi=((WeightDI-1)*mdi + mdi)/WeightDI;
if (DI_Diff<0) then DI_Diff= -DI_Diff;
if (DI_Sum>0) then out=DI_Diff/DI_Sum else out=0;
out=((WeightDX-1)*out + out)/WeightDX;
if (out>out) then begin HHV=out; LLV=out; end
for j = 1 to Length-1 begin
if(out[j+1]<LLV) then LLV=out[j+1];
diff = HHV - LLV;
if (diff>0) then VI=(out-LLV)/diff;
ADXVMA = ma;
Added comment and a code correction that did not exist in the original (that is the only change I made in it). Some of the variable names are misleading : there is no EMA calculation on any of the steps. That is a smoothed moving average used in intermediate smoothing steps, not EMA. Also you will notice that even if the basic logic of calculation is from ADX it actually is not an ADX, but it is close enough to deserve the name in the case of this "hybrid" indicator
Thank you for expanations. I checked the links with Kaufman EA and I saw I have a long way to go, but I don't give up. Thank you.
I have come across something interesting: Bollinger Squeeze CCI.
See small screenshot attached, bottom indicator.
Can we build something like this (or better;))..?
I have not access to the indie. Grrr.
Had removed the indicator because thought maybe had got it from another area of forum which was untrue, upon retracing my steps, most of the code was gotten from public section and the rest from the elite section and that includes the alerts!!! Sorry for any inconvience caused.
Here is one : https://www.mql5.com/en/forum/175337/page3 (I can not find the original post where it was posted - it was long time ago). On that thread you can find some other versions too. To get CCI shown set the graphTypeto 3 and adjust the type3.cci.Period parameter to desired CCI period
Nice indie, mladen. All-in-one.
Thanks for digging that up...!
a histo version of "Heiken Ashi MA jurik new_alerts.mq4"
Here you go
Step set to 1 :Step set to 0 :
you really impress me mladen
great work again..