• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Red Card" error when StartBehavior=ImmediatelySubmitSynchronizeAccount

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

    "Red Card" error when StartBehavior=ImmediatelySubmitSynchronizeAccount

    Hello,
    looking for a logical explanation what went wrong.
    Selected StartBehavior=ImmediatelySubmitSynchronizeAccount to sync account with strategy on startup. My understanding is that NT submits a market order to align both.
    But it's getting rejected. And the error "Insufficient Funds" son't make sense at all.

    2019-05-06 09:39:47:374|1|4|Enabling NinjaScript strategy 'TfsBollingerMarketMakerV2.1/168558367' : On starting a real-time strategy - StartBehavior=ImmediatelySubmitSynchronizeAccount Position=EURUSD 635L AccountPosition=EURUSD 3792L EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=Per entry execution ErrorHandling=Stop strategy, cancel orders, close positions, ignore order rejections ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On each tick IsUnmanaged=True MaxRestarts=4 in 5 minutes
    2019-05-06 09:39:47:374|1|4|NinjaScript strategy 'TfsBollingerMarketMakerV2.1/168558367' submitting order
    2019-05-06 09:39:47:375|1|4|Syncing account position on starting strategy 'TfsBollingerMarketMakerV2.1/168558367'. Account position='3792L EURUSD' Strategy position='L EURUSD'
    2019-05-06 09:39:48:016|1|32|Order='680900206/401386179' Name='Sell' New state='Submitted' Instrument='EURUSD' Action='Sell' Limit price=1.12016 Stop price=0 Quantity=1,270 Type='Limit' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='No error' Native error=''
    2019-05-06 09:39:48:016|1|32|Order='0/401386179' Name='Synchronize' New state='Rejected' Instrument='EURUSD' Action='Sell' Limit price=0 Stop price=0 Quantity=3,157 Type='Market' Time in force=GTC Oco='' Filled=0 Fill price=0 Error='Order rejected' Native error='Instruction processing has resulted in a Red Card. Please check details. Insufficient Funds.'
    2019-05-06 09:39:48:016|0|32|401386179, Instruction processing has resulted in a Red Card. Please check details. Insufficient Funds. affected Order: Sell 3157 Market

    #2
    Hello TraderFrank,

    Have you contacted your broker about this order at this point?

    The message you are seeing would be a broker-specific message which is listing Insufficient funds, this would be something the broker could review and provide more detail on. From the platform standpoint, it is simply reporting the state of the order which seems to have been rejected for the mentioned reasons.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Using Forex.com. And clearly AccountPositionis stating that current position is 3792L. So why should the sell order for 3157 fail?
      The order is generated NT internally, so it's nothing I could react on in the script. Thought that Forex.com is NT's "preferred" Forex broker? So could you try to find out? Pretty sure it's impossible for me to find anyone at Forex.com who knows about my "Red Flag" issue with NT8.

      Comment


        #4
        Hello TraderFrank,

        The order is generated NT internally
        Correct the platform has placed the order to the broker but your broker rejected this order which is then relayed back to NinjaTrader. Only the broker would have the full details on specifically why the order has been rejected outside of the comment that was given.

        Error='Order rejected' Native error='Instruction processing has resulted in a Red Card. Please check details. Insufficient Funds.'
        This is something you would need to speak with your broker about to gather more specific details. With the details they provide, we could discuss how to move forward depending on what specifically happened here. That may entail modifying the start behavior of the strategy or addressing whatever concern brought up this message.

        When speaking with your broker, you can provide the specific message you had seen with the rejection or:
        Instruction processing has resulted in a Red Card. Please check details. Insufficient Funds.

        Please let me know if I may be of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by juanram, Today, 06:01 AM
        0 responses
        1 view
        0 likes
        Last Post juanram
        by juanram
         
        Started by random9570, Yesterday, 09:01 PM
        2 responses
        19 views
        0 likes
        Last Post Emma1
        by Emma1
         
        Started by SDaCosta30, Today, 04:19 AM
        0 responses
        4 views
        0 likes
        Last Post SDaCosta30  
        Started by memonolog, Today, 02:39 AM
        0 responses
        12 views
        0 likes
        Last Post memonolog  
        Started by Z-Starter, Today, 01:21 AM
        2 responses
        11 views
        0 likes
        Last Post Z-Starter  
        Working...
        X