Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

enter trade

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

    enter trade

    I set enter if high 0 > high 1, it enters when high 0 still less than high 1 , why ? Use live trade sim account . Feel like it uses bid and ask price, not the candle price.

    #2
    Hello bill2023,

    Thanks for your post.

    If you are calling a market entry order method, such as EnterLong() or EnterShort() the order would be placed to the market whenever the current bar's High price is greater than the previous bar's High price.

    To confirm exactly how your strategy is behaving it is necessary to add prints to your script (outside of the condition) that prints out each value being used for your condition to see how your logic is evaluating.

    Prints will appear in a New > NinjaScript Output window.

    Below is a link to a forum post that demonstrates how to use prints to understand behavior.
    https://ninjatrader.com/support/foru...121#post791121
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    41 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X