• 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

Syntax Question

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

    Syntax Question

    Is it possible to change this line :

    Add(new Plot(new Pen(Color.Gray,1), PlotStyle.Line,"OR-Mid"));

    To something that will plot all the way to the right edge of the chart ? Tried "PlotStyle.HLine" but didn't work.

    Thanks

    #2
    Hello T2020,
    HLine will plot a horizontal line and will work fine. Please try the below code and see if you can get it work.
    Code:
    Add(new Plot(new Pen(Color.Gray,1), PlotStyle.HLine,"OR-Mid"));
    Please make sure to re-apply the indicator once you made the changes in the indicator.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Thanks , but still only plots to the latest candle on the chart. ..... ?? re complied , refreshed the chart and also re applied the indicator.

      Comment


        #4
        Hello T2020,
        To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

        Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

        I look forward to assisting you further.

        *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by StevenNelson, 11-19-2019, 05:39 AM
        3 responses
        14 views
        0 likes
        Last Post brucerobinson  
        Started by guidoisot, Today, 03:01 AM
        0 responses
        2 views
        0 likes
        Last Post guidoisot  
        Started by rontronimous, Yesterday, 05:55 PM
        0 responses
        9 views
        0 likes
        Last Post rontronimous  
        Started by bcgeek, Yesterday, 03:43 PM
        2 responses
        8 views
        0 likes
        Last Post bcgeek
        by bcgeek
         
        Started by Mberg, Yesterday, 04:05 PM
        1 response
        17 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X