• 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

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 Zenersev, 10-19-2019, 02:11 PM
    7 responses
    52 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Lancer, Today, 10:39 AM
    4 responses
    24 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Started by koganam, Today, 11:50 AM
    2 responses
    12 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by koganam, Today, 10:33 AM
    4 responses
    14 views
    0 likes
    Last Post koganam
    by koganam
     
    Started by FREEN, Today, 10:17 AM
    4 responses
    12 views
    0 likes
    Last Post FREEN
    by FREEN
     
    Working...
    X