Disliked{quote} Yes, "240",20,0,2.618 {quote} "...the same results"? Visually - yes, resource - no. I used (in my bot) alternately the following indicators: "TMAcCG_mladen_NRP", "TMA_centered_edited" and "D". And I noticed that when using the "D" indicator, my frugal VPS is loaded (once every 15 minutes) less, almost imperceptibly. When using so many currency pairs, this is important. Therefore, I am interested in which indicator TMA zed.fr renamed into indicator "D".Ignored
Inserted Code
double getTmaNRP2(string aSymbol,int index, int aBar) { return iCustom(aSymbol,240,"TMA+CG mladen NRP","calculateTma",20,PRICE_CLOSE,2.618,index,aBar); } void getH4TrendFilter(string aSymbol, int aBar, double &upSlope, double &dnSlope, double aFactor, int aTF) { factor = 1/aFactor; double up0 = getTmaNRP2(aSymbol,1,0); double low0 = getTmaNRP2(aSymbol,2,0); double up1 = getTmaNRP2(aSymbol,1,1); double low1 = getTmaNRP2(aSymbol,2,1); double up3 = getTmaNRP2(aSymbol,1,3); double low3 = getTmaNRP2(aSymbol,2,3); upSlope = (2*up0-up1-up3)*factor/(4*10000); dnSlope = (2*low0-low1-low3)*factor/(4*10000); }
2