ATR_INDICATOR Command
Get data from a the ATR indicator using the iATR function
Help:
{ "MSG":"HELP", "COMMAND":"ATR_INDICATOR", "DESCRIPTION":"Get data from a the ATR indicator using the iATR function", "MANDATORY_TAGS":[ "SYMBOL (String)", "TIMEFRAME (String)", "PERIOD (Integer)", "SHIFT (Integer)" ], "OPTIONAL_TAGS":[null] }
Example:
Single Line command (necessary for MTsocketAPI):
{"MSG":"ATR_INDICATOR", "SYMBOL":"EURUSD", "TIMEFRAME":"PERIOD_M1", "PERIOD":14}
Same command in Beauty Format:
{
"MSG":"ATR_INDICATOR",
"SYMBOL":"EURUSD",
"TIMEFRAME":"PERIOD_M1",
"PERIOD":14
}
MTsocketAPI reply:
{
"MSG":"ATR_INDICATOR",
"DATA_VALUES":[
0.000215
],
"ERROR_ID":0,
"ERROR_DESCRIPTION":"The operation completed successfully",
"DEMO":"MTsocketAPI running in DEMO mode (www.mtsocketapi.com)"
}
Note: We can retrieve the last X values using the NUM tag.