Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Quick Question!

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

    Quick Question!

    How would you code this? Using range bars, when bar closes on high (example-10 range bar closes at 1.5010 and I want to short at 1.5011) I just want to enter the opening price of the next bar (1.5011)? I know its probably real simple but I just don't know if I am doing it right in the strategy wizard. I seem to keep getting market orders that are sometimes better and sometimes worse. Someone please help! I just need to "see" how to code this THANKS!!!!!!

    #2
    Hello sdt929,

    With CalculateOnBarClose = true:
    Market orders like EnterLong(); and EnterShort(); are placed at the open of the next bar following the signal bar. You are then filled according to market dynamics.

    If you want to specify the worst price you're willing to receive, you can use limit orders. The bars are referenced according to the signal bar. A limit order to buy at the high of the signal bar is then:
    EnterShortLimit(High[0]);

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    666 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    376 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X