Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy to send orders immediately when it is Enabled

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

    Strategy to send orders immediately when it is Enabled

    I am using Ninjatrader wizard to build new strategy, and want my strategy to send orders immediately when I press Enable in the Control Panel, and not wait for incoming tick to activate the strategy. How do I program this condition using the wizard? I use COBC=False and GetCurrentAsk()>GetCurrentBid() as my condition but it still waits for incoming tick to send orders.
    Thank you for assistance

    #2
    alvin050, this would be unfortunately expected when working with your code in OnBarUpdate() - a tick has to be seen to trigger the logic, eventhough you're working with COBC = false. Please also keep in mind your GetCurrentAsk / GetCurrentBid properties only could work in realtime, for historical data they would use the close price.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Kaiviti57, Today, 04:13 AM
    0 responses
    3 views
    0 likes
    Last Post Kaiviti57  
    Started by Cross161, Yesterday, 10:33 PM
    0 responses
    11 views
    0 likes
    Last Post Cross161  
    Started by neilzep, Yesterday, 08:55 PM
    1 response
    11 views
    0 likes
    Last Post Emma1
    by Emma1
     
    Started by javier.filgueira, Yesterday, 03:29 PM
    3 responses
    11 views
    0 likes
    Last Post javier.filgueira  
    Started by Da vinci, Yesterday, 03:15 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X