Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time to correct position

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

    Time to correct position

    Hi friends,

    I had programmed some strategies with Visual Chart, then I translate it to NinjaTrader language. But I don't see in NinjaTrader the option called "Time to correct position (seconds)" that has Visual Chart. This option must be assigned a value in seconds. Its function is that if I place a limit order at 143.75 and the price is touched, but my order is not executed because is in the queue, then Visual Chart changes my limit order to a market order, if after the X seconds I put in the option "time to correct position" my limit order hasn't been filed.

    NinjaTrader have this option? if yes, where I find it? Or, maybe it can be programmed in the strategy codef?

    Thank you very much in advance for your help.

    Greetings.

    PD: Sorry for my english, I translate the post with the google translator.

    #2
    Hi rubenyes, thanks for the post - we would not have an option to directly convert your limit order if not filled within x seconds unfortunately, it could be coded though directly in your strategy script. While you could certainly check for a certain amounts of seconds via a timer object or a comparison between your order placement / condition time and the current PC clock (DateTime.Now), it might be easier getting started to work by bars, as per default your limit order placed in the managed mode will only last for one bar. You could then issue a market order for example if the condition to enter is still true and you're not in a position.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by trilliantrader, Today, 03:01 PM
    0 responses
    2 views
    0 likes
    Last Post trilliantrader  
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    67 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    19 views
    0 likes
    Last Post benmarkal  
    Working...
    X