有几段英文文档看不懂,哪个英文厉害的帮看下是什么意思

 
1、int  IndicatorCounted();

The function returns the amount of bars not changed after the indicator had been launched last.

 “ndicator had been launched last.”准确是指什么意思 ,达到什么样标准了才算是“指标加到图表启动后”  ,系统觉得达到什么样标准才会触发运行IndicatorCounted()这个函数,希望能用量化的数据来讲解,不是抽象的讲解。因为系统是根据量化的数据来进行判断的。

2、

Loading and Unloading of Indicators

Indicators are loaded in the following cases:

  • an indicator is attached to a chart;
  • terminal start (if the indicator was attached to the chart prior to the shutdown of the terminal);
  • loading of a template (if the indicator attached to a chart is specified in the template);
  • change of a profile (if the indicator is attached to one of the profile charts);

 loading of a template  和 change of a profile 是指什么?

有知道的麻烦回复,谢谢。 

 
1648401654c:
1、int  IndicatorCounted();

The function returns the amount of bars not changed after the indicator had been launched last.

 “ndicator had been launched last.”准确是指什么意思 ,达到什么样标准了才算是“指标加到图表启动后”  ,系统觉得达到什么样标准才会触发运行IndicatorCounted()这个函数,希望能用量化的数据来讲解,不是抽象的讲解。因为系统是根据量化的数据来进行判断的。

2、

Loading and Unloading of Indicators

Indicators are loaded in the following cases:

  • an indicator is attached to a chart;
  • terminal start (if the indicator was attached to the chart prior to the shutdown of the terminal);
  • loading of a template (if the indicator attached to a chart is specified in the template);
  • change of a profile (if the indicator is attached to one of the profile charts);

 loading of a template  和 change of a profile 是指什么?

有知道的麻烦回复,谢谢。 

我的理解是: 这个函数返回值等于 “指标启动后” 图表上没有变化的柱子数量。

但我的疑问是:什么是指标启动后?我把一个指标加到一个图表上, IndicatorCounted()返回值一般先是0,再变成Bars-1。我想知道,从0 到Bars-1这个过程(时间)是多久,是在我 的自定义指标代码运行一遍,还是2遍,3遍后,5遍后才从0变成Bars-1?

 
指标成功运行后该函数返回现有的柱子数量,很简单的函数,楼主怎么会有如此多的疑问,也不知道你编程中需要获取什么值。从函数字面的理解为获取indicator的计算数量,因为一般来说一个bar对应一个indicator值,所以bar的数量也就是指标缓存数组的长度。
 
1648401654c:

我的理解是: 这个函数返回值等于 “指标启动后” 图表上没有变化的柱子数量。

但我的疑问是:什么是指标启动后?我把一个指标加到一个图表上, IndicatorCounted()返回值一般先是0,再变成Bars-1。我想知道,从0 到Bars-1这个过程(时间)是多久,是在我 的自定义指标代码运行一遍,还是2遍,3遍后,5遍后才从0变成Bars-1?

IndicatorCounted() 代表已经计算指标值的柱形,通常会留一个当前柱形,因为很多指标根据实时价格来计算,因此当前柱形的值需要重复计算。其他柱形的值计算一次就不用再计算,提升程序效率。
 

当第一次运行指标时,即第一次计算 indicatorCounted()返回0.  这时 会用当前已有的所有高低开收数据即所有的bar进行计算。

下次新数据新价格到来时,将触发下次计算, 下次计算 时  indicatorCounted()返回上次即第一次计算过的bar数目(其实这就是时间的一种表达)。

依此类推,随新价格数据到来,随时间变化......

 indicatorCounted()就是用来标记已经计算过多少的。

由于各种原因,如网络通讯、计算机忙、计算任务重....等,实际中   indicatorCounted(), bar数目、时间 不一定完全及时同步。



从0 到Bars-1这个过程(时间),一般是 几毫秒, 或几个几毫秒(取决于数据量、计算复杂度、系统忙闲等多因素), 除非 (1)  你的计算非常复杂、繁重, (2) 若指标是打开软件运行时自动执行的,这时,软件需要首先 和服务器联系获得这时前 本地没有的数据--数据同步,这需要较长时间,一般在数秒到数十秒(看你网络有多慢了), 然后才是你指标计算用时间。    如果是 软件运行后 才增加的指标, 就没有那个数据同步时间了,




软件运行---数据和时间同步---计算---绘制显示、其他如EA计算、交易信息获取。

         运行后, 每次得到服务器送来的新价格, 就触发一遍 ---计算---绘制显示、其他如EA计算

         直到关闭软件。  如果掉线-与服务器失去联系, 就相当于 从软件运行重新开始....