NexusFi: Find Your Edge


Home Menu

 





First bar of de session in tradestation


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,455 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

First bar of de session in tradestation

  #1 (permalink)
Carlera
Colombia
 
Posts: 13 since Mar 2021
Thanks Given: 1
Thanks Received: 1

Hi,

How to find the first bar of de session in tradestation, in tick charts?
for example: I want to find de first bar starting at 18:00 and the close of this.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
15 thanks
  #2 (permalink)
TurtleInTheSky
Minneapolis
 
Posts: 2 since Feb 2021
Thanks Given: 0
Thanks Received: 1

I check BarDateTime - BarDateTime[1] > 5 on a 5m to find the session open or a halt. Would that work?

Reply With Quote
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627


Carlera,

there are many ways to accomplish what you have in mind. One way could be to check if the Time > 1800 and only allow this check to be true once per day using a boolean variable that you reset on a date change. Another approach could be to use the built-in function CurrentSession and monitor for changes in its return value compared to the previous bar's return value. This will signal a new session.

Regards,

ABCTG


Carlera View Post
Hi,

How to find the first bar of de session in tradestation, in tick charts?
for example: I want to find de first bar starting at 18:00 and the close of this.


Follow me on Twitter Reply With Quote
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

TurtleInTheSky,

it might work on a five minute chart, but you could run into problems in case there are one or more missing bars during the day. Apart from that, it will be problematic with non time based bars (like tick bars that Carlera seems to be using).

Regards,

ABCTG


TurtleInTheSky View Post
I check BarDateTime - BarDateTime[1] > 5 on a 5m to find the session open or a halt. Would that work?


Follow me on Twitter Reply With Quote




Last Updated on February 16, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts