View Single Post
  #31 (permalink)  
Old 11-07-2008, 05:50 AM
tgacomp tgacomp is offline
Junior Member
 
Join Date: Jul 2007
Posts: 1
tgacomp is on a distinguished road
Has anyone got code to remove the weekends from two points in time?

I want to place a text object 123% the distance between two time points on a trend line, on a daily chart. I get the time of each end point on the trend line using: Time1=ObjectGet("t1", OBJPROP_TIME1), Time2=ObjectGet("t1", OBJPROP_TIME2) then work out the 123% distance using: Time123 = Time1+(Time2-Time1)*1.236. I use ObjectCreate to place the text at Time123. But the text object is not placed at the correct place it is shifted to far to the right because the charts stop over the weekend but time dosent
Reply With Quote