All search results I’ve found only deal with how to limit your trades per day when using market orders. Currently, I’m using something like this:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
onceEntriesToday=0
// Reset for each day
ifDate[1]<>Date[0]then
EntriesToday=0
endif
IfOnMarket[0]<>0andOnMarket[1]=0then
EntriesToday=EntriesToday+1
endif
IfnotOnMarketandEntriesToday<1then
Buy1contractatmyLevelStop// Stop order
endif
Here’s the problem. My systems always use stop orders to enter the market and sometimes a system is stopped out on the same bar it entered the trade, but EntriesToday can never be incremented with my current code. Thus it will attempt a second trade that I don’t want next bar again.
I haven’t come up with a solution for this. Do any of you guys have suggestions to solve this? Or if there’s a setting for max executed orders per day in PRT I somehow missed