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
Plot: Is there a Plot Style? [SOLVED]
Re: Plot: Is there a Plot Style? [SOLVED]
Hello Ben and thanks for your inputWould 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
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
Re: Plot: Is there a Plot Style?
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
May this leads you to develop an idea or workaround to solve your problem.
Ben
Re: Plot: Is there a Plot Style?
Interesting, never really done work with Expert commentaryYou 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
Martin
- TJ
- Posts: 7752
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1034 times
- Been thanked: 2228 times
Re: Plot: Is there a Plot Style?
A few considerations: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
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.
Re: Plot: Is there a Plot Style?
Hello TJA few considerations: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
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.
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