Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

About OHLC and OHL indicator alerts

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

    #31
    Hello ラリー,

    You are not plotting a value from OnBarUpdate. You can see an example of how to plot a value by reading the help guide documentation for AddPlot: There are multiple samples on that page of how to plot a value from OnBarUpdate.



    JesseNinjaTrader Customer Service

    Comment


      #32
      Hello ラリー,

      There are 3 parts to a plot.

      1. Add the plot series object with AddPlot().
      2. Set the Value[0] for the plot on each bar in OnBarUpdate()
      3. Return a public Series<double> so this can be access from another script

      Below is a link to a forum post with details.
      I'm trying to expose my variables to the strategy builder so everyone can have better use of the WaveTrend indicator (it has a lot of code). Explain this to me like I am 5 because this isnt the first time I've tried to figure it out and hit a wall. What is Series? I know its like an array that stores bars. Why not just call it
      Chelsea B.NinjaTrader Customer Service

      Comment


        #33
        NinjaTrader_Jesse NinjaTrader_ChelseaB​​

        Thank you for your reply.

        I followed the link and added the plot in OnBarUpdate but the values are not showing as well.
        What was different?​
        Attached Files

        Comment


          #34
          Hello ラリー,

          Did you remove the indicator column and re add it to the analyzer after making that change? If not the new code won't be used. You need to re add the column after changing items in OnStateChange
          JesseNinjaTrader Customer Service

          Comment


            #35
            Thank you for your reply.

            I did that but it doesn't show up as well.​

            Comment


              #36
              Hello ラリー,

              Have you tried using a chart to make sure the indicator works first? This may relate to the settings you used in the market analyzer for the bar settings. Try using a chart and make sure it plots then use the same settings for the data series when configuring the indicator in the market analyzer.

              JesseNinjaTrader Customer Service

              Comment


                #37
                Thank you for your reply.

                I have applied it to the chart, but it seems that it shows Day,Minute for the chart, but it doesn't show in the market analyzer.
                Also, the indicator setting in the market analyzer is as attached.​
                Attached Files

                Comment


                  #38
                  Hello ラリー,

                  Are you selecting enough data in the market analyzer for the indicator to calculate?

                  Do you see other indicators like the SMA working if you use similar settings?
                  JesseNinjaTrader Customer Service

                  Comment


                    #39
                    Thank you for your reply.

                    Are you selecting enough data in the market analyzer for the indicator to calculate?
                    Thank you for your reply.

                    I set the time frame to 365 days and ran it again, but it is not displayed.

                    Do you see other indicators like the SMA working if you use similar settings?
                    ​In addition, SMA and RSI are displayed on charts and market analyzers with values and graphs.
                    Attached Files

                    Comment


                      #40
                      Hello ラリー,

                      In the most recent image you have a different script selected. You need to select the Indicator column and then the indicator that you created.
                      JesseNinjaTrader Customer Service

                      Comment


                        #41
                        Thank you for your reply.

                        Does that mean select SMA or RSI for Configured in the Columns property item?​

                        Comment


                          #42
                          Hello ラリー,

                          No you need to select the Indicator column and then the custom indicator that you made. If you need to use the SMA or RSI in your custom indicator that would be done in your code.
                          JesseNinjaTrader Customer Service

                          Comment


                            #43
                            Thank you for your reply.

                            i tried but am i correct?​https://www.screencast.com/t/dWzhnx8Hrcn

                            Comment


                              #44
                              Hello ラリー,

                              In the video you have not applied the custom indicator which contains your conditions, plots and alerts. You are manually applying system indicators and a custom column which reports ... The custom column can be removed completely because that is not how you select your indicator.

                              If you wanted to display a custom value in the analyzer and also trigger alerts you need to select the Indicator column and then the custom indicator that you made.

                              If you are having difficulty understanding the market analyzer indicator column I would suggest watching the video that covers using the market analyzer . https://ninjatrader.com/support/help...MarketAnalyzer
                              JesseNinjaTrader Customer Service

                              Comment


                                #45
                                Thank you for your reply.

                                I apologize for my lack of understanding.
                                I used the video as a reference, but does Jesse explain the image (attached)?​​
                                Attached Files

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by pmachiraju, 11-01-2023, 04:46 AM
                                8 responses
                                149 views
                                0 likes
                                Last Post rehmans
                                by rehmans
                                 
                                Started by mattbsea, Today, 05:44 PM
                                0 responses
                                5 views
                                0 likes
                                Last Post mattbsea  
                                Started by RideMe, 04-07-2024, 04:54 PM
                                6 responses
                                33 views
                                0 likes
                                Last Post RideMe
                                by RideMe
                                 
                                Started by tkaboris, Today, 05:13 PM
                                0 responses
                                5 views
                                0 likes
                                Last Post tkaboris  
                                Started by GussJ, 03-04-2020, 03:11 PM
                                16 responses
                                3,283 views
                                0 likes
                                Last Post Leafcutter  
                                Working...
                                X