A real puzzle

 

Hi:

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

 

just omit the code - is all under your control...

have a hard coded for loop of 0..999 iterations

do you program and know about MQL4?

if not consider reading MQL4 Tutorial

not only talk about mql but talk about how to's of basic programming...

enjoy ;)

Reason: