Plotting a dashed indicator - what's wrong ?

Questions about MultiCharts and user contributed studies.
Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Plotting a dashed indicator - what's wrong ?

Postby Automeq » 30 May 2017

What's wrong here ?

Code: Select all

plot5(h*1.01, "top", tool_darkgreen, tool_dashed);
Isn't tool_dashed after colour the right place to request a dashed line ? I'm getting a solid green line instead. The same if I use tool_dashed2, tool_dashed3 or tool_dotted.

No sure if it's important but this happens in SPY chart 5 minutes.
SPY solid line.PNG
(35.72 KiB) Downloaded 378 times
Another question: if I'm defining green as the color, why does the indicator windows shows it as pink
Indicator window.PNG
(16.22 KiB) Downloaded 378 times

User avatar
Angelina MultiСharts
Posts: 260
Joined: 28 Dec 2016
Has thanked: 28 times
Been thanked: 66 times

Re: Plotting a dashed indicator - what's wrong ?

Postby Angelina MultiСharts » 31 May 2017

Hello Automeq,

tool_dashed can only be used in combination with TL_SetStyle keyword for trendlines. Plot style should be set in Format Study -> Style tab, it is not possible to do from the script.
Style tab doesn't pick up the values from your script, so it displays default color.


Return to “MultiCharts”