nanningbob » Wed Dec 07, 2016 12:31 am wrote:
You need to add enough of the odd currencies so the CSS can read a strength of move. So you'd need at least 4 or more SEK crosses to get a decent read for the indicator.
With all due respect, unless I missed something this is not comparing the weight of anything against any other currency. It's not doing the same as the "10.7 CSS v3.8..." indicator, it's only using the current symbol/pair of the current chart and using some formula that relates MAs with ATR.
The 2 colored slopes are the inverse of each other and not the same as if you would put the "10.7 CSS" indicator showing only the current pair, which would clearly give you two distinctive curves with their corresponding strengths. In here it only calculates the slope using a weird formula I don't understand (as I have no idea of what those hardcoded 231 and 251 mean, or why multiply the closetime by 20, even if I can see that 231+20=251, so I guess it's getting a different weight of the MA vs the Close price):
atr = iATR( NULL, tf, atrperiod, shiftWithoutSunday + 10 ) / 10;
double result = 0.0;
if ( atr != 0 )
{
dblTma = iMA( NULL, tf, maperiod, 0, MODE_LWMA, PRICE_CLOSE, shiftWithoutSunday );
dblPrev = ( iMA( NULL, tf, maperiod, 0, MODE_LWMA, PRICE_CLOSE, shiftWithoutSunday + 1 ) * 231 + iClose( NULL, tf, shiftWithoutSunday ) * 20 ) / 251;
result = ( dblTma - dblPrev ) / atr;
}
But the point is: it's using NULL as Symbol and nothing more that I can see. So it is not comparing with the weights of any other pair or currency and can be used in any pair. That's why I made the small change that allows it to be used on AUS200, Gold, Silver, EURDKK, Beans, Sugar or whatever you like, as I stated in my previous post.