Keeping Trendline drawn by indicator

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Keeping Trendline drawn by indicator

Postby arjfca » 12 Apr 2017

Hello

How can I keep on the chart trendlines that are drawn with an indicator.

I lost them whenever I change the scale and the indicator recalculated.

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Keeping Trendline drawn by indicator

Postby TJ » 12 Apr 2017

Hello

How can I keep on the chart trendlines that are drawn with an indicator.

I lost them whenever I change the scale and the indicator recalculated.

Martin

The TL should stay on the chart even when you change the scale or recalculate.

Unless...

your code logic is transient.
ie. after your recalc, the condition no longer applies.


Sorry, can't tell you more without specific code.

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Keeping Trendline drawn by indicator

Postby arjfca » 12 Apr 2017

Hello

How can I keep on the chart trendlines that are drawn with an indicator.

I lost them whenever I change the scale and the indicator recalculated.

Martin

The TL should stay on the chart even when you change the scale or recalculate.

Unless...

your code logic is transient.
ie. after your recalc, the condition no longer applies.


Sorry, can't tell you more without specific code.
OK, I will revisit my code.

Martin


Return to “MultiCharts”