Home    |    Trading Alchemy Manual    |    Alchemy Functions Index

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

StartTme numericsimple Specifies the period start time.  The format of this input is in military time without the colon.  For example, 1:00 PM would be specified as 1300.
EndTme numericsimple Specifies the period end time.  The format of this input is in military time without the colon.  For example, 1:00 PM would be specified as 1300.

 

Home    |    Trading Alchemy Manual    |    Alchemy Functions Index