Jump to content
Medved Trader Forums
Camillo

Write Something in the graph with the advanced mode

Recommended Posts

Is it possible to write something in the graph with the advanced mode ?
For example the value of some variables of the paintbar for debugging.
See my attached image :

 

WHS.gif

Share this post


Link to post
Share on other sites

Debugging paintbars is something we're looking at.

Thank you for that

Another question :

If I write this code :

HMA3 would be represented by a line on the graph such as HMA (22) and HMA (50)

 

HMA3.gif

Edited by Camillo

Share this post


Link to post
Share on other sites

sorry, this was missed I think. Yes you can do that. you can add 2 lines:

    SetColor("HMA3", SysColor.MainIndicator1);
    SetYValue(HMA3);

SetYValue will only work if the color is set prior to it being called.

Share this post


Link to post
Share on other sites

+1 for writing on the chart. I have volume values I wanted to print onto chart, based from values from the Weis Wave Vol (almost trying to recreate his zigzag volume indicator).

Btw, I'm happy I ended up getting a subscription. The scanner features alone are a godsend for trading crypto.

Share this post


Link to post
Share on other sites

Can't write freely on the chart using the Paintbar. However, assuming you are using Advanced mode, you can SetShape and change the values based on your computations. For example, I just made this sample Paintbar show a different value above each candle:

public void MainCalculation()
{
    SetColor(SysColor.MainIndicator1);
    this.SetShape((PBShape)(200 + shapeIndex++));
    if (shapeIndex > 35)
        shapeIndex = 0;
    
    return;
}
int shapeIndex = 0;

image.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×