Oleg, the code is relativ complex. If you want People to have a look and to understand - it would help to add a small Piece of data (e.g. with 2 or 3 entries). This should help to see how the data to input is structureh and how the whole thing works. Regards Mirko
Thank you for this collection. On a cursory read of the code, if I am correct there is an issue with the logic employed in tradeSignal if I have understood it correctly. Specifically, the input 'ind' and logical 'AND'. As I understand it, 'ind' is normalized such that 0 = sell, 0.5 = "skip", 1 = buy. If you logically AND 0 & 1 (sell and buy) the result is a 0 (sell) however this is not the desired result. I'm posting this in the spirit of others trying to review this code and welcome any correction on my understanding.
Ha,
I have just added the KDJ Indicator as requested. It should appear shortly depending on how long Matlab takes to approve my submission.
This indicator was a little confusing. I'm not sure exactly which method is correct so I input 3 different methods. Simply uncomment whichever method you wish to use.
Method # 1:
J = 3*FastK - 2*FastD;
Method # 2:
J = ema(K,period);
Method # 3:
J = 3*SlowK - 2*SlowD;
Hope that helps!
Nate
Comment only
11 Mar 2013
Technical Indicators
A single function that calculates 25 different technical indicators
Comment only