CUSTOM_INDICATOR

Description

Calculates the specified custom indicator and returns its value.

Important

All JSON commands you send to MetaSocket should be in a single line format similar to the examples below. Additionally, example replies in this page are presented in a "beautified" format for presentation purposes. Actual replies are always returned in a single line.

Example

{"MSG": "CUSTOM_INDICATOR","SYMBOL": "EURUSD","TIMEFRAME": "PERIOD_M5","INDICATOR_NAME": "Examples\\Stochastic","PARAM1": 5,"PARAM2": 3,"PARAM3": 3,"PARAM4": "MODE_SMA","PARAM5": "STO_LOWHIGH","BUFFER": 0,"START": 0,"COUNT": 50}

Reply

{
"MSG": "CUSTOM_INDICATOR",
"DATA_VALUES": [
13.5135135
],
"ERROR_ID": 0,
"ERROR_DESCRIPTION": "The operation completed successfully"
}