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:
        http://www.ninjatrader-support.com/H...tStopLoss.html
        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:
            http://www.ninjatrader-support.com/H...aceOrders.html
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Virgil123, Today, 01:39 PM
            0 responses
            3 views
            0 likes
            Last Post Virgil123  
            Started by kawalecld, Today, 12:21 PM
            0 responses
            6 views
            0 likes
            Last Post kawalecld  
            Started by exjayess, Today, 11:04 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_ShawnB  
            Started by robertlaub, Today, 11:11 AM
            2 responses
            7 views
            0 likes
            Last Post robertlaub  
            Started by sdauteuil, Today, 10:28 AM
            0 responses
            6 views
            0 likes
            Last Post sdauteuil  
            Working...
            X