Hi, some MQL4 coding help needed!
Let's say i have this code:
bool test = movingaverageistrue && priceistrue
How do i test if it was true on the last bar? I tried test[1] but that doesn't work. Is it even possible?
Obviously it should work for 5 bars back as well, ie test[5] etcetc...
Take care,
Krossaren96
Let's say i have this code:
bool test = movingaverageistrue && priceistrue
How do i test if it was true on the last bar? I tried test[1] but that doesn't work. Is it even possible?
Obviously it should work for 5 bars back as well, ie test[5] etcetc...
Take care,
Krossaren96