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:	182
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:	208
Size:	9.4 KB
ID:	1169905


      This is the strategy, what is wrong here?

      Click image for larger version

Name:	WisemannAlligator.JPG
Views:	136
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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X