AFL Code need

#1
Hello guys,
I've no idea about coding, can anyone can help with the following criteria:
Daily EMA (20) crossover Daily EMA (50) AND
Weekly EMA (20) >Weekly EMA (50) AND
Weekly MACD Signal GREATER THAN EQUAL TO 1 Week ago MACD

Scan at every 5min interval

Alert (Sound and popup) for buy signal


Supplementary doubt: Is there any way to use fundamental data using Interactive brokers API (Thomson reuters report) in amibroker and using thomsonreuters rating and fundamental data to screen stocks (I'm aware of screener.in, but just wondering if it's possible with amibroker)
Thanks!
 
Last edited:
#2
Dear DrDrakeromoray,

Kindly find below. I also posted related query but not reply till now. I am not know about afl coding . I found this file from somewhere please post me message if this file is useful for you.

_SECTION_BEGIN("My Trading System");
MyTradingSystem();
_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?