fred99998
 ( 19.71% )
- ago
The help says:

"Transactions are sorted by this value during the backtest process, so higher values here will result in a higher priority."

But when I compose a system of blocks and write, for example:

"Weight Indicator" -- Close
"Weight Prioritization" -- Highest Values

And then I "Open as C# Coded Strategy" there I see:

CODE:
_transaction = PlaceTrade(bars, TransactionType.Buy, OrderType.Market, 0, 0); _transaction.Weight = weight[index] * -1;


It turns out that the priority is given to lower values, and not to higher?
0
1,443
7 Replies

Reply

Bookmark

Sort
Glitch8
 ( 10.62% )
- ago
#1
You're right! Very sorry that slipped through, I'm fixing it for Build 2.
0
Cone8
 ( 4.98% )
- ago
#2
I think you're right. There's something wrong there. We'll look into it!

... and I can't delete my post - another bug :D
0
Glitch8
 ( 10.62% )
- ago
#3
You could edit it and erase all the text!
0
- ago
#4
My backtests are clearly choosing higher Weight.
0
Glitch8
 ( 10.62% )
- ago
#5
Hey Len, Higher weight is correct with WL7. It's the Transaction Weight Building Block that is erroneously reversed.
0
- ago
#6
I can't just paste the code. Error messages come up.
0
- ago
#7
C# strategies are not a destination for quick copy/paste. If you intend to modify a code-based stratgy you have to understand C#.
0

Reply

Bookmark

Sort