• LIMITED TIME ONLY: Take $40 off VIP with code: BTD40.

Small Data Conversion problem

Ecantor

New member
I've been trying to research how to fix this data conversion error in the tutorials and haven't gotten a clue yet:) I know you guys see this one all the time so I thought I'd gasp for help again:)

input USDJPYSTT = 117.3;
Addlabel(yes, "Pips to Target " + USDJPYSTT - High);

Gives an "Expected Double" error. How can I force USDJPYSTT to type double?
 
Solution
try adding ( ) around the math part, to keep it separate from the text part

input USDJPYSTT = 117.3;
Addlabel(yes,
"Pips to Target " + ( USDJPYSTT - High ) );

halcyonguy

Well-known member
VIP
Lifetime
try adding ( ) around the math part, to keep it separate from the text part

input USDJPYSTT = 117.3;
Addlabel(yes,
"Pips to Target " + ( USDJPYSTT - High ) );
 
Solution

Similar threads

Top