Jump to content
Medved Trader Forums

Candle Range in Loop functions from Current candle to Session Start


Recommended Posts

20 minutes ago, wilburpost2 said:

Look at the help section: 

Advanced - Timestamp and Trading Session

IsPreMarket

Boolean

true if the DateTime with which the TradingSessionInfo was created falls between DayStart and SessionStart

 

 

Thanks for the reply. But I need to put it in a range. For example the function: Any(0, "SessionStart", ......)

Link to comment
Share on other sites

Well I'm no code expert, but I think I would just write a loop and keep walking back until the IsPreMarket became true and see if I had a desired result. Since you're using Any(   ), I might just exit early since the first instance would be a true result. I'll let the true coders suggest a compact way using the advanced looping functions or some other way.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...