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 josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    5 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    18 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by frslvr, 04-11-2024, 07:26 AM
    9 responses
    127 views
    1 like
    Last Post caryc123  
    Started by selu72, Today, 02:01 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X