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 f.saeidi, Today, 08:01 PM
            0 responses
            1 view
            0 likes
            Last Post f.saeidi  
            Started by Rapine Heihei, Today, 07:51 PM
            0 responses
            3 views
            0 likes
            Last Post Rapine Heihei  
            Started by frslvr, 04-11-2024, 07:26 AM
            5 responses
            96 views
            1 like
            Last Post caryc123  
            Started by algospoke, 04-17-2024, 06:40 PM
            6 responses
            49 views
            0 likes
            Last Post algospoke  
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Working...
            X