I'm trying to write an intraday code which will backtest with a limit of 5 trades per day. I'm just keeping track of trades by incrementing an integer index nn. Here's the relevant code I'm using:
CODE:
Please log in to see this code.
It isn't working. Any suggestions?
Size:
Color:
It is working. What most likely isn't working is the other piece of logic where you reset the variable "nn".
Size:
Color: