-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use the library #4
Comments
Hi @hmG3, I also would love to know how to use this library. Can you point me to any example code to just do a Simple Moving Average or RSI for example.. Thanks! Is there a reference guide or WIKI that you can point me to? |
Hi, for anyone trying to work this out, as there is no documentation that I could see, I thought I'd post a code snippet that is working for me. This successfully calculates a 21 EMA: `
` |
Well, GitHub had a good run. |
How to use the library.
For example the Stochastic indicator.
public static RetCode Stoch (
double [] inHigh, double [] inLow, double [] inClose, int startIdx, int endIdx, double [] outSlowK, double [] outSlowD, out int outBegIdx, out int outNbElement, MAType optInSlowKMAType = MAType.Sma, MAType optInSlowDM .Sma, int optInFastKPeriod = 5, int optInSlowKPeriod = 3, int
optInSlowDPeriod = 3);
The first three parameters (inHigh, inLow, inClose) are clear without explanation, but what the rest of the parameters (startIdx, endIdx, outSlowK, outSlowD, outBegIdx, outNbElement) mean is not clear.
You can give an example of use Stochatic.
The text was updated successfully, but these errors were encountered: