Doubling previous quantity on tick data #534
Replies: 2 comments 1 reply
-
If I understand you correctly, you want to double the short position size with each new short signal and then reset once an exit signal occurs? If so, you should set a specific absolute quantity, such as 1 share (with Sharpe is tricky to compute on tick data, I recommend resampling to the next-highest frequency prior to simulation. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to test a simple short-only martingale strategy where the quantity shorted is double the current position size when a short signal occurs. At exit the whole position should exit.
I created the signals on tick data and have specified my portfolio as follows:
although I can't figure out if size_type 'percent' makes sense for my case and if size=2 means 200%, i.e. buy twice the current active quantity at every short signal.
Also, as I have tick data I cannot calculate sharpe ratio and some other metrics as I need to specify frequency. What is the usual approach to handle this? Do I need to bin my data to regular intervals?
Beta Was this translation helpful? Give feedback.
All reactions