Need help in AFL coding for strategy

#1
Hi,

Can anyone please code the below strategy as I am begineer and learning AFL so not familier now.

Logic:
On starting Mark 30min 2nd candle high & low

Buy Logic:
If price break above 30min 2nd candle the Buy signal comes
Targets (T1, T2, T3) = Set from parameter setting Manual in % from buying price
SL = Set from parameter setting Manual in % from buying price
Trail SL to Target 1 if Target 2 completes, then if target 3 completes trail SL to target 2.

Quantity: Manual from parameter setting

Please help.
Thank You
 

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

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