Max Entries per day in WL 5.5.28.0
Author: tedclimo
Creation Date: 10/22/2009 2:27 PM
profile picture

tedclimo

#1
I am just begining my learning curve in WL 5.5. Have succeeded in translating my 1st intraday script from WL 4.5, but with one problem I cannot solve.
My WL 4.5 script monitors several stocks, but buys only the one (@Market B+1) with the greatest Position Priority (when several present at once & then buys no more the rest of the day). In WL 4.5, I can Simulate/replicate live trading by setting the Simulator to 1 Max Open Positions. When married with SetPositionPriority,... It works identically in WL 4.5(to real trading).
How do I tell WL 5.5 to only take one trade per day? My SetPositionPriority code compiles successfully in WL 5.5, but I cannot figure out how to instruct the backtesting tool(& Strategy Monitor) to only choose the 1st stock (& ignore the rest) as determined by SetPositionPriority.
Thanks in advance for your tireless support,
Ted
profile picture

Cone

#2
The best solution would be to wait for PosSizers in 5.6.

Otherwise, you'd have to code the DataSetSymbols simulation yourself, sort on priority, and execute only one trade per bar on the symbol with the highest priority.
profile picture

ss161

#3
since 5.6 seems to come up in response to about 5 posts per day (probably a slight exaggeration) would you guys care to give an estimate for the release date?

thanks.
profile picture

Cone

#4
Everyone keeps asking for the same thing - PosSizers!

End of year, early next year.
profile picture

tedclimo

#5
Robert,
Great to hear that 5.6 will do Max Open Entries married with SetPositionPriority!
You guys rock.
My skills in C# are too limited to attempt any workarounds (DataSetSymbols). So no problem waiting.
Meanwhile, I can rely on WL 4.5 to keep me productive.
All the best,
Ted
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).