- ago
PlaceTrade does not consistently place a Long trade even though hasopenposition.Positiontype=Long is true. Am I missing a setting ?
0
218
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
We're missing your sample code that demonstrates the anomaly.
0
Cone8
 ( 25.44% )
- ago
#2
If the trades are changing for each backtest, that means you have "NSF Positions" - Not Sufficient Funds to take all the trades. When this happens, WealthLab randomly picks the trades that the backtest uses, unless you change it...

To make it consistent, assign Transaction Weight to the Transaction that the PlaceTrade() entry returns. If using the blocks, just drag in the Transaction Weight condition and choose the indicator to use for the weight. (The default, which works well, is to use the lowest RSI values.)
0
Best Answer
- ago
#3
Thanks for the reply -I solved the issue sort of. given your reply I noticed that I had the starting capital too low and as prices advanced I was priced out is all. Thanks!
2

Reply

Bookmark

Sort