Rotational strategy

Questions about MultiCharts and user contributed studies.
Martenbengtsson2
Posts: 1
Joined: 12 May 2021

Rotational strategy

Postby Martenbengtsson2 » 30 Jan 2022

Hi,
I want to create a simple rotational strategy.

If GLD performed better than SPY previous month then
buy or keep GLD
sell SPY

else
buy or keep SPY
sell GLD

What is the proper way to do this in multicharts?

The normal procedure wount let me place orders on data2 and when I read about the portfolio manager I dont see how to make it behave the oposite way on the two instruments.

It seem so simple and maybee it is. I just dont see it.

Best regards
Marten

User avatar
Svetlana MultiCharts
Posts: 645
Joined: 19 Oct 2017
Has thanked: 3 times
Been thanked: 163 times

Re: Rotational strategy

Postby Svetlana MultiCharts » 08 Mar 2022

Hi Marten,

You can find Portfolio strategies pre-built in PowerLanguage Editor and use them as an example. The logic is explained in this article.


Return to “MultiCharts”