Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change candlesticks based on flat or position on

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

    Change candlesticks based on flat or position on

    Hey there, first time poster here.

    I'm looking for, or willing to make, a custom indicator that changes the candlestick color when in a position.
    My candlesticks are grey for bullish candles, and black for bearish candles. Dojis are white, like the outline of my candles.

    I would like to change the colors of the candle bodies depending on long/short. This will occur from the entry of my trade until the exit, embodying any candles in between. If the entry and exit are within the same candle, I would like there to be both the color change based on long/short as well as the default candle coloring. Let's say for example that I'm using a 60 minute chart and there's a 20 point candle which has both an entry and an exit within it. Where the entry of the trade is, I want that to be the start of the color change, and where the exit is, it will revert back to normal flat colors.

    I searched everything I could think of here on these forums and I couldn't find any indicators that did what I'm looking for. Maybe I wasn't using the right keywords. I'm willing to learn how to code this but I just wanted to see if anyone could either steer me in the direction of an indicator that already exists, or can point me in the right direction of materials I will need to go through in order to code this myself.

    Best regards

    EDIT** I uploaded a couple photos to illustrate what I'm trying to do. The first photo is my normal chart. The second is what I am looking for. Click image for larger version

Name:	Normal.PNG
Views:	606
Size:	498.0 KB
ID:	1086426Click image for larger version

Name:	Color changer.png
Views:	574
Size:	502.3 KB
ID:	1086424
    Attached Files
    Last edited by CJPrime; 02-07-2020, 03:17 AM.

    #2
    Hello CJPrime,

    Thanks for your post and welcome to the forums!

    I am not aware of an indicator that provides what you are looking for.

    Are you performing manual trades or trades through a Ninjascript or strategy builder created strategy?

    If through a strategy, coloring complete bars would be easy as there is a method for that and you simply provide the brush color to use. Partially coloring a bar would be difficult and would need customized work in OnRender(). Basically you would have to draw a rectangle on the bar and have code to adjust the rectangle as the bar adjusts in addition to adjusting to the scaling and time base (when chart is resized).






    Comment


      #3
      Thanks for the warm welcome Paul H.

      I am performing manual trades through the chart trader and the price action I'm seeing. I don't always get it right but everyday I am learning!

      I've had my chart set this way for some time, so I'm not worried about needing to resize or scale. I guess maybe it may be easier to just color code my end of day trades like I did in the photos rather than making an indicator to do this for me. I'm not really sure I want to commit the time to learning/coding about strategies either.

      Thanks for any guidance you can give.

      Comment


        #4
        Hello CJPrime,

        Thanks for your reply.

        Another alternative would be to use a 3rd party programmer who can provide the service of creating an indicator for you. We can provide a link to the programmers through the Ninjatrader ecosystem if you are interested.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        649 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        370 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        573 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        576 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X