제품을 구매하거나 렌트한 사용자만 코멘트를 남길 수 있습니다
Daniel Stosch  

Hi,

how I can use this indicator inside a ea? 

Daniel Stosch  

Hi,

thanks for your reply.

 

If I try in the ea (OnInit()):

   handle=iCustom(NULL,0,"Market\\ichimoku_advanced_free.ex5",9,26,52,1, 14,100,28,12,26,9,14, 1, 0);

   Print("MA_handle = ",handle,"  error = ",GetLastError());

   int copy=CopyBuffer(handle,0,0,1,test); 

 

and change the bold number to get all values from the indicator - the result in test[1] is allways the same.

 

What I do wrong? 

Hoang Ngoc Thach  
dstosch:

Hi,

thanks for your reply.

 

If I try in the ea (OnInit()):

   handle=iCustom(NULL,0,"Market\\ichimoku_advanced_free.ex5",9,26,52,1, 14,100,28,12,26,9,14, 1, 0);

   Print("MA_handle = ",handle,"  error = ",GetLastError());

   int copy=CopyBuffer(handle,0,0,1,test); 

 

and change the bold number to get all values from the indicator - the result in test[1] is allways the same.

 

What I do wrong? 

you can read  this article https://www.mql5.com/en/articles/35

Daniel Stosch  
rockyhoangdn:

you can read  this article https://www.mql5.com/en/articles/35

thx, I got it ...

 

int handle;

double val1[], val2[], val3[], val4[];


int OnInit()

  {

   handle=iCustom(NULL,0,"Market\\ichimoku_advanced_free.ex5",9,26,52,1,14,100,28,12,26,9,14);

   Print("MA_handle = ",handle,"  error = ",GetLastError());

   return(INIT_SUCCEEDED);

  } 

 

void OnTick()

  {

   CopyBuffer(handle,0,0,1,val1);

   CopyBuffer(handle,1,0,1,val2);

   CopyBuffer(handle,2,0,1,val3);

   CopyBuffer(handle,3,0,1,val4);

   } 

dougclose  
Installed this on my MT5 but nothing shows up on the screen
Hoang Ngoc Thach  
dougclose #:
Installed this on my MT5 but nothing shows up on the screen

make sure you have enough data.

dougclose  
Hoang Ngoc Thach #:

make sure you have enough data.

I'm new to MT5 and not sure what the means. I'm testing it as an H1 Ichi on a M5 chart. Do I need to click into H1 and just leave it running for a bit? Do I need to import historical data into my MT5? Any help would be greatly appreciated, really love the Ichi and want this to work. Just point me in the right direction and I'll take it from there. Thanks. 
Hoang Ngoc Thach  
dougclose #:
I'm new to MT5 and not sure what the means. I'm testing it as an H1 Ichi on a M5 chart. Do I need to click into H1 and just leave it running for a bit? Do I need to import historical data into my MT5? Any help would be greatly appreciated, really love the Ichi and want this to work. Just point me in the right direction and I'll take it from there. Thanks. 

go to H1 chart and press Ctrl+Home to load more data.

제품을 구매하거나 렌트한 사용자만 코멘트를 남길 수 있습니다