EasyLanguage Drawing Object Error Codes

Drawing object functions return the following values if the function is unsuccessful:

When any drawing object error occurs, no additional operations will be performed on any drawing objects by the trading strategy, analysis technique, or function that generated the error.

Value Explanation
-2 The object identifier was invalid
-3 The data number (Data2, Data3, and so on) passed to the function was invalid (probably won't be able to get since the editor will "catch" an invalid reference before study can be applied.
-4 The value passed to a SET function was invalid.
-5 The beginning and ending points were the same.
-6 The function was unable to load the default values for the tool.
-7 Unable to add the object. Possibly due to an out of memory condition.
-8 Invalid pointer.
-9 Previous failure.
-10 Too many trendline objects on the chart.
-11 Too many text objects on the chart.
-12 Out of memory error.