Need help on AFL code

#1
Hi Friends,

I need help on the afl code, kindly please help me on this.

Assume I have a signals as below,

Buy = EMA15>EMA16;
Sell = EMA15<EMA16;

BuyPrice=ValueWhen(Buy,C);
SellPrice=ValueWhen(Sell,C);

Now I want to cover(book profit), when the price reaches BuyPrice + x points, similar Short when the price reaches SellPrice - x points.

I have little knowledge on AFL and tried with basic knowledge but did not succeed.

Please help me on this.

Thanks in Advance.

Thanks,
Praveen
 

Similar threads