Login Page - Create Account

Support Board


Date/Time: Wed, 12 Mar 2025 06:22:53 +0000



Post From: referencing past range of bars by date-time range in alert formulas

[2022-04-23 11:32:47]
User12089 - Posts: 365
no my friend, you dont get the essence of the question objective - this is point 11 as u suggested:

aking an Alert Condition Formula Function During Certain Times: In this example the alert will only function between 5:30:00 and 22:20:00. =AND((Your Alert Condition Formula), BARTIME >= TIME(5, 30, 0), BARTIME <= TIME(22, 20, 0))

the original question is NOT about constraining during what time periods a formula will work/fire, BUT getting the Bar Indicies OF ALL BARS (even if they are of type range bars) falling / residing inside a specified time period

this is SC formula range expression [bar index 1: bar index2]

the question was whether such expression is ALSO supported - [date/time1 : date/time2] - it would specify ALL bars (even if they are range bars) falling inside the date range between date 1 and date 2 - that in turn can translate into whatever bar index range e.g. [-300 : -890] as the net outcome/result

the thus determined ranges of bars are then used in bigger formula expressions like AND(MAX(V[time1:time2]), MAX(AV[time3:time4])) etc

i would strongly advise forwarding this to your technical team

also forward to them this (another type of RANGE formula expression still without answer) - referencing common global variable in alert formulas

ps: i am already convinced that the answer to BOTH is NO it is not supported by the SC formula language for alerts
Date Time Of Last Edit: 2022-04-23 12:11:20