New version 18 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Painting vol bars based on DR Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
thnkbigr
Posted : Thursday, January 18, 2018 6:01:52 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,064

Bruce,

In SF and I am mainly in V4 I like to paint the volume bars based on where the stock closed in its daily range including gaps 

For example if the stock closed in middle of its daily range it will plot the bottom half of the vol bar Green and the top half Red 

If closed at 75% of the DR then the bottom 75% of the Vol bar will be green and top 25% will be red  

Bruce_L
Posted : Friday, January 19, 2018 9:10:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 62,499

Plot normal volume bars in red.

Then plot the following RealCode Indicator overtop the green bars using the Bars plot style in the same pane and scale.

Plot = Volume.Value * (Price.Last - System.Math.Min(Price.Low, Price.Last(1))) / (System.Math.Max(Price.High, Price.Last(1)) - System.Math.Min(Price.Low, Price.Last(1)))



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
thnkbigr
Posted : Thursday, February 01, 2018 1:08:39 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,064

Bruce in the above pcf you have Price.Last(10) 

I feel like that's a typo and should be 1 

correct? 

Bruce_L
Posted : Thursday, February 01, 2018 1:12:17 PM


Worden Trainer

Joined: 10/7/2004
Posts: 62,499

Yes, it should be a 1 and not a 10.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
thnkbigr
Posted : Thursday, April 12, 2018 3:49:33 PM
Platinum Customer Platinum Customer

Joined: 3/31/2006
Posts: 3,064

By any chance can something like this be done in TC

Bruce_L
Posted : Thursday, April 12, 2018 3:56:48 PM


Worden Trainer

Joined: 10/7/2004
Posts: 62,499

Yes, it is possible and relatively straightforward.

Add Volume to the chart and edit to uncheck Color by Price and make sure the Plot Color is set to red.

Overlay a Custom PCF Indicator into the same pane and scale as volume.

Set the Plot Style ho Histogram and the Color to green for the Custom PCF Indicator.

Use the following Formula in the Custom PCF Indicator.

V * IIF(H > L OR H <> C1, (C - LEAST(L, C1)) / (GREATEST(H, C1) - LEAST(L, C1)), 1 / 2)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.