Buy&Sell a Ratio
Author: Assenzio
Creation Date: 1/26/2011 12:41 PM
profile picture

Assenzio

#1
Hello, in the old WLD 4 there was the ChangeBar function to transform the primary series into, i.e. a ratio (so to be able to buy & sell directly that ratio).

There is nothing available with the same purpose for WLD 6 ?
profile picture

Eugene

#2
Since you're a new Version 6 user, I strongly suggest exploring the Wealth-Lab Wiki FAQs:

Is there ChangeBar method in WL6?
profile picture

sourkraut

#3
I was looking for threads about buying/selling securities at a ratio to each other.
I.e. buy 1 share of A, sell 2 shares of B.

Am I misunderstanding the title of this thread?
What's a "ChangeBar"? What does it have to do with ratios?

How does the FAQ link answer the "ratio" part of the question?

CODE:
Please log in to see this code.


What am I missing?

profile picture

Eugene

#4
To topic starter -- who was or has been a WL4 user -- the passage about ChangeBar made sense in the context of his question.
QUOTE:
I.e. buy 1 share of A, sell 2 shares of B.

You could do it in a PosSizer, sizing Positions differently based on bars.Symbol. There may be alternative answers depending on your idea of ratio.
profile picture

sourkraut

#5
QUOTE:
You could do it in a PosSizer


Thanks, and I've been looking at the demo, and the tutorial.
Of all the sample libraries I've inspected, this is the most difficult to understand. Even with the "Creating Pos Sizer" tutorial.

But that's my problem.
profile picture

Eugene

#6
Feel free to ask for a clarification re: creating a PosSizer (preferably in a new thread).
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).