[Bug?] Down volume in Renko charts not correct shown

Questions about MultiCharts and user contributed studies.
christianrichter
Posts: 12
Joined: 03 Aug 2010

[Bug?] Down volume in Renko charts not correct shown

Postby christianrichter » 22 Sep 2010

When adding the volume indicator, the up volume is shown correct in the indicator bu the down volume is not. Is there a way to change this? I tried Up volume and down volume but no success.

Thanks!

Add: The value DownTicks seem to have this data - so it can be fixed manually in the indicator.
Attachments
Screen shot 2010-09-22 at 6.38.30 PM.png
(13.77 KiB) Downloaded 323 times
Screen shot 2010-09-22 at 6.30.34 PM.png
(13.63 KiB) Downloaded 321 times

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: [Bug?] Down volume in Renko charts not correct shown

Postby Dave Masalov » 22 Sep 2010

Dear christianrichter,

Could you please be more precise? I am not sure I got you right. Do you want the indicator to display UpTicks and DownTicks?

Also please post larger screenshots with entire Data window visible.

christianrichter
Posts: 12
Joined: 03 Aug 2010

Re: [Bug?] Down volume in Renko charts not correct shown

Postby christianrichter » 22 Sep 2010

Hi Dave,

Steps to reproduce:
- Create a Renko Chart of any instrument
- Add the volume indicator

Expected result:
- Volume is shown on up and down renko boxes

Actual result:
- Volume is only shown on up boxes (see screen-shot)

I fixed it for me by changing the volume indicator code to the following:

Code: Select all

if BarType >= 2 then begin
if Volume = 0 and DownTicks > 0 then
Plot1( DownTicks, "Volume" )
else
Plot1( Volume, "Volume" );
end else begin
Plot1( Ticks, "Volume" );
end;
That's why I am saying the data I look for seems to be in the DownTicks - but I am not sure if this is correct.
Attachments
VolIndicator_0.png
(27.93 KiB) Downloaded 314 times

christianrichter
Posts: 12
Joined: 03 Aug 2010

Re: [Bug?] Down volume in Renko charts not correct shown

Postby christianrichter » 22 Sep 2010

Hi Dave, may I also add another thought with backtesting on renko charts.

As Renko charts only plot a new box in a direction once the price broke the pre-defined setting, prices are allowed to fluctuate between these boundaries.

As an example, we use 1.0 renko boxes and 0.25 ticks. A new renko box is drawn when the price moves from the current Close of the last box to either Close + 1.0 or Close - 1.0. However, the prices are allowed to fluctuate from Close - 0.75 to Close + 0.75 - without drawing a new box. By overlaying a bar chart over the renko chart you can see this better.

The issue is that this is not considered in the current backtesting. An order that is located at High + 1 tick is filled only when the new box is drawn - which is not reality. In reality this order may be triggered much earlier without the box ever been drawn.

It should however be quite simple to add this by using ticks to backtest it - or 1 minute bars I guess.

Potentially it comes back to BarMagnifier not being available for this type of chart - but as said I don't see a big issue why it coudn't be there.

User avatar
Dave Masalov
Posts: 1712
Joined: 16 Apr 2010
Has thanked: 51 times
Been thanked: 489 times

Re: [Bug?] Down volume in Renko charts not correct shown

Postby Dave Masalov » 24 Sep 2010

Hi Dave,

Steps to reproduce:
- Create a Renko Chart of any instrument
- Add the volume indicator

Expected result:
- Volume is shown on up and down renko boxes

Actual result:
- Volume is only shown on up boxes (see screen-shot)
Dear christianrichter,

The indicator is working as expected. Please see the attached picture.

As for adding Bar Magnifier to irregular chart types, we will consider the implementation of this feature in the future.
Attachments
Volume.PNG
(23.03 KiB) Downloaded 333 times


Return to “MultiCharts”