Traders Laboratory - View Single Post - TICK Coding Help
View Single Post
  #14 (permalink)  
Old 05-11-2007, 04:08 PM
nickm001 nickm001 is offline
nickm001 has no status.

 
Join Date: Jan 2007
Posts: 79
Thanks: 0
Thanked 3 Times in 3 Posts
Re: TICK Coding Help

Code is for regular session. Lines that needs to be changed is:

from ... "EndTime( CalcTime(SessionStartTime (1,1),EndTimeOffset))" to

EndTime( CalcTime(SessionStartTime (0,1),EndTimeOffset))


same for ... If time > EndTIme and time < SessionEndTIme(0,1) then


Here is the copy from TS guide that explains the difference...
_________________________ ___________________

Usage
SessionStartTime(SessionT ype,SessionNum)

Parameters
SessionType
A numeric value. 0 = Auto Detect, 1 = Regular Session

SessionNum
A numeric value. Session Number to Reference


Last edited by nickm001; 05-11-2007 at 04:13 PM.
Reply With Quote