Generate trade signals while using enablerotationtrading and PositionScore

#1
Hello,
I want to automate following simple AFL strategywhich runs on basket of 30 or 40 stocks. If we use the Buy and Sell variable then we can use the AlertIf function to generate alerts of various kinds like email.
But in below AFL, because of the rotational nature of strategy Buy and Sell variables are not allowed.
Can anybody guide how to automate trading this strategy ?

EnableRotationalTrading();
SetOption("worstrankheld",10);
SetOption("Maxopenpositions",4);
SetOption("allowpositionshrinking",True);
PositionSize = -25;
PositionScore = 100 - RSI(14);



Thanks.
 

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?