My Ask....I want to open an order at the open of the new Trading Session (6PM ET/5 PM CT).....based on criteria of the last session. To keep things simple here is a sample code (tried many things):
if ((ToTime(Time[0]) >= 180000 && ToTime(Time[0]) <= 180010)) // so first 10 seconds of the new session
{
if (Close[0] >= Close[4]) // just one random idea....use the close of the last bar of the last session and compare to the close at 4PM ET (Stock market close) based on a 15 minute bar charts
{
EnterLong(QuantitySize, "LongOpen");
}
}
I have other time criteria working without issues.....I just cannot seem to isolate just the open of the session for a specific signal.

Comment