Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
DrawRegion between MAs - Color between bars? - help required
If you refer to the attached image: "Example.jpg"
*You can see that the coloring starts in the middle of candle A and colors to candle B.
*I would like the candle coloring to start where 'A' is, however finish where line 'C' is. "Eg; color between bars not on the actual bar" (a second example of how I'd like to do the coloring is in attachment: Example2.jpg -- based on where- where the vertical lines are)
I thought it may be able to be done somehow with:
"ChartControl.GetXByBarIdx(Bars, CurrentBar) - (ChartControl.BarSpace/2)"
However, I am not sure where to being etc.
Is anyone able to please assist me with this? would be greatly appreciated
Sorry, yes, I didn't notice that I uploaded the cs file. I have attached the .zip version.
Fat Tails recommended that I try the TriggerLines indicator. I had a look at that one and the coloring aligns with the candles still.
My goal is to color the wave in-between candles. I hand-made a picture of what I'm trying to achieve regarding the coloring between candles (attached). I think this is done by overriding plot. However, no idea where to start.
Another option (untested by me) may be to add another data series at twice the sampling rate (IE: if main series 1 minute candle, add 30 second candles), hide the added data series by setting it to line on close and turning the line color then to transparent (make sure to overlay as well in same panel). Then using your logic on the main data series to determine the colors, actuate the drawregion using the secondary series which should have candles between your main series.
Be yourself; everyone else is already taken. Oscar Wilde