Load Indicator in a new Chart in MQL4

 

Hi , can anyone kindly demonstrates how should I  load Indicator in a new Chart in MQL4.

I want to open a new chart customize it and load some indicators with custom parameter. ( it is not possible with templates).

I am using indicator to open a char with Ichimoku in it.

by the way how should I inject Ichimoku's parameters?

And, I can confirm that Ichimoku is in indicator's folder root.

This is my code ,  but there is no indicator in new chart!!!

 void funcSample(){ 
        long chartID = ChartOpen(handle[k].handleSymbol,   handle[k].handleTimeframe[i]);
                   
  if(chartID > 0) {
          
         int hWnd=WindowHandle(Symbol(),0);
         StartCustomIndicator(hWnd,"Ichimoku"); // I used chartID instead of  hWnd but PostMessageW return 0 and there is no indicator...
                                                        // by the way I used "Ichimoku.ex4" and got same error 
  }
}      
                                  

#import "user32.dll"
int RegisterWindowMessageW(string MessageName);
int PostMessageW(int hwnd,int msg,int wparam,uchar &Name[]);
#import
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void StartCustomIndicator(int hWnd,string IndicatorName,bool AutomaticallyAcceptDefaults=true) {
   uchar name2[];
   StringToCharArray(IndicatorName,name2,0,StringLen(IndicatorName));
   bool bDll =  IsDllsAllowed();
   if(bDll) {
      int MessageNumber=RegisterWindowMessageW("MetaTrader4_Internal_Message");
      int r=PostMessageW(hWnd,MessageNumber,StringLen(IndicatorName),name2);
      PrintFormat("  MessageNumber:%d  ,  r:%d ",MessageNumber, r) ;
      Sleep(10);
if(AutomaticallyAcceptDefaults) {
         int ind_settings = FindWindowW(NULL, "Custom Indicator - "+IndicatorName);
         PostMessageW(ind_settings,0x100//this parameter is something I dont know!!!
         ,VK_RETURN//this parameter is something I dont know!!!
         ,IndicatorName);
      }
   } else {
      MessageBox(" Dll Is Not Allowed!!!","DLL",0 );
   }
}



Reason: