Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

start strategy

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

    start strategy

    Hello,

    to do a controlled manual entry but then working the conditions for stoplosses and targets with the strategy I have eliminated all entry conditions and kept only

    if (Position.MarketPosition == MarketPosition.Flat
    && KeyReversalDown(1)[0] == 1)

    So the entry should be with the KRD (if flat, of course).

    But it occurs that there are KRD and there is no entry or there is an entry but not the first KRD that appears after enabling the strategy (this would be the sense of course). Is there any restriction? When does enabled strategy do an entry "first time"?

    Thanks
    Tony
    Last edited by tonynt; 06-03-2011, 07:58 AM. Reason: typing error

    #2
    Hi Tony,

    It depends on settings and the strategy position. The potential outcomes are detailed here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello Ryan,

      thanks for your reply. I know about difference from trading with NT 6.5.

      Let me please ask again:

      * Either when "wait until flat.." or " Immediately submit..." the entry is not realized with KeyReversalBar. And there is no position on the account to take into consideration with "syn account position"

      I have added a screen-shot where you can see that there is an enry at a KRD-Bar and then there are 2 times no entries.


      * how can it occur - when NinjaScript properties are " immediately submit live working..." that there are sent only the stoplosses and they are working (visible in chart trader) but there´s no position? Once triggered the stoplosses then we have trade in other direction - without stoplosses.


      Thanks
      Tony
      Attached Files
      Last edited by tonynt; 06-03-2011, 09:22 AM.

      Comment


        #4
        That's the way Immediately submit setting works. It doesn't wait until there's a flat state before submitting orders, so the stop loss orders submitted can enter in the opposite direction, unless you take care to sync the account with the strategy position. You can manually place an order or set the sync option to true before starting the strategy.

        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks for your reply, but what about the first issue. You can see in the attached jpg that there are KR-bars where there is no entry. Why isn´t there an entry every time there´s a KR-bar? (as this is the only condition beside market-position.flat)?? It´s no problem when there are restrictions, but it´s important one knows about.

          Thanks
          Tony

          Comment


            #6
            This comes down to debugging your code. Use Print() statements to confirm all values, track strategy order submission with TraceOrders output. Consider adding DrawingTools to get an additional visual that the signal is true.
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by geddyisodin, Today, 05:20 AM
            4 responses
            28 views
            0 likes
            Last Post geddyisodin  
            Started by geotrades1, Today, 10:02 AM
            2 responses
            5 views
            0 likes
            Last Post geotrades1  
            Started by ender_wiggum, Today, 09:50 AM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by rajendrasubedi2023, Today, 09:50 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by bmartz, Today, 09:30 AM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_Erick  
            Working...
            X