Plot: Is there a Plot Style?  [SOLVED]

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

Plot: Is there a Plot Style?

Postby arjfca » 07 Oct 2014

Hello

I'm trying to set a Plot to be invisible. I just want the value in the Data Window not on the chart

I could do it manually in the Indicator format by setting the style to be invisible. But, I just can't figure how to code it. I could select the color, the weight but not the style for the Plot.

Martin :)

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: Plot: Is there a Plot Style?

Postby bensat » 07 Oct 2014

Would be NoPlot(X) a solution to stop plotting because a condition is met or just to define a condition to start/stop a Plot(X) ?

Ben

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

Re: Plot: Is there a Plot Style?  [SOLVED]

Postby arjfca » 07 Oct 2014

Would be NoPlot(X) a solution to stop plotting because a condition is met or just to define a condition to start/stop a Plot(X) ?

Ben
Hello Ben and thanks for your input

I still want the value in the Data window. So if I issue a NoPlot, data won't be there. At the moment, I'm formatting my indicator to be "hide"

Setting the invisible happen to create a problem in my application, so I will forget about it.

Best option would the have a function to hide an indicator from within the code. This has been asked, but not yet available.

Martin
Datawindow_3.jpg
(194.21 KiB) Downloaded 584 times

User avatar
bensat
Posts: 331
Joined: 04 Oct 2014
Has thanked: 46 times
Been thanked: 104 times

Re: Plot: Is there a Plot Style?

Postby bensat » 07 Oct 2014

You may could build up your own "Data Window" by writing a study as an "Expert Commentary". There you can declare what to show up in the "Expert Commentary"-window without plotting the values in the chart. Something like this should work ...

May this leads you to develop an idea or workaround to solve your problem.

Ben

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

Re: Plot: Is there a Plot Style?

Postby arjfca » 07 Oct 2014

You may could build up your own "Data Window" by writing a study as an "Expert Commentary". There you can declare what to show up in the "Expert Commentary"-window without plotting the values in the chart. Something like this should work ...

May this leads you to develop an idea or workaround to solve your problem.

Ben
Interesting, never really done work with Expert commentary


Martin

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

Re: Plot: Is there a Plot Style?

Postby TJ » 07 Oct 2014

Hello
I'm trying to set a Plot to be invisible. I just want the value in the Data Window not on the chart
I could do it manually in the Indicator format by setting the style to be invisible. But, I just can't figure how to code it. I could select the color, the weight but not the style for the Plot.
Martin :)
A few considerations:

1. PLOTs are painted in layers; the lower plot numbers are in the lower layers.
eg. Plot1 will be covered by plot2. Plot2 will be covered by Plot3, etc.,
So if you want something hidden, use a lower plot number.

2. Look up GetBackgroundColor.

3. make the 5th parameter of PLOT as small as possible. eg. 0 (zero).


Hope the above helps.

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

Re: Plot: Is there a Plot Style?

Postby arjfca » 07 Oct 2014

Hello
I'm trying to set a Plot to be invisible. I just want the value in the Data Window not on the chart
I could do it manually in the Indicator format by setting the style to be invisible. But, I just can't figure how to code it. I could select the color, the weight but not the style for the Plot.
Martin :)
A few considerations:

1. PLOTs are painted in layers; the lower plot numbers are in the lower layers.
eg. Plot1 will be covered by plot2. Plot2 will be covered by Plot3, etc.,
So if you want something hidden, use a lower plot number.

2. Look up GetBackgroundColor.

3. make the 5th parameter of PLOT as small as possible. eg. 0 (zero).


Hope the above helps.
Hello TJ
Thanks for your explanation and suggestion.

LineWidth - an optional parameter; specifies the plot line width, ranging from 1 to 14. 0 may not be possible. I did not tried yet

Also, I realized than when I format the plot line to be invisible, it interfere with my MouseCapture event indicator so the only option for the moment is to set the indicator manually in a Hide mode.

Have a nice day.

Martin


Return to “MultiCharts”