Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Error while Using ExitLongLimit

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

    Error while Using ExitLongLimit

    If a strategy has a simple exitLonglimit where the price is some MA, and when it gets close to the MA, it will start making a market by using the exitLongLimit to cover. Essentially, the cover price moves as the SMA moves and it will only be covered if the price gets spiked,

    I get an error message saying

    "An Exit() method to submit an entry order at '7/11/2018 12:12:00 AM' has been ignored. Please search on the term 'Internal Order Handling Rules' in the Help Guide for detailed explanation."

    here is a sample of the cover logic

    Code:
     
    if (Position.MarketPosition == MarketPosition.Long)
    {
     
     
    while(LongPercent >= 0.60) //40% close to moving SMA
     
    {
    ExitLongLimit(SMA[0])
    }
    I looked at the order handling per the error message but could not figure out what is the problem here.

    #2
    Hello Boonfly8,

    Thank you for your note.

    Could you please send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and attach the log and trace files for the day in subject which you can find in My Documents>NinjaTrader8>Log and My Documents>NinjaTrader8/Trace folders.

    I look forward to your email.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frslvr, 04-11-2024, 07:26 AM
    6 responses
    106 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    6 responses
    26 views
    0 likes
    Last Post trilliantrader  
    Started by arvidvanstaey, Yesterday, 02:19 PM
    5 responses
    14 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Rapine Heihei, Yesterday, 08:25 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Mongo, Yesterday, 11:05 AM
    6 responses
    27 views
    0 likes
    Last Post Mongo
    by Mongo
     
    Working...
    X