通达信中的Barslast()函数在mt4中如何实现

 

通达信中的Barslast()函数在mt4中如何实现,请老师给段代码.mt5中有现成的这种函数吗?

原因: