Maybe this is the way to go.
for (i = limit; i < rates_total; i++) { Line1_Buffer[i] = iSineWMA(close[i], MA_period, i, rates_total, 0); Line2_Buffer[i] = iSineWMA(Line1_Buffer[i], MA_period, i, rates_total, 1); } ............. //+------------------------------------------------------------------+ #define _maWorkBufferx1 2 #define Pi 3.14159265358979323846264338327950288 double workSineWMA[][_maWorkBufferx1]; //+------------------------------------------------------------------+ double iSineWMA(double price, int period, int r, int totalBars, int instanceNo = 0) { ........... } //+------------------------------------------------------------------+
I can't get that to work. I think these are 2 different approaches in coding. Thanks, though.
I will look for code for Double Weighted Moving Average and then try to add the Sine in to that.
Nicholas C Weber #:
I can't get that to work. I think these are 2 different approaches in coding. Thanks, though.
I will look for code for Double Weighted Moving Average and then try to add the Sine in to that.
I am not sure if the method is correct, but I have confirmed that it works fine.
If it doesn't work, then you are wrong.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Is there a way to make this a Double Sine Weighted MA?