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:	179
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:	204
Size:	9.4 KB
ID:	1169905


      This is the strategy, what is wrong here?

      Click image for larger version

Name:	WisemannAlligator.JPG
Views:	134
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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 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