Login Page - Create Account

Support Board


Date/Time: Fri, 22 Nov 2024 05:14:23 +0000



Post From: TPO POC REFERNECE IN FORMULA

[2024-11-11 15:16:57]
John - SC Support - Posts: 36203
The first thing we want to point out is that if you are not using a chart that covers the full trading day, then you will most likely get a gap between the end of trading one day and the start the next. We just want to make sure this is what you are wanting.

In order to do what you want, you need to define the bar at which you want to test, which would be the opening of the day. If this bar starts at 08:30:00, then you need to use the following in order to define that bar with the Alert syntax:
=BARTIME = TIME(08, 30, 00)

You then would need to compare this against the previous period's High and Low. To get those, you would need to use the Daily OHLC, or the Period OHLC - Variable Period. Then your formula would look like the following:
=AND(BARTIME = TIME(08, 30, 00), OR(O > ID2.SG4[-1], O < ID2.SG4[-1]))

Where ID2 is the ID of the Daily OHLC study and SG4 is the Close of the Daily OHLC study.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing