Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

plot

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

    plot

    Can you please help me with the compile error in the attached. May be I do not know how to correctly use plot. The objective is to set plots conditionally like when true plot = 1 and when false plot = 0.
    Attached Files

    #2
    Hello,

    Try double clicking the error and it might bring you to an area that is related to the error. I would also look in the Properties section of your code. I looked at it quickly and didn't see any thing that stuck out.

    For changing plots this link may or may not help:


    I did notice that you have overlay set to true yet you are plotting a value of "1" or "0" which likely won't be on your chart:


    To test it try plotting Close[0] to see if it will plot at all.
    DenNinjaTrader Customer Service

    Comment


      #3
      I have double clicked, gone to msdn site and the code makes no sense to me. You can help.

      It plots correctly
      I am trying to get the indicator in the market analyzer and set alert on it in the market analyzer. Please help

      Comment


        #4
        Hello,

        Its tough to know what the issue is because it is a custom indicator, but maybe if you posted a screen shot of what the indicator plots and screen shot or your MA settings for the alert I can help. This link my help also:
        DenNinjaTrader Customer Service

        Comment


          #5
          Please see attached. As you can see in the last column in MA it is giving the last price. I want it 0 or 1 and ALERT WHEN IT CHANGES STATE.

          If there is another way, please suggest. All I want is an alert when OBV is beginning to advance or decline
          Attached Files

          Comment


            #6
            Hello,

            So it is the error that you are having issues with right? It looks like you are going about it correctly from what I see. The error may be in your properties section. Try clicking on the grey "+" in a little box next to the word Properties and look for a little red underlined section. You also may be best off posting all of your code, including the properties part. (Not a screen shot.) I don't see anything wrong so far.
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            59 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            143 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            161 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            97 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            283 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Working...
            X