Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Where to start if I want to create a strategy on a trading set-up?

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

    Hi Ryan

    As a non-programming person, I created my first indicator this week. Have been monitoring its plotting and quite often the multi-color slope line will branch out per enclosed. Any idea on how to fix it please? Thank you.
    Attached Files

    Comment


      It looks like you have multiple plots for different colors. This was the recommend approach in version 6.5, but if you want to use multicolor plots in V7, you should follow the approach in the V7 reference sample here. Instead of multiple plots, you assign value to the PlotColors[][] property.

      Ryan M.NinjaTrader Customer Service

      Comment


        Hi Ryan

        With your prompt guidance, I felt like an A+++ student lol! No more branches for my slope haha .. Thank you!
        Attached Files

        Comment


          Sorry Ryan too early to grade myself.

          I trimmed down earlier 15 lines to the enclosed 5. Slope plotting normal when CalculateOnBarClose @True. It starts branching out again when CalculateOnBarClose @False. Please help. Thank you.
          Attached Files

          Comment


            What technique are you using for changing colors? It looks like from the names of your plots and there is only one line, that you're using multiple plots for different colors.

            For one line with multiple colors you need one plot only and assign its color with PlotColors.
            Ryan M.NinjaTrader Customer Service

            Comment


              Yes Ryan newbie me only has those 5 lines on the slope colors. No other codes within the indicator about colors. Sooo, do I need to add more PlotColors codes etc so that no branching? If yes, appreciate your tips.

              Sorry I have no idea on what technique I am using + no clue on coding PlotColors ..

              Comment


                You need only 1 plot, and the technique for using PlotColors is available here:


                Import the file: SampleMultiColoredPlot_NT7.zip into your NinjaTrader to see an example of this technique.
                Ryan M.NinjaTrader Customer Service

                Comment


                  Hi Ryan

                  I went through the sample indicator a few times. Cannot figure out how to adapt mine accordingly. Let me sleep on it for some nights ..

                  Comment


                    Hi Ryan

                    No more branching because a trading friend gave me some Reset codes .. haha ..

                    Need to pick your brains please. How to activate multiple indicators on a chart when one only needs to choose a predetermined system indicator? Let me elaborate more. I imported a system zip ABC (dll). When I selected ABC indicator from the Indicator list on a chart, it will automatically add ABC2 and ABC3 indicators to Panels 2 and 3 plus ABC on the Price Panel.

                    Is there a sample to learn how to do the above? Appreciate your tips. Thank you. Continue enjoying your day.

                    Comment


                      That's an interesting technique, but there is no supported way of assigning multiple panels for one indicator. All plots within an indicators are assigned one panel only. The author may be able to indulge their trick for this if you can contact them.
                      Ryan M.NinjaTrader Customer Service

                      Comment


                        Thanks Ryan for your prompt response. I doubt it very much that they will share the trick with me.

                        Comment


                          Hi Ryan

                          It's me again .. smile ..

                          I have an indicator really dragging my computer down (mostly the initial loading of the chart). Am unable to set CalculateOnBarClose @True as I will be late to enter a trade. What other options I may consider to speed up the chart loading please? Thank you.

                          Comment


                            Hello,

                            This is Brett responding for Ryan.

                            The only item you can change is the number of days you’re loading in the chart to reduce how much data the indicator has to calculate on to start. Other than that you would need to programmatically limit how many days back the indicator runs on or by changing the indicator code to be more processor friendly.

                            Let me know if I can be of further assistance.
                            BrettNinjaTrader Product Management

                            Comment


                              Thanks Brett for your prompt advice. I am going to knock at a programming friend's door and see if he may make the indicator more processor friendly for me .. smile ..

                              Comment


                                Good morning

                                I do not want to display the indicator's parameters under Condition Builder. Is there a sample showing me how to change my indicator's script please?? Thank you.

                                Have a Nice day. (Almost fainted when I noticed they're displayed there .)
                                Attached Files

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                651 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                370 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by Mindset, 02-09-2026, 11:44 AM
                                0 responses
                                109 views
                                0 likes
                                Last Post Mindset
                                by Mindset
                                 
                                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                                0 responses
                                574 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                577 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X