Too many buy sell orders until close on candle in afl script

#1
Can anyone plz help to identifying the below error in the attached afl script..

The problem is i am getting to many buy order until the candle closes. I use 1 min for trading and the buy orders keep on poping up until the open of next candle... Hence, plz help me to fix it....
 

Attachments

Similar threads