Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CrossBelow CrossAbove with Fixed Price

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

    CrossBelow CrossAbove with Fixed Price

    Seems simple but can't wrap my head around it. I would like to use CrossBelow and CrossAbove with a fixed price. Let me explain.

    *** when the market is above my target price ***
    if market crosses below my fixed price of 3200, then go long

    Notes: Because the market is above my target price, I would like to use the Low[0] like so:
    if (CrossBelow(Low[0], 3200, 1))
    EnterLong();


    *** when the market is below my target price ***
    if market crosses above my fixed price of 3200, then go short

    Notes: Because the market is below my target price, I would like to use the High[0] like so:
    if (CrossBelow(High[0], 3200, 1))
    EnterShort();

    Any ideas of how i can use a fixed price like 3200 in CrossBelow / CrossAbove? Or is there a better way?

    Thanks,

    Last edited by bc24fl; 01-25-2021, 02:53 PM.

    #2
    Hello bc24fl,

    Thank you for your post.

    You could use the Strategy Builder to create cross above/cross below conditions followed by setting an action of enter long or short. Please see the help guide documentation and the publicly available video linked below for more information.

    Create crossover conditions - https://ninjatrader.com/support/help...sOverCondition
    Strategy Builder 301 -https://www.youtube.com/watch?v=VxU4FR6GWNA

    Also, please see the attached example that demonstrates this.

    Let us know if we may assist further.
    Attached Files
    <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, Yesterday, 05:17 AM
    0 responses
    63 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X