Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

2 plots from one Indicator cross

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

    2 plots from one Indicator cross

    Hello people,

    I am only working with Strategy Builder, so no coding. I have a question: How can I tell the Ninjatrader to action at the point, where 2 Plots cross? I´ve marked it in yellow, for example everytime the green plot cross the red plot from below (for example)

    Click image for larger version

Name:	cross plots.JPG
Views:	178
Size:	99.5 KB
ID:	1169574

    Thank you

    #2
    Hello Chris_GRM,

    Thanks for your post.

    You could create a crossover condition that compares each plot in the indicator and call an action. To do so, navigate to the Conditions and Actions section in the Strategy Builder. Select 'add' in the Conditions section. On the left side, select the indicator, click the Value Plot drop-down menu in the Plots section, select the plot you want to compare. In the center, select cross above or cross below. On the right side, select the indicator, click the Value Plot drop-down menu in the Plots section, select the plot you would like to compare, and click OK.

    See this help guide page for an example and steps for creating crossover conditions using the Strategy Builder: https://ninjatrader.com/support/help...sOverCondition

    Also, see the attached example script which demonstrates comparing 2 plots from the same indicator.

    And, here is a link to our publicly available training video, 'Strategy Builder 301', which you may find helpful: https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s

    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


      #3
      Hi Brandon,

      thanks for your response and the example. I´ve tried it with the Wiseman Alligator, but I get this error message:

      Click image for larger version

Name:	Compile Error.JPG
Views:	202
Size:	9.4 KB
ID:	1169905


      This is the strategy, what is wrong here?

      Click image for larger version

Name:	WisemannAlligator.JPG
Views:	132
Size:	76.6 KB
ID:	1169906

      Thank you

      Comment


        #4
        Hello Chris_GRM,

        Thanks for your note.

        I do not see anything specific in the screenshot you shared that would cause a compile error to occur.

        That said, please see the attached example script which demonstrates creating a crossover condition in the Strategy Builder using the Wiseman Alligator indicator. You could compare this example script with your script to see what might be done differently in your script.

        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
        64 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