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.

    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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            77 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            45 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            27 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            63 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X