Hello
I'm at a very early stage of learning NT script. I was able to find an indicator that I could modify and everything works except for one issue. The price will only show up to two decimals places and I need four. I'm referring to the price label and the scale (only showing 1.7 now, it needs to be 1.700, please see the "2 decimal" attachment). I only had to change the mathematical equation, no variables were added or changed. Also I have attached the modified indicator "Marketsentiment" which was taken from the "Spread" indicator. This is the line that I modified:
Code:
Value.Set((Instrument2Close[0] / (Closes[Instrument1][0] * mul1 + Instrument2Close[0] * mul2)) / (Closes[Instrument1][0] / (Closes[Instrument1][0] * mul1 + Instrument2Close[0] * mul2)));
This was the original line:
Code:
//Value.Set(Closes[Instrument1][0] * mul1 + Instrument2Close[0] * mul2); // set output using synchronized data series
In years past declaring a variable type "real" would set it up to show decimal places but I don't see any declaration of that type. I using NT 7 beta 16. Any help would be apprecaited.
Thanks