Announcement

Collapse
No announcement yet.

shift or displace a plot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shift or displace a plot

    Hi, I'm trying to plot a prediction of a certain value in the future, hence I need the plot to be ahead of the time.

    I've search around and an old thread suggested that i should use drawShapeRelative() instead, which I did eventually. But it doesn't look that nice, especially when you can't control the size of the shapes.

    I was wondering is there any new development in this area?

    Thanks.

  • #2
    Re: shift or displace a plot

    buddie
    If you are trying to replicate a plot then you may want to use drawLineRelative() which will allow you to change the thickness of the drawn line
    If instead you need to draw a shape then you may want to try using drawTextRelative() and one of the "wingding" fonts which will allow you to change the size of the shape
    Alex


    Originally posted by buddie
    Hi, I'm trying to plot a prediction of a certain value in the future, hence I need the plot to be ahead of the time.

    I've search around and an old thread suggested that i should use drawShapeRelative() instead, which I did eventually. But it doesn't look that nice, especially when you can't control the size of the shapes.

    I was wondering is there any new development in this area?

    Thanks.

    Comment


    • #3
      IC.., yes thank you for pointing that out.
      I use this now:
      PHP Code:
      drawLineRelative0predY[1], 1predY[0], PS_SOLID1Color.tealgetCurrentBarCount()); 
      Where predY[1] is the prediction calculated in the previous bar, and predY[0] is the predicted value calculated on the current bar.

      for the id i tried using null but it keeps giving me error, if i don't specify it will also give me error, so i use getCurrentBarCount() instead. It's all good now Thanks!

      Comment


      • #4
        buddie
        You are welcome and I am glad to hear it is working now
        Alex


        Originally posted by buddie
        IC.., yes thank you for pointing that out.
        I use this now:
        PHP Code:
        drawLineRelative0predY[1], 1predY[0], PS_SOLID1Color.tealgetCurrentBarCount()); 
        Where predY[1] is the prediction calculated in the previous bar, and predY[0] is the predicted value calculated on the current bar.

        for the id i tried using null but it keeps giving me error, if i don't specify it will also give me error, so i use getCurrentBarCount() instead. It's all good now Thanks!

        Comment

        Working...
        X