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