Code Editor – Convert a number to real pips
I have written an indicator in SQ Code Editor. I need to convert a number to real pips (for example, 63 to 0.0063). How do I convert it?
I tried the below, but it gave errors when compiling.
MADiffinPips = 2PIP(“Current”,MADiff1);
MADiffinPips = 2PIP(MADiff1);
I appreciate the guidance.
Anyone can help? I checked other indicators, and could not find a reference to calculating to real pips. If someone can just give me a snippet that already uses this, then that would be very helpful.
Thanks in advance.
Viewing 2 posts - 1 through 2 (of 2 total)