void IndicatorDigits (int digits)
Sets precision format (the count of digits after decimal point) to visualize indicator values. The symbol
price precision is used by default, the indicator being attached to this symbol chart.
インディケータの値を表示する精度形式(小数点以下の桁のカウント)を設定します。通貨ペアの価格精度 は、インディケータが関連付けられた通貨ペア チャートの規定値が使用されます。
Parameters:
パラメータ:
< b > digits < / b > - Precision format , the count of digits after decimal point .
精度フォーマット、少数点以下の桁のカウント。
Sample:
サンプル:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int init ( )
{
//---- 2 additional buffers are used for counting.
IndicatorBuffers ( 3 ) ;
//---- setting of drawing parameters
SetIndexStyle ( 0 , DRAW_HISTOGRAM , STYLE_SOLID , 3 ) ;
SetIndexDrawBegin ( 0 , SignalSMA ) ;
IndicatorDigits ( Digits + 2 ) ;
//---- 3 allocated buffers of an indicator
SetIndexBuffer ( 0 , ind_buffer1 ) ;
SetIndexBuffer ( 1 , ind_buffer2 ) ;
SetIndexBuffer ( 2 , ind_buffer3 ) ;
//---- "short name" for DataWindow and indicator subwindow
IndicatorShortName ( "OsMA(" + FastEMA + "," + SlowEMA + "," + SignalSMA + ")" ) ;
//---- initialization done
return ( 0 ) ;
}
0 people found this article useful This article was helpful
This article was helpful
0 people found this article useful