How does SetDollarTrailing calculate intrabar in a backtest?

Questions about MultiCharts and user contributed studies.
LanceElCamino
Posts: 1
Joined: Jul 17 2024

Jul 17 2024

I noticed that SetDollarTrailing and SetPercentTrailing are calculated intra-bar. I was wondering how that is calculated? Are the bars broken down into ticks, seconds, or minutes when SetDollarTrailing is active in the backtest data? Sometimes when I run a strategy on replay it won't show the trailing stop execute until the bar closes. Do I have the replay speed too fast? I want to ensure the backtest is accurate when using SetDollarTrailing in on-bar-close calculations for my strategies.

User avatar
faraz
Posts: 204
Joined: Feb 25 2011
Location: 1stchoicestrategy.com
Has thanked: 26 times
Been thanked: 67 times

Sep 02 2024

Strategy properties > Back testing > backtesting percision> enable Use bar Magnifier > Intra-day 1 minute should be fine.






Trading Excellence ! ! !
1stChoiceStrategy.com