Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how do i link my strategy to my chart

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

    how do i link my strategy to my chart

    hi

    i need my strategy just to give me a signal not to execute orders and also set a stop limit on the trade .

    #2
    Don't call any order methods if you don't want it to trade. You can only place stops if your strategy trades.

    Josh P.NinjaTrader Customer Service

    Comment


      #3
      you mean on the window of strategy i shouldnt pu any values for order handling section? if not then what do you mean don't call any order method? how do i change that method to do not execute any orders just to show the signals.

      thank you

      Comment


        #4
        I mean your strategy code. If you don't want to trade, don't call any Enter() methods in your strategy code.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          i'm just using the simple moving average which comes with ninja trader strategies ,how do i access to the code of that strategy ,sorry just new to the ninja trader and first time want to see how the strategy works.

          thank you

          Comment


            #6
            Tools->Edit NinjaScript->SampleMACrossOver.

            I am not sure what you are hoping to achieve. If your strategy doesn't trade, you will still need to tell it to do something or else it's going to be just like not having the strategy running.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              i need th estrategy just to give the signal so i can decide to buy or not can i set it up like that or not? also when i am in the trade by strategy wher do i enter my stop loss order because on the controll center gives me an error message ?

              Comment


                #8
                saeed,

                You need to change the code yourself. If you don't want it to trade, remove all the Enter() lines and replace them with something else. You can do things like drawing dots or painting the chart background.

                Please find the help guide articles for DrawDot() or BackColor.

                Not following you on your stop loss order issue. If you are doing a manual trade, then continue placing manual stop losses. The NinjaScript strategy will not do anything with manual trades. It effectively does not even know you did it.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  ok i am using strategy at this moment it took a trade for me now i am in the trade i see the trade is going against my profit i like to put stop loss on the trade but it wont recognise the stop loss ,it gives me an error message , i guess what i want to know is can i turn this execution mode into manual so if i want to enter i enter or if i want to get out of a trade because going against me and strategy is not taking me out of the trade ?

                  thanx

                  Comment


                    #10
                    saeed, which error message do you get? You could work a stoploss into the strategy and then drag and drop the level of the stop as needed on the SuperDOM for example.

                    Comment


                      #11
                      ok where do i create my stop loss so i can drag and drop it on my superdome?

                      Comment


                        #12
                        I am not sure what you mean by drag and drop a stop loss. If you are talking about the ATM strategies, please see the video library here on making ATM strategies to use with your SuperDOM: http://www.ninjatrader-support.com/H...eoLibrary.html
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          ok i appreciate all your help it looks to me i am not explaining right to you guys what my problem is .

                          i make it simple i want to you the simple moving average strategy manualy , is that possible ? i want the strategy just to give me the signal to buy or sell not executing a trade.

                          thank you

                          Comment


                            #14
                            saeed,

                            Yes, it is possible, but you need to modify the strategy. You need to remove the Enter() lines so it doesn't trade and replace them with some visual notification so you know where the strategy would have traded.

                            Just use something like BackColor = Color.Green; or something like that.
                            Josh P.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                            0 responses
                            647 views
                            0 likes
                            Last Post Geovanny Suaza  
                            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                            0 responses
                            369 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by Mindset, 02-09-2026, 11:44 AM
                            0 responses
                            108 views
                            0 likes
                            Last Post Mindset
                            by Mindset
                             
                            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                            0 responses
                            572 views
                            1 like
                            Last Post Geovanny Suaza  
                            Started by RFrosty, 01-28-2026, 06:49 PM
                            0 responses
                            573 views
                            1 like
                            Last Post RFrosty
                            by RFrosty
                             
                            Working...
                            X