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

Moving Average of a Indicator

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

    #46
    You will most need to debug your strategy as per these tips: http://www.ninjatrader-support.com/v...ead.php?t=3627
    Josh P.NinjaTrader Customer Service

    Comment


      #47
      Let me see If I uderstand you correctly
      so what you are saying is when the cross over happens on bar 1 and it waits for bar 2 to close and it executes the trade on bar 3 at close of bar 2 is that how its working?
      if that is the case how can we conrtol the execution time to happen right at crossovers for example.
      If I have my entery when cci cross above -100
      what the system does if first bar crosses -100 then it waits for the second bar to close then it executes the trade at bar 3 by then the cci could be around -50 or higher and who knows many ticks later that is, That just take the edge away.....

      What my system needs is when cci crosses above -100 lets say goes to -99.99
      it has to execute the trade.....why does it waits so long 2 bars later
      it should not matter if I am using tick,line,candle chart it should execute right at -99.99
      Could you explain what the wait is for?
      is there a way we could control execution part of the auto trading system?
      thanks,

      Comment


        #48
        Hi
        what can I do to have the execution happen the second the cross over takes place...that is very important in my strategy
        I can not wait for the close of following bar or 2

        Comment


          #49
          See CalculateOnBarClose.

          RayNinjaTrader Customer Service

          Comment


            #50
            I had checked the box for CalculateOnBarClose and removed it in the wizard and retestd everything it Makes no diffremce if its check or not..
            what am I doing worng now..

            Comment


              #51
              If you are referring to a backtest then that is correct and expected. You will find information on this in the link I had previously provided.
              RayNinjaTrader Customer Service

              Comment


                #52
                i am referring to the live data i use DTN Ifeed data
                I check and uncheck the CalculateOnBarClose on wizard and it does not make any diffrence on triggering the trade times it trigggers on close of second bar start of 3rd bar

                Comment


                  #53
                  When you run the strategy on the chart, make sure that the "Calculate on bar close" parameter is set to false.
                  RayNinjaTrader Customer Service

                  Comment


                    #54
                    keyborad

                    its seems to make sense of the live date feed
                    another subject:
                    is it possible to have the stratgey on chart to press a certain key on the keyboard automaticly why a buy is triggard?
                    for example :
                    when a buy is triggard it would act as if the number 1 key was pressed. and 2 for sell.

                    Comment


                      #55
                      Since NinjaScript is C#, that is possible but this is outside of the scope of what we provide support for.
                      RayNinjaTrader Customer Service

                      Comment


                        #56
                        EDIT. I figured it out.
                        Last edited by Elliott Wave; 05-05-2008, 10:34 PM.

                        Comment


                          #57
                          Not sure what ZeroLagEMA is so I don't know the syntax for it, but generally you don't pass in doubles. You pass in the IDataSeries itself. For example when you use SMA(High, 5)[0] you didn't pass in High[0] you passed in the DataSeries High. I would assume the same would apply to ZeroLagEMA.
                          Josh P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by junkone, Today, 11:37 AM
                          0 responses
                          1 view
                          0 likes
                          Last Post junkone
                          by junkone
                           
                          Started by quantismo, 04-17-2024, 05:13 PM
                          5 responses
                          34 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Started by proptrade13, Today, 11:06 AM
                          1 response
                          5 views
                          0 likes
                          Last Post NinjaTrader_Clayton  
                          Started by love2code2trade, 04-17-2024, 01:45 PM
                          4 responses
                          34 views
                          0 likes
                          Last Post love2code2trade  
                          Started by cls71, Today, 04:45 AM
                          2 responses
                          10 views
                          0 likes
                          Last Post eDanny
                          by eDanny
                           
                          Working...
                          X