Request: Has anyone got TTM waves A,B & C code for amibroker?

#2
https://www.tradingview.com/script/nYOzTA1Y-UCS-TTM-Wave-A-B-C/

=======Wave A AFL===============
_SECTION_BEGIN("TTM Squeeze Waves A_Sachin");

f1 = Param("Wave A1 Fast Avg", 8, 2, 200, 1 );
s1 = Param("Wave A1 Slow Avg", 34, 2, 200, 1 );

fastMA1= EMA(Close, f1);
slowMA1= EMA(Close, s1);
macd1 = fastMA1-slowMA1;
sig1 = EMA(macd1, s1);
hist1 = macd1-sig1;

f1_1 = Param("Wave A2_ Fast Avg", 8, 2, 200, 1 );
s1_1 = Param("Wave A2 Slow Avg", 55, 2, 200, 1 );

fastMA1_1= EMA(Close, f1_1);
slowMA1_1= EMA(Close, s1_1);
macd1_1 = fastMA1_1-slowMA1_1;
sig1_1 = EMA(macd1_1, s1_1);
hist1_1 = macd1_1-sig1_1;


Plot(hist1, "Wave A1", colorYellow,styleHistogram | styleThick);
Plot(hist1_1, "Wave A2", colorOrange, styleHistogram | styleThick);

Title="TTM Squeeze: Wave A1 "+WriteVal(hist1)+" Wave A2"+WriteVal(hist1_1) ;


_SECTION_END();
===========================================

Just review the Wave B & Wave C average values from tradingview code & create your reqd AFL's following the above Wave A code standard.
 

Similar threads