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)
As far as I know, it's not possible to conditionally change the width/size of the current (candlestick) bar.
If you don't want another viewing pane, an alternative might be to colour the candles (with PlotPaintBar) based on the volume increase or decrease. Let's say the candle closes lower than the previous low (i.e. is red), than you might use different graduations of red to display the volume of that bar. For example, a down bar on high volume can be plotted deep red, signalling excessive selling. A down bar with moderate volume might be given a 'softer' red colour, etc.
Regards,
Can you help answer these questions from other members on NexusFi?
It's (probably) a BarStatus thing. See for example this thread, where there were also some troubles with BarStatus. Why it does what it does, I don't know. Perhaps @MultiCharts can shed some light on this.
---
Btw, if you use CurrentBar instead of BarStatus, the indicator works on historical data, but gives different results then when using BarStatus in real-time/PlayBack.
Current Bar code:
See attachment with comparison.
Edit:
I've just noticed the Gom Indicators created by MultiCharts self also don't work on historical data but only on PlayBack/real-time data. Perhaps an analysis of volume can't be done with historical data, without adding data series. Since adding a data series with a 1 tick resolution messes up that chart, even when set to hidden, I'm afraid this can't be done with historical data. Anyone got a thought on this?
I never tried the MultiCharts-created CDV indicators. I posted the one I am using in that thread, and it works fine on historical data.
I tried your outside vol indicator, and it is not plotting for me even with live data. I am using it on a volume chart. I haven't had time to do anything with the code, still plan to...
I believe that using the GomCD as an example (the version I am using, not MC's version) it is possible to get this to work properly on historical data.
As for your screen shot --- One explanation is the color is being set based on the last tick intrabar vs. close of bar? I can't tell, since mine isn't plotting at all
I think that indicators in TS and MC don't calculate intrabar on historical data, at least not on a tick-by-tick basis. Only strategies can do that, but then they can't plot data. However, you can cheat by incorporating the code into a strategy that has a dummy buy or sell that can never get triggered. Then send the data using ADE from the strategy to an indicator to plot the data. I know it sounds absurd, but it would then work I believe.
I can't speak for TradeStation, but MultiCharts calculates tick by tick on historical data using indicators. Now, everything you said is true of NinjaTrader - but not MultiCharts.
To calculate indicators historically on a tick by tick basis could take an immense amount of processing time and most indicators (although not the one in question here) would end up with the same result anyway, so I don't see that this can be a default behaviour.
In MultiCharts I can only see intrabar calculations are working on the last bar. I just retested it with debug statements, and only see the intrabar tick by tick calculation occurring on the last bar, therefore realtime only.
There seems no way to change that behaviour, unlike with a strategy where you can change these settings. So I still conclude it is like TradeStation. I would be very interested to know if I am wrong about that as it would enable me to do all sorts of things more easily
Been busy with some projects so my response is somewhat late. Sorry for that.
You mean this one? I've imported that version, and you're right, this one works on historical data. However, as far as I can tell, this is only because this Gom version uses the UpTicks and DownTicks reserved words to calculated the delta volume. These are 'supplied' by MultiCharts self and because of that also usable with historical data. Sadly they can't be used for this indicator, since we want the up volume that happens above the previous close, not just the total up volume.
That's wierd. I'm also using it on a volume chart and have no problem with PlayBack data. Do other people also experience these problems? Btw, the indicator is written in MC6.0, so it can't be any backward compatibility issues (perhaps forward, but I don't assume that to be the case).
True, that might be a explanation. I haven't been able to plot an indicator on historical data tick-by-tick with using PlayBack of that data, so I'm not aware of a way to set the color based on the last tick. Perhaps someone can help us out?
Interesting, that could indeed work. Haven’t used ADE before so will need to look in that when I’ve got spare time for it.
Agreed SPTrading, that is in accordance with my experiences.
That makes two of us.
Does anyone has a MultiCharts indicator or code example that calculates intrabar (instead of only end-of-bar)?
Interesting about the intrabar comments. I just don't write many indicators or strategies any more.... but I sure thought for certain it was tick by tick on historical data. I'm calling @MultiCharts so maybe a comment can be made on that.
I haven't had a chance to do any further testing on the indicator. Sorry. Too much going on right now for 'play' time