How to restrict entries per set. (i.e) Only one trade should be executed per Set
Strategy1,890 views
ISON
I have created a multi entry strategy with a total of 10 buy orders per day. and since it is a 15 minute breakout strategy i have created 10 sets for each entry. The problem is, if the first two 15 minutes ORB dont have any trades, then the 3rd 15 minute ORB gets 3 entries.
I used Position Details
Entry, B, ALL, BANKNIFTY <= 50.
I want the Set to Take only one entry per 15 minutes. (or) only one entry per set irrespective of previous number of trades.
Please help
Tradetron TeamTradetron team
Use a counter per set: one variable each, e.g. s1entry for set 1.
Use a runtime variable as a counter
There is no checkbox for this. You build it with a runtime variable.
In Initialize Variables, create a variable, e.g. s1entry, and set it to Number(1).
In the Entry condition add: Get Runtime(s1entry) <= Number(N) (N = max entries, e.g. 3).
In that Entry’s Runtime section, increment it: s1entry = Get Runtime(s1entry) + Number(1).
For “only once”, check Get Runtime(s1entry) == Number(1) and set it to Number(2) in the runtime.
Start at 1, not 0: a bare Get Runtime(...) that reads 0 is treated as false and the condition silently never fires. Always wrap values in Number(...). A Universal Exit clears all runtime variables, so the counter resets when the strategy re-initialises (for intraday, next day).