I'm very confuse with a problem where a variable does not behave as it should
A function is use to read back a number in a string.
The printed value is:
text 1.26645 number: 1.26645
This value is strored in a variable called HighVal
Code: Select all
HighVal = Strtonum(rightstr(splitstring(StringHigh,9),7));
print ("text ", Splitstring(StringHigh,cd), " number: ", strtonum(Splitstring(StringHigh,cd)):5:5);
LowVal = StrToNum(Splitstring(StringLow,cd))*1;
Value1 = tl_setbegin(LineHigh[cd] , dateD,timeD,HighVal);
Value1 = TL_SetEnd(LineHigh[cd] , dateD,timeD,highval);
Result is not horizontal
If I hard code or define the same variable with the number, then the trendline is horizontal
Look at the 3 snap pictures, I did show the code use in them. The result is seen by the trend line being not horizontal
Hope I'm clear enough
Martin