Limiting daytrades to 5
Author: dankimel
Creation Date: 10/22/2009 6:15 PM
profile picture

dankimel

#1
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?
profile picture

Eugene

#2
It is working. What most likely isn't working is the other piece of logic where you reset the variable "nn".
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).