• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Color control of plot line

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

    Color control of plot line

    Hi!
    The Order Flow VWAP plot is green when above the price and red when below. See attached jpg. I'd like to replicate the logic. I do not see it under indicators. Where might I find it?
    Thanks
    Attached Files

    #2
    Hello morrnel,

    Thanks for your post.

    The Order Flow tools source code is not available.

    Here is a link to the Ninjascript access points: https://ninjatrader.com/support/help...flow_vwap2.htm which do not provide an option for changing the logic.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Thanks, however, I am interested in understanding the logic showing the color change in the line. I referred to Order Flow VWAP as reference because that indicator performs that logic.
      I have this code: AddPlot(new Stroke(Brushes.Red, 3), PlotStyle.Line, "BAMA");
      I want to override Brushes.Red and change it to Brushes.Green for part of the line.
      What should the line to override look like?

      Comment


        #4
        Hello morrnel,

        Thanks for your reply.

        To change the plot color at any point you would use PlotBrushes[][]: https://ninjatrader.com/support/help...lotbrushes.htm the help guide provide a good example.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Perfect. Works like a charm. Thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Abdullah_KSA, Today, 12:52 PM
          1 response
          2 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by darkgreen, Today, 11:53 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChristopherD  
          Started by trader510, Today, 11:44 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Heath  
          Started by Lumbeezl, Yesterday, 06:32 PM
          4 responses
          25 views
          0 likes
          Last Post MojoJojo  
          Started by ozziyhtomit, Yesterday, 05:24 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Working...
          X