Tradomate Data
The TradomateData
object is passed to your strategy function as the second argument.
This allows you to access the selected symbol’s data from within your strategy function.
Data options
Option | Type | Description | Value |
---|---|---|---|
symbol | str | Symbol of the data. | The symbol selected to trade on. |
interval | str | Interval of the data. | The interval selected to trade on. |
open | pd.Series | Open prices of the data. | Open prices of the selected symbol. |
high | pd.Series | High prices of the data. | High prices of the selected symbol. |
low | pd.Series | Low prices of the data. | Low prices of the selected symbol. |
close | pd.Series | Close prices of the data. | Close prices of the selected symbol. |
volume | pd.Series | Volume of the data. | Volume of the selected symbol. |
timestamps | pd.Series | Timestamps of the data. | Timestamps of the selected symbol. |
first | pd.Series | First prices of the data. | First prices of the selected symbol. |
last | pd.Series | Last prices of the data. | Last prices of the selected symbol. |
last_timestamp | datetime | Last timestamp of the data. | Last timestamp of the selected symbol. |
last_open | float | Last open price of the data. | Last open price of the selected symbol. |
last_high | float | Last high price of the data. | Last high price of the selected symbol. |
last_low | float | Last low price of the data. | Last low price of the selected symbol. |
last_close | float | Last close price of the data. | Last close price of the selected symbol. |
last_volume | float | Last volume of the data. | Last volume of the selected symbol. |