Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
thanks for coding this... I'm learning all the time and wonder how to read this portion of your code "in layman's terms"
I understand the Plots[] part but not the ".Min or .Max" or the "Lines[].Value" with the 0 or 1. My methods have taught me I'd have to do something like this:
I'd like to continue learning advance coding techniques whenever I see them.
I appreciate your explanation
thanks in advance.
Kirk
Can you help answer these questions from other members on NexusFi?
Thanks Roonius for the explanation.
As I took another look, I noticed the properties section doesn't have code for the Values[2] and [3] as it is for [0] and [1].
[Browsable(false)]
[XmlIgnore()]
public DataSeries D
{
get { return Values[0]; }
}
Please tell me why you don't need those there? or why you might decide either way if it's needed or not.
thanks,
kz
Learning All the Time!
Thanks Roonius for the explanation.
As I took another look, I noticed the properties section doesn't have code for the Values[2] and [3] as it is for [0] and [1].
[Browsable(false)]
[XmlIgnore()]
public DataSeries D
{
get { return Values[0]; }
}
Please tell me why you don't need those there? or why you might decide either way if it's needed or not.
thanks,
kz
Learning All the Time!
Properties are needed for accessing internal fields -either for setting values or getting values.
In this case:
Values[0] = D
Values[1] = K
Values[2] = D
Values[3] = D
We don't need 3 properties to access the same value.
Values[2] and Values[3] are added just for visualization (color change).
Actually we don't even need the existing properties:
public DataSeries D
{
get { return Values[0]; }
}
What is actually going here is - when we are accessing one property (D), it will pass us a value of another property (Values[0])
It is just for easier understandability for the end user.
Stochastics(3,5,2).D is easier to understand than
Stochastics(3,5,2).Values[0]