Sorry if this is obvious but only just starting out with Wealth-Lab. I have looked through the manuals etc, but must be missing something really obvious.
All help is greatly appreciated.
Problem.
I want to do a pair ratio trade i.e. buy 'n' of symbol1 AND simultaneously sell 'm' of symbol2.
Solution I have so far... I 'think' I know how to simultaneously buy and sell differing symbols by switching the 'context' ie.
CODE:
Please log in to see this code.
This appears to work as I want it to i.e. when I run the strategy, trades for symbol1 and symbol2 are indeed placed at the same bar and with the correct side.
But I am
absolutely stumped on how to change/set the volume of the trades? What am I missing? Can anyone please explain or send me a link to an explanation.
All help and comments are most appreciated. Thanks in advance.
Size:
Color:
Positions (trades) are sized by the
Position Sizing Control (see User Guide, Reference). When you need more control over sizing, then you can use programmable
PosSizers. Many PosSizers for common and not-so-common sizing are included in the
MS123.PosSizer Library extension.
If you can tell how the sizing differ between the pairs, then we can suggest one for you.
Size:
Color:
Size:
Color:
Thanks Cone I think Fixed Ratio in the PosSizer library is EXACTLY what I am looking for. So will get this installed and also read through the Position Sizing as yo umentioned.
Once again thanks for this it is greatly appreciated.
Size:
Color:
Thanks Eugene SetShareSize is EXACTLY what I need. Could not see the wood for the trees. Thankyou and sorry for wasting your time.
Size:
Color: