Strategy

Questions about MultiCharts .NET and user contributed studies.
User avatar
clint454
Posts: 39
Joined: 21 Jun 2022
Has thanked: 21 times

Strategy

Postby clint454 » 17 Nov 2022

I have a custom strategy in pln format. Do I load in Format Objects/Studies/Add?

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: Strategy

Postby Kate MultiCharts » 22 Nov 2022

Hello clint454,

You can import PLN strategies in the PowerLanguage .NET Editor -> File -> Import. More info here.
After the studies are imported and compiled, you can insert them onto the chart: right-click the chart -> Insert Study.

User avatar
clint454
Posts: 39
Joined: 21 Jun 2022
Has thanked: 21 times

Re: Strategy

Postby clint454 » 29 Nov 2022

I imported and compiled. Where do I backtest the strategy?

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: Strategy

Postby Kate MultiCharts » 30 Nov 2022

clint454,

To backtest a strategy, insert it onto your chart: right-click the chart -> Insert Study.
After the strategy is calculated, the backtesting results will appear on the chart.
Some more info here.

User avatar
clint454
Posts: 39
Joined: 21 Jun 2022
Has thanked: 21 times

Re: Strategy

Postby clint454 » 06 Dec 2022

I inserted the study into the chart. Where can I define the strategy inputs before it calculates? Attached is an example of the inputs I am referring to. It is a custom strategy on another platform.
Attachments
backtest1.JPG
(140.67 KiB) Not downloaded yet

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: Strategy

Postby Kate MultiCharts » 07 Dec 2022

clint454,

You can check the “Format” box when inserting studies, then click OK.
Format.png
(17.93 KiB) Not downloaded yet
You'll see the Format Objects menu where you can format studies before they’re calculated: Format -> Inputs tab.

User avatar
clint454
Posts: 39
Joined: 21 Jun 2022
Has thanked: 21 times

Re: Strategy

Postby clint454 » 08 Dec 2022

After formatting a Studies Input String, does the Study automatically recalculate the backtest when closing the window or is there a Run selection? See attached.
Attachments
B2.JPG
(113.55 KiB) Not downloaded yet

User avatar
Kate MultiCharts
Posts: 575
Joined: 21 Oct 2020
Has thanked: 7 times
Been thanked: 144 times

Re: Strategy

Postby Kate MultiCharts » 09 Dec 2022

After formatting a Studies Input String, does the Study automatically recalculate the backtest when closing the window or is there a Run selection? See attached.
The strategy will be recalculated automatically after the settings were modified.
You can also do it manually: right-click the chart -> Recalculate Strategy.


Return to “MultiCharts .NET”