Dear Friends,
I need a help of experts to develop a trailing codes for AFL (AMIBROKER). Can some1 please help to code them for AMIBROKER :-
1. The Trailing SL in case of BUY would be as follows:-
- After first BUY is implanted (let it be candle 1);
- Then, AFL should wait for next 3 candles to complete before commencing to draw SL line/ level;
- When 4th Candle is complete, it should start BUY-SL at low of preceding "first Candle" and;
- It should thereafter take forward SL in steps of 3 candles (it means the SL would wait for further 3 candles to complete before raising the SL line upwards in manner explained above);
- Incase SELL comes as per Strategy logic, it would Square and move ahead;
2. The Trailing SL in case of SHORT would be as follows:-
- After first SHORT is implanted (let it be candle 1);
- Then, AFL should wait for next 3 candles more Candles to complete before commencing to draw SL line/ level;
- When 4th Candle is complete, it should start SHORT-SL at high of preceding "first Candle" and;
- It should thereafter take forward SL in steps of 3 candles (it means the SL would wait for further 3 candles to complete before deceding the SL line downwards in manner explained above;
The AFL should be just Drag & Drop on Trading Strategy.
I need a help of experts to develop a trailing codes for AFL (AMIBROKER). Can some1 please help to code them for AMIBROKER :-
1. The Trailing SL in case of BUY would be as follows:-
- After first BUY is implanted (let it be candle 1);
- Then, AFL should wait for next 3 candles to complete before commencing to draw SL line/ level;
- When 4th Candle is complete, it should start BUY-SL at low of preceding "first Candle" and;
- It should thereafter take forward SL in steps of 3 candles (it means the SL would wait for further 3 candles to complete before raising the SL line upwards in manner explained above);
- Incase SELL comes as per Strategy logic, it would Square and move ahead;
2. The Trailing SL in case of SHORT would be as follows:-
- After first SHORT is implanted (let it be candle 1);
- Then, AFL should wait for next 3 candles more Candles to complete before commencing to draw SL line/ level;
- When 4th Candle is complete, it should start SHORT-SL at high of preceding "first Candle" and;
- It should thereafter take forward SL in steps of 3 candles (it means the SL would wait for further 3 candles to complete before deceding the SL line downwards in manner explained above;
The AFL should be just Drag & Drop on Trading Strategy.