I am with balligil. What is the trick? I tried several symbols many that I know are closed and it always returns true. I also tried inserting a symbol - e.g. isInSession("IBM").
Is this akin to FunctionParameter.BOOLEAN? Nice idea, but doesn't work.
FYI, I've put in message to development to find out if this function is currently working properly. Logically, I would expect this function to be returning false right now (1:40pm PST) on IBM, for example. What I'm noticing is that if you set your time template to the symbols regular trading hours, isInSession() will return false. If however, your time template is set to 24-hour, the function is returning true. I'll let you know what I find out.
FYI, that link Steve pointed out is to Chris Kryza's Help File tool, which has the most current EFS reference material. I recommend downloading the .chm version. I use it every day. I've also put a request into our web team to have our reference material updated in the EFS Help Center.
Jason K.
Project Manager eSignal - an Interactive Data company
I just heard back from development on this. isInSession() looks at your current clock time and compares it to the start and end time of the chart's time template. If your current clock time is within this range the function returns true, otherwise it will return false.
Jason K.
Project Manager eSignal - an Interactive Data company
I didn't understand how it could do what the name implied. After all the exchanges don't send out any signals to indicate that they are in session or not in session. Therefore the only way to determine if something is in session would be to set up a data base based on symbol/exchange and what their regular trading hours are, and somehow make sure that the data was provided correctly for each TZ...and even then it wouldn't take into account special days.
Comment