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


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Plot Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
arathod
Posted : Monday, October 27, 2014 5:58:26 PM
Platinum Customer Platinum Customer

Joined: 10/20/2008
Posts: 357

let's say the high price on day 1 is 50.00

high price on day 2 is 55

high price on day 3 is 58

 

I would like to have a bar on day 2 which has open at 50 and close at 55. 

I would like to have a bar on day 3 which has open at 55 and close at 58.

 

Appreciate your help. Thank you. 

Bruce_L
Posted : Wednesday, October 29, 2014 11:32:27 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try the following RealCode Indicator.

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com 
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Last 2 Highs
'|******************************************************************
If isFirstBar Then
	OpenValue = Single.NaN
	HighValue = Single.NaN
	LowValue = Single.NaN
	Plot = Single.NaN
Else
	OpenValue = Price.High(1)
	HighValue = Price.MaxHigh(2)
	LowValue = Price.MinHigh(2)
	Plot = Price.High
End If


-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.