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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      477 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      317 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      256 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      340 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      308 views
      0 likes
      Last Post CarlTrading  
      Working...
      X