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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            57 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            19 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            9 views
            0 likes
            Last Post cre8able  
            Working...
            X