Is it possible to create object on indicator window.

 
Well I created a trendline on chart window using objectcreate and mqlrates but is it possible to do the same but on the indicator window instead, for example, RSI or maybe MACD window.
 
Nimoonphob noobiris: Well I created a trendline on chart window using objectcreate and mqlrates but is it possible to do the same but on the indicator window instead, for example, RSI or maybe MACD window.

Yes! Use the sub-window parameter of ObjectCreate:

bool  ObjectCreate(
   long         chart_id,      // chart identifier
   string       name,          // object name
   ENUM_OBJECT  type,          // object type
   sub_window   nwin,          // window index
   datetime     time1,         // time of the first anchor point
   double       price1,        // price of the first anchor point
   ...
   datetime     timeN=0,       // time of the N-th anchor point
   double       priceN=0,      // price of the N-th anchor point
   ...
   datetime     time30=0,      // time of the 30th anchor point
   double       price30=0      // price of the 30th anchor point
   );
Documentation on MQL5: Object Functions / ObjectCreate
Documentation on MQL5: Object Functions / ObjectCreate
  • www.mql5.com
ObjectCreate - Object Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5