AlchemyStartEndTimes (Function)
AlchemyStartEndTimes is a function that returns true when an intra-day
bar is within a specified start and end time period and it returns false when an
intra-day bar is outside a specified start and end time period. The start
time can even be at a later time than the end time. For example, with a
specified start time of 16:00 and a specified end time of 9:00, the function
will return true during the times of 16:00 until 9:00 of the next day.
This function can be conveniently used within a strategy code to allow trades
within a specified time period only. This function automatically returns
true on non-intraday charts such as daily, weekly or monthly charts.
AlchemyStartEndTimes(StartTme,EndTme)
Parameters
|