How to handle strategies that open multiple trades in SQ4
18 replies
Mark Fric
6 years ago #196945
I’d like to open a discussion about how to best implement scaling in SQ4 – meaning that strategy can open or close multiple trades into same direction.
It is mentioned here:
https://roadmap.strategyquant.com/tasks/sq4_0271
and
https://roadmap.strategyquant.com/tasks/sq4_0281
It is possible to have strategy that opens multiple positions in the same direction, the question is what methods to use to control that?
The ticket https://roadmap.strategyquant.com/tasks/sq4_0271 suggests that there should be some maximum number depending on a limit or open drawdown, but how to configure how often new trades should be opened?
Strategy probably shouldn’t open new position with every new bar.
I’m thinking about adding a condition on how often (meaning after how many bars) to open new position into the signal direction.
Are there some other ideas?
I’m not sue if this should be made configurable by program, or only possible using strategy templates – which gives you better control over how exactly you want the scaling to be implemented.
Mark
StrategyQuant architect
tomas262
1 year ago #278449
Hi,
you can calculate pips based on % defined. If you purchase BTCUSDT at 20,000.00 then 10% PT will be 200000 pips considering the pip being 0.01 (=1 USDT cent)
The average (long / short) price is a tricky part here. I will ask our dev team to add a new function into AlgoWizard “Average Position Price” or similar
Mz
1 year ago #278450
Thank you. Pips will work but that means each instrument you have to calculate the pips on. While % target is the norm in crypto. 1%, 2% regardless to the instrument used. Please add % profit target.
Thank you regarding average position entry price. Would love to see it in action
strvinmarvin
1 year ago #280437