Download MetaTrader 5

question about Ichimoku

To add comments, please log in or register
All activity of the MQL5.community members is displayed on a single page!
Loong
1260
Loong 2010.02.22 07:19 

I change the example of Ichimoku indicator.
It work well. However, there are two questions.
How to fill the cloud between SpanA and SpanB with STYLE_DOT like the built-in indicator?
How to make indicator support shift beyond series with CopyBuffer()?

Files:
Slawa
Moderator
6840
Slawa 2010.02.22 15:33  

Try to use DRAW_HISTOGRAM2 style instead of DRAW_FILLING

Loong
1260
Loong 2010.02.22 17:30  

I have tried DRAW_HISTOGRAM2 and DRAW_COLOR_HISTOGRAM2.

But ...

 

Loong
1260
Loong 2010.02.22 17:34  

Is there a undocument DRAW TYPE such as DRAW_FILLINGDOT ?

Slawa
Moderator
6840
Slawa 2010.02.23 15:29  
Loong:

I have tried DRAW_HISTOGRAM2 and DRAW_COLOR_HISTOGRAM2.

But ...

 

Ok. Draw width 0 or 1. Draw style dot_dot.

You can see how it done in the MT4 custom Ichimoku. See article https://www.mql5.com/en/articles/1497 The same principles remain in the MT5 

Features of Custom Indicators Creation - MQL4 Articles
  • www.mql5.com
Features of Custom Indicators Creation - MQL4 Articles: features of automated forex trading and strategy tester
Loong
1260
Loong 2010.02.23 18:49  
stringo:

Ok. Draw width 0 or 1. Draw style dot_dot.

You can see how it done in the MT4 custom Ichimoku. See article https://www.mql5.com/en/articles/1497 The same principles remain in the MT5 

I have see the article. It work well in the MT4 custom Ichimoku.
In MT4, I can set DRAW_TYPE and LINE_STYLE with SetIndexStyle().
In MT5, I can set DRAW_TYPE and LINE_STYLE with PlotIndexSetInteger().

 

   PlotIndexSetInteger(2,PLOT_DRAW_TYPE,DRAW_COLOR_HISTOGRAM2);
   PlotIndexSetInteger(2,PLOT_LINE_STYLE,STYLE_DASHDOTDOT);
   PlotIndexSetInteger(2,PLOT_LINE_WIDTH,1);
   //PlotIndexSetInteger(2,PLOT_LINE_WIDTH,0); // the line will be solid, if LINE_WIDTH is setted to 0

But it seems do not work.
I can set a Plot's LINE_STYLE to STYLE_DOT, if its DRAW_TYPE is DRAW_LINE, DRAW_SECTION, or DRAW_ZIGZAG. It is OK.
But whichever LINE_STYLE I set, it will be drawn into a solid line, if its DRAW_TYPE is DRAW_HISTOGRAM, DRAW_HISTOGRAM2, DRAW_FILLING, etc.

Slawa
Moderator
6840
Slawa 2010.02.24 12:11  

Thank you. Our mistake with histogram. We'll fix it ASAP

Avee
5
Avee 2010.06.23 04:46  

Hi, I had the same problem with this on V281.

First, I had tested Mr.Loong's testichimoku's code, but not good work in my MT5 and it still is filling.

So, I had changed with  Mr.Loong's testichimokuHistogram2's code. It was displayed like as follow image.

DRAW_HISTOGRAM2 

and I had noted it is very work like my need in indicator's/trend/Ichimoku kinkou hyo . but it is mqh class. Could you show this code to MQ5? 

Kamiya
41
Kamiya 2010.10.01 22:09  
The same situation.
Have been fixed?
blacksikhchoo
9
blacksikhchoo 2016.06.03 12:46  

hy.

i need this indicator with yellow line named kinko hyo

can u help me.?

what is this line?


Sergey Golubev
Moderator
55896
Sergey Golubev 2016.06.03 12:52  
blacksikhchoo:

hy.

i need this indicator with yellow line named kinko hyo

can u help me.?

what is this line?


Kinko Hyo is Ichimoku Kinko Hyo.
This is default/standard indicator in Metatrader
To add comments, please log in or register