Try this . . .
double TestValue = 34; Math10Log(TestValue); double Math10Log(double value) { return(MathLog(value) / MathLog(10)); }
Try this . . .
what if value of Math10Log is not fixed?
Sorry, I don't understand your question.
Did you try the function ?
I need to change A & B to log base 10. Just changing A to A=Math10Log(H); does not work
for(i=limit - 1; i>=0; i--)
{
dayi=iBarShift(Symbol(), myPeriod, Time[i], false);
H=iHigh(Symbol(), myPeriod,dayi +1);
L=iLow(Symbol(), myPeriod,dayi +1);
A=MathLog(H);
B=MathLog(L);
Q=(A-B);
C=A-(Q*0.5);
D=(H-L);
P1Buffer[i]=MathPow(2.718,C);
I need to change A & B to log base 10. Just changing A to A=Math10Log(H); does not work
So do this . . .
A = Math10Log(H); B = Math10Log(L);
So do this . . .
says Math10Log-fuction is not defined
Thank you so much!
Try this . . .
now it makes sense.
thank you so much

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
to code natural logarithm ln (x) is MathLog (x)
I need help on how to code log base 10 (x) fuction?
Thanks in advance