strange output from code  [SOLVED]

Questions about MultiCharts and user contributed studies.
maisatomai
Posts: 83
Joined: 18 Mar 2013
Has thanked: 11 times

strange output from code

Postby maisatomai » 23 Oct 2014

Code: Select all

vars:oldtime(0);
print("old time: "+NumToStr(oldtime,2)+"new time: "+NumToStr(time[0],2));
oldtime=time[0];
Did a generic indicator to illustrate this problem. It is running on live feed

old time: 2145.00new time: 2150.00
old time: 2145.00new time: 2150.00
old time: 2150.00new time: 2155.00
old time: 2150.00new time: 2155.00
old time: 2150.00new time: 2155.00

There is no instances where the old time and new time matches. What is wrong and how do I solve it?

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: strange output from code  [SOLVED]

Postby TJ » 23 Oct 2014

Code: Select all

vars:oldtime(0);
print("old time: "+NumToStr(oldtime,2)+"new time: "+NumToStr(time[0],2));
oldtime=time[0];
Did a generic indicator to illustrate this problem. It is running on live feed
old time: 2145.00new time: 2150.00
old time: 2145.00new time: 2150.00
old time: 2150.00new time: 2155.00
old time: 2150.00new time: 2155.00
old time: 2150.00new time: 2155.00
There is no instances where the old time and new time matches. What is wrong and how do I solve it?
Look up:

intrabarpersist


Return to “MultiCharts”