- ago
Hey there,
feels like a noob question but what do I miss here?
Backtest doesn't open/close any position. :/


0
464
Solved
9 Replies

Reply

Bookmark

Sort
- ago
#1
Disabe the "RSI > 70" rule.
0
Cone8
 ( 7.88% )
- ago
#2
The entry rule works "as is" (I tested it).
Probably the issue is the configuration of the Position Sizer. Check the Metrics report for the NSF count. It's probably quite high, right? You can tell for sure if it's the sizer just by changing to Fixed $5000 size.

For sure it's Max Risk sizing for shorts. You need to change the Max Risk indicator in the Trading Preferences, and, you should add a Cover at a loss rule that corresponds to it, but that last part is optional if you want unlimited risk. The strategy above only sells for a profit, so "loser positions" will stay open forever.
0
- ago
#3
QUOTE:
The entry rule works "as is" (I tested it).

Same here but the RSI rule excluded all trades in my brief test.
0
Cone8
 ( 7.88% )
- ago
#4
There are hundreds of trades on the S&P 500 in the last 5 years.
The problem is the Max Risk Indicator. The default indicator is set up for Long trades.
0
- ago
#5
btw, topic starter is using DrKoch's Max Risk position sizer.
0
- ago
#6
Hey there,

first of all thanks for the quick reply. And for the advice regarding this short position. This setup is just for demonstration purposes. I want to rebuild Bensdorp's strategy with Building Blocks but didn't want to post that because it's quite long xD.

The RSI isn't the problem. Disabling it didn't help. It seems to be the position sizer (yes, DrKoch's Max Risk) because when I change to fixed $5000 I get results.

But what I still don't understand is when I use the advanced position sizer with Max Risk 2% and Pct of Equity 10% I don't get any positions open AND the NSF position count is 0. :/ In the public C# coded strategy "Bensdorp's Short Rsi Thrust V2" the "Max Risk % Limited to % of Equity" Position sizer is used and it works. Somehow it seems to me that with Building Blocks it has somehow problems.

0
Cone8
 ( 7.88% )
- ago
#7
If your script doesn't set the Risk Stop level (it does not) it uses the Max Risk Indicator in Trading Preferences to find that stop risk level.
Read the second part of Post #2 carefully.
0
- ago
#8
Can I set the Risk Stop level with Building Blocks or is this only possible within C# (override double GetMaxRiskStopLevel)? If not, how can I trade different Systems (Long & Short) in a Meta-Strategy? I guess by setting up some kind of universal Max Risk Indicator in Trading Preferences like x times atr(xyz)?!
0
Cone8
 ( 7.88% )
- ago
#9
For the foreseeable future, you won't be able to run both long and short Building Block Strategies that use Max Risk % Sizing, which is an advanced sizer that needs to be properly integrated into strategy logic. Note that you created a Strategy that completely ignored Risk (no exit for a stop loss), but then applied Max Risk % Sizing.

Probably you could start another feature request topic: "Long and Short Default Max Risk Indicators". We could look into adding another control so that you could create separate indicators for long and short strategies - but you always have to remember to add an exit "At Stop" at that same indicator level in strategies that use it.
2
Best Answer

Reply

Bookmark

Sort