条件成立到现在的周期

 

请问高手 在MQL5里如何实现某条件成立距现在的周期?有没有某个函数或者类能实现这个功能?

      一如MQL4里 ” iLowest ()“ 这样的函数 在MQL5里是那个函数或类 ?   如能详细回复,深表感谢。

 
cntyrone:

请问高手 在MQL5里如何实现某条件成立距现在的周期?有没有某个函数或者类能实现这个功能?

      一如MQL4里 ” iLowest ()“ 这样的函数 在MQL5里是那个函数或类 ?   如能详细回复,深表感谢。

我是低手:)  iLowest 貌似在MQL5中没有直接对应的,需要自己来实现,英文论坛里面有相关讨论的:

https://www.mql5.com/en/forum/1422/page1

其中有实现的代码的。 

 

另外有篇文章写MQL4到MQL5迁移的,包括常用的常数,变量,函数等。

虽然是英文的, 但是主要部分是代码,所以还好:

https://www.mql5.com/en/articles/81 

Migrating from MQL4 to MQL5
Migrating from MQL4 to MQL5
  • 2010.05.17
  • Sergey Pavlov
  • www.mql5.com
This article is a quick guide to MQL4 language functions, it will help you to migrate your programs from MQL4 to MQL5. For each MQL4 function (except trading functions) the description and MQL5 implementation are presented, it allows you to reduce the conversion time significantly. For convenience, the MQL4 functions are divided into groups, similar to MQL4 Reference.
 

记录下条件成立的bartime,和现在的bartime对比,除以你的timeframe。 

 
多谢二位的帮助,没想到您们的回复是快速的! 
原因: