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

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?