초보자의 질문 MQL5 MT5 MetaTrader 5 - 페이지 751

 
Vitaly Muzichenko :
문서에 완벽하게 설명되어 있으며 기성품 및 작업 예제도 있습니다.

DRAW_HISTOGRAM2에 대한 문서에는 그런 것이 없습니다.
 
igorbel :

DRAW_HISTOGRAM2에 대한 문서에는 그런 것이 없습니다.

네, 조금 다릅니다

https://www.mql5.com/en/docs/customind/indicators_examples/draw_color_histogram2

Documentation on MQL5: Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_HISTOGRAM2
Documentation on MQL5: Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_HISTOGRAM2
  • www.mql5.com
Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_HISTOGRAM2 - Reference on algorithmic/automated trading language for MetaTrader 5
 

그리고 색상 버퍼 에 무엇을 저장해야 합니까? 그 예는 고통스러울 정도로 까다롭습니다.
 

이해했다.

예제의 Awesome_Oscillator가 더 간단합니다.

 

나는 그것을했지만 이제 다른 표시기 버퍼 가 표시되지 않습니다 :(

줄만 있습니다.

 //--- indicator buffers mapping
   SetIndexBuffer ( 0 ,buf0, INDICATOR_DATA );
   PlotIndexSetString ( 0 , PLOT_LABEL , "buf0" );
   //---
   SetIndexBuffer ( 1 ,buf1, INDICATOR_DATA );
   PlotIndexSetString ( 1 , PLOT_LABEL , "buf1" );
   //---
   SetIndexBuffer ( 2 ,buf_colors, INDICATOR_COLOR_INDEX );
   //---
   SetIndexBuffer ( 3 ,buf2, INDICATOR_DATA );
   PlotIndexSetInteger ( 3 , PLOT_DRAW_TYPE , DRAW_LINE );
   PlotIndexSetInteger ( 3 , PLOT_LINE_STYLE , STYLE_SOLID );
   PlotIndexSetInteger ( 3 , PLOT_LINE_COLOR , clrRoyalBlue );
   PlotIndexSetString ( 3 , PLOT_LABEL , "buf2" );
   //---
   SetIndexBuffer ( 4 ,buf3, INDICATOR_DATA );
   PlotIndexSetInteger ( 4 , PLOT_DRAW_TYPE , DRAW_LINE );
   PlotIndexSetInteger ( 4 , PLOT_LINE_STYLE , STYLE_SOLID );
   PlotIndexSetInteger ( 4 , PLOT_LINE_COLOR , clrRed );
   PlotIndexSetString ( 4 , PLOT_LABEL , "buf3" );

buf0, buf1, buf_colors는 히스토그램입니다.

buf2, buf3은 라인이며 값이 있지만 표시되지 않습니다.

 
igorbel :

나는 그것을했지만 이제 다른 표시기 버퍼 가 표시되지 않습니다 :(

줄만 있습니다.

buf0, buf1, buf_colors는 히스토그램입니다.

buf2, buf3은 라인이며 값이 있지만 표시되지 않습니다.

당신의 가치는 정확합니까?

 #property indicator_buffers 
#property indicator_plots    
 
Vitaly Muzichenko :

당신의 가치는 정확합니까?


 #property indicator_chart_window
#property indicator_buffers 5
#property indicator_plots 3
#property indicator_type1   DRAW_COLOR_HISTOGRAM2
#property indicator_color1 clrRed , clrRoyalBlue
#property indicator_style1   STYLE_SOLID 
#property indicator_width1   3
이것들은 모두 지시문입니다.
 
igorbel :

이것들은 모두 지시문입니다.
나머지 버퍼의 색상을 설정했습니까?
 
Vitaly Muzichenko :
나머지 버퍼의 색상을 설정했습니까?


예, 이전 게시물에 있습니다.

   SetIndexBuffer ( 3 ,buf2, INDICATOR_DATA );
   PlotIndexSetInteger ( 3 , PLOT_DRAW_TYPE , DRAW_LINE );
   PlotIndexSetInteger ( 3 , PLOT_LINE_STYLE , STYLE_SOLID );
   PlotIndexSetInteger ( 3 , PLOT_LINE_COLOR , clrRoyalBlue );
   PlotIndexSetString ( 3 , PLOT_LABEL , "buf2" );
   //---
   SetIndexBuffer ( 4 ,buf3, INDICATOR_DATA );
   PlotIndexSetInteger ( 4 , PLOT_DRAW_TYPE , DRAW_LINE );
   PlotIndexSetInteger ( 4 , PLOT_LINE_STYLE , STYLE_SOLID );
   PlotIndexSetInteger ( 4 , PLOT_LINE_COLOR , clrRed );
   PlotIndexSetString ( 4 , PLOT_LABEL , "buf3" );
 
#property indicator_type2   DRAW_LINE
#property indicator_type3   DRAW_LINE
여기 도움이되었습니다. 기이한.
사유: