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 |

price.bar.closevalue(i) Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
jrf-wood
Posted : Monday, August 2, 2010 9:06:45 AM
Registered User
Joined: 7/19/2010
Posts: 23

see page 42 of realcode reference. i can not use "price.bar.closevalue", i must use "price.bar.value"?

<WBIGuid("a34b6e6d-e94b-4fb9-bc1f-525e376edf8e"),FriendlyName("RealCodeIndicator"),BlockTemplateEmptyMethodOnly()> _
Public partial Class RealCodeIndicator
 Inherits RealCodeIndicator_base
  
 Sub New
  MyBase.AutoLoop = False
 End Sub
 Public Overrides Function Plot() As System.Single
 
  '****** how do i pick up close price from bar data in my class??  
  For i As Integer = 0 To price.count - 1
   Dim xcls As Single = price.bar.value(i) 
   Dim openx As Single = price.bar.openvalue(i) 
   Dim highx As Single = price.bar.highvalue(i) 
   Dim lowx As Single = price.bar.lowvalue(i) 
   '   Dim closex As Single = price.bar.closevalue(i) 

   addtoOutput(price.Bar.datevalue(i), xcls)
  'MyBase.AddToOutput(price.bar.datevalue(i), _
  'price.bar.OpenValue(i), price.bar.highValue(i), _
  'price.bar.lowvalue(i), price.bar.value(i))
  Next

Kuf
Posted : Thursday, August 5, 2010 10:18:12 AM


Administration

Joined: 9/18/2004
Posts: 3,522
Price.bar.value is the correct syntax.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
jrf-wood
Posted : Thursday, August 5, 2010 1:27:10 PM
Registered User
Joined: 7/19/2010
Posts: 23
on your blog is the entry "importing market data with the marketdatareader class"
the entry i want to study?
Kuf
Posted : Friday, August 6, 2010 9:58:36 AM


Administration

Joined: 9/18/2004
Posts: 3,522
That would be the entry to read if you want to import data.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
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.