Help for amibroker afl file

#1
Dear All,
I am new to amibroker i am not aware how to create new formula in amibroker, even code also. Somewhere i find a file for amibroker formula & pasted. Can someone help me to know what is this meaning i.e. moving average time period & supertrend in details. I will be highly obliged. Thanks in advance.


_SECTION_BEGIN("My Trading System");
NewTradingSystem();
_SECTION_END();
_SECTION_BEGIN("Trend Lines");
p1 = Param("TL 1 Periods", 13, 5, 50, 1);
p2 = Param("TL 2 Periods", 3, 3, 25, 1);
TL1 = LinearReg(C, p1);
TL2 = EMA(TL1, p2);
Col1 = IIf(TL1 > TL2, ParamColor("TL Up Colour", colorGreen), ParamColor("TL Dn Colour", colorRed));
Plot(TL1, "TriggerLine 1", Col1, styleLine|styleThick|styleNoLabel);
Plot(TL2, "TriggerLine 2", Col1, styleLine|styleThick|styleNoLabel);
_SECTION_END();
 

Similar threads

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Name:Phone:
Email:City:
State:
Are you a day trader?