計算済みバーの総数【IndicatorCounted】

int IndicatorCounted( )

 

The function returns the amount of bars not changed after the indicator had been launched last. The most calculated bars do not need any recalculation. In most cases, same count of index values do not need for recalculation. The function is used to optimize calculating.

この関数は、インディケータの起動した後、変化していないバーの総量を返します。最も計算をされたバーは再計算を必要としません。ほとんどの場合、いくつかの数のインデックス値は、再計算が必要としません。この関数は、計算を最適化するために使用されます。

Note: The latest bar is not considered to be calculated and, in the most cases, it is necessary to recalculate only this bar. However, there occur some boundary cases where custom indicator is called from the expert at the first tick of the new bar. It is possible that the last tick of the previous bar had not been processed (because the last-but-one tick was being processed when this last tick came), the custom indicator was not called and it was not calculated because of this. To avoid indicator calculation errors in such situations, the IndicatorCounted() function returns the count of bars minus one.

注意:最新のバーは、計算されていると見なされません。そして、多くの場合、このバーのみを再計算することが必要です。しかしながら、新しいバーの最初のティックで、エキスパートからカスタム インディケータが呼び出され、いくつかの環境状態が起こります(なぜならば、最後のティックがきたとき、その最後のティックを処理している最中だからです)。カスタム インディケータは、呼び出されず、このために計算もされません。このような状態で、インディケータの計算エラーを避けるために、IndicatorCounted() 関数は、-1 したバーの本数を返します。

Sample:

サンプル:

 

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">