• 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 RB104, Today, 06:06 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by jtrading82, 05-25-2018, 09:59 AM
    9 responses
    978 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by syxforex, Today, 12:11 AM
    2 responses
    15 views
    0 likes
    Last Post syxforex  
    Started by aslane, Today, 02:31 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by stoner, 10-16-2019, 01:38 PM
    5 responses
    53 views
    0 likes
    Last Post sledge
    by sledge
     
    Working...
    X