Hello,
Would like to have your suggesion on the multi-position setup.
The idea is roughly like this :
bool A
bool B
If A BuyAtMarket for the first position (10% of the starting capital)
if A&&B BuyAtMarket for the second position (10% of the starting capital)
......
Positions.Count <=4
My question is whether this idea can be realized ONLY with selecting a specific PosSizer option or has to be coded in the strategy.
Thanks a lot
Size:
Color:
Hello,
Assuming each position gets the same amount of capital, there's no need in a PosSizer. To limit the number of total positions, use ActivePositions.Count:
CODE:
Please log in to see this code.
See the WealthScript Programming Guide > Programming Trading Strategies > Multi-Position Strategies >
MP Strategy Template for example use.
Size:
Color:
Hi Eugene,
Thanks for the help. It's clear now.
Nice weekend
Size:
Color: