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 NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    43 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X