- ago
Is it possible to add the following function to preferences? If according to the strategy on the same bar there are several limit orders for entry on the same ticker, then only the one with the less preferable price is executed. By analogy with "Preferences - Backtest - Exit Prioritization - Favor Stop (Pessimistic)"
To ensure that only one entry limit order is executed on one bar if there are several entry limit orders in the strategy.
1
307
6 Replies

Reply

Bookmark

Sort
Glitch8
 ( 6.11% )
- ago
#1
I think the way to handle this is to specify a Transaction Weight. Is this a code based or block strategy you’re working with?
0
- ago
#2
This is a block strategy.
0
- ago
#3
Now in strategies with a single symbol, orders are executed randomly if I limit the margin factor
0
Glitch8
 ( 6.11% )
- ago
#4
You have multiple entry blocks I assume?
0
- ago
#5
Yes, there are several entry blocks in the strategy. Entrances on different types of Bands.
0
Glitch8
 ( 6.11% )
- ago
#6
Yes then we'd need some way to address that particular use case. Let's leave the request open.

For now, if you want to, you could convert the block strategy to C# code and then assign the same group code to each PlaceTrade call.
0

Reply

Bookmark

Sort