Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exit position on candle colour change

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

    Exit position on candle colour change

    Hello I’m trying to develop a simple strategy that will close my position on the next candle that closes in a different colour. It will be for renko bars. Any tips? I’m new to strategy builder, but I think I can figure it out with a little help. Thanks!

    #2
    Hello Douglee,

    Thanks for your post.

    To detect if a bar is an up bar, you could create a condition that checks if the Close price (Price folder > Close > Bars Ago set to 0) is Greater than the Open price (Price folder > Open > Bars Ago set to 0)

    To detect if a bar is a down bar, you could create a condition that checks if the Close price (Price folder > Close > Bars Ago set to 0) is Less than the Open price (Price folder > Open > Bars Ago set to 0)

    The attached screenshots demonstrate what these conditions would look like.

    See the help guide documentation below for more information about creating price comparisons: https://ninjatrader.com/support/help...ataComparisons

    Strategy Builder Actions: https://ninjatrader.com/support/help...t8/actions.htm

    Please let me know if I may assist you 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
      Thank you very helpful!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X