Hello fellow traders,
I’m new here and would love to see this indicator added to the PRT graphs.
Please have a look at this website in order to understand what it is all about: Buy the ‘MetaCOT 2 Movement Index MT4’ Technical Indicator for MetaTrader 4 in MetaTrader Market
I’m sure it would be very helpful voor every trader.
Thanks for any help and good trading!
Ed
Hi! If you have the code, maybe we can help you translate it.
Thanks Iván,
code:
Express LW_Proxy_Index_COT
Vars
Numeric
i;
Series
CoT,
xrange,
xOmC,
span,
OmC;
Input
$Period(1, 500, 50),
$Multiplicator(1, 500, 50);
Calculation
SetYscaleFormat(“%9.2f”);
If IsFirstBar() then
begin
for i = 0 to FinalBarIndex()
begin
span[-i] = h[-i] – l[-i];
OmC[-i] = o[-i] – c[-i];
end
MovingAverage(OmC, xOmC, $Period);
MovingAverage(span, xrange, $Period);
end
Cot = xOmC/(xRange*$Multiplicator)+$Multiplicator;
Interpretation
begin
end
plot(CoT, lightblue, 1);//@@@cs:279245-3426050-147030_cs@@@
This would produce a proxy COT graph but I’d need one step more and that’s to make a momentum indicator out of the indicator above.
Regards,
Ed
JSParticipant
Senior
First attempt:
Once Period=50
Once Multiplier=0.1
Once MomentumPeriod=50
Span=High-Low
OmC=Close-Open
xRange=Average[Period](Span)
xOmC=Average[Period](OmC)
CoT=xOmC/(xRange*Multiplier)+Multiplier
xMomentum=CoT-CoT[MomentumPeriod]
Return CoT Style(Histogram) as "Proxy COT" Coloured("Lime"), xMomentum as "COT Momentum" Coloured("DarkGrey")