下载MetaTrader 5
要添加评论,请登录注册
在市场中发布您的程序。用您的知识赚钱!
mailema
40
mailema 2008.06.11 09:10 

how to make a indicator without the function Bars?

for example:I want to make a indicator (Macd),use the newest 1000 bars,

so don't want to use the Bars,and the Indicatorcounted(),

could you give me an example? Thanks

Rashid Umarov
管理员
6605
Rashid Umarov 2008.06.11 12:09  

Try this

extern int countBars = 1000;
 
....
 
int start()
  {
   for (int i = countBars; i>=0; i--)
      {
       //indicator algorithm code
      ... 
      }
 ....
//------
  return;
  }
/
要添加评论,请登录注册