Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with quick change in zen fire data feed

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

    Problem with quick change in zen fire data feed

    Hi,

    I have a problem when I trade in live with zen-fire data feed. My strategy run well but when exchange is very nervous and if my stoploss is fired before the order is placed. Then There is a strategy error and strategy is stopped and my position go ahead without stoploss and strategy is off (very dangerous).

    What can I do for this ?

    Can you help me ?

    Eric

    #2
    Hello Eric,

    Not sure what you mean by a "nervous exchange", I assume you mean high volatility in the market.

    Are you using an ATM strategy in your NinjaScript strategy? If so, your stop loss will only trigger once your entry order is filled.

    Please tell me what the error exactly states.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Problem with quick change in zen fire data feed

      I didn't use ATM strategy. I use Ninjascript with SetStopLoss() instruction.

      Sometimes Ninjatrader could'nt execute SetStopLoss() instruction and the strategy stop to run with position engaged.

      Eric

      Comment


        #4
        Hello,

        Do you have the SetStopLoss() in the Initialized() method?

        This link may help:
        DenNinjaTrader Customer Service

        Comment


          #5
          Stoploss in volatil market

          No

          I use it in OnBarUpdate() method just after buy or sell order.

          Comment


            #6
            Hello,


            I suggest putting it in the Initialize method if that is possible.

            If not, I suggest using TraceOrders to see if there is an order in place prior to calling SetStopLoss(). This link will help:
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by nandhumca, Today, 03:41 PM
            0 responses
            3 views
            0 likes
            Last Post nandhumca  
            Started by The_Sec, Today, 03:37 PM
            0 responses
            3 views
            0 likes
            Last Post The_Sec
            by The_Sec
             
            Started by GwFutures1988, Today, 02:48 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            6 responses
            33 views
            0 likes
            Last Post ScottWalsh  
            Started by frankthearm, Today, 09:08 AM
            10 responses
            36 views
            0 likes
            Last Post frankthearm  
            Working...
            X