setprofittarget and backtesting

Questions about MultiCharts and user contributed studies.
masber2000
Posts: 29
Joined: 15 Aug 2012
Has thanked: 2 times

setprofittarget and backtesting

Postby masber2000 » 06 Feb 2023

Hello-

2 questions: Does setprofittarget work with backtesting? Do I have to set intrabarordergeneration to true in order for setprofittarget to work?

Thank you

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

Re: setprofittarget and backtesting

Postby Kate MultiCharts » 06 Feb 2023

Hello masber2000,

SetProfitTarget does work in backtesting. It's calculated intra-bar and not only on close of a bar by default regardless of the IOG setting.
More info about it here.


Return to “MultiCharts”