Need help with buying on current/latest candle

Hi All,

I am using python to implement my strategy for index options.

Based on my rules i get entires however my script generate signal for past candle. How i can avoid this and make sure signal is generated for current/latest candle only

kindly share the code so that we can check and help. thanks!

1 Like