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