% B
Author: jandrewnil
Creation Date: 12/4/2009 3:27 PM
profile picture

jandrewnil

#1
Forgive the basic question but trying to teach myself C#. Have used a script and attempting to modify. For the calculation of %b I would like to change from the original code to ( %b =( Last - LBB ) / ( UBB - LBB). My attempt is below with the original code following but i am getting an error. Thanks in advance.

CODE:
Please log in to see this code.





CODE:
Please log in to see this code.
profile picture

Eugene

#2
QUOTE:
change from the original code to ( %b =( Last - LBB ) / ( UBB - LBB).

What you describe is different from what I see in your code. Actually, the "from" part in your description looks like the original formula.
QUOTE:
getting an error

What error?
profile picture

jandrewnil

#3
The top code is my attempt to change the bottom code. The error I am getting is WealthLab Bars.Close is a property but is used lie a method.

I have included the entire script below.


CODE:
Please log in to see this code.
profile picture

Eugene

#4
Remove "(Bars.Count - 1)" from that line.