My indicator is crashing Metatrader
and delete your second, redundant post.
Play videoPlease edit your post.
For large amounts of code, attach it.if ( isHigherThan((iClose(NULL, tf, s)/iClose(NULL, tf, s+400-1))/400, 0.0025) )
Are you sure you have History + 400 bars? The tester only guarantees 100 bars. If you don't, iClose returns zero.
WHRoeder:
and delete your second, redundant post.
Play videoPlease edit your post.
For large amounts of code, attach it.-
Are you sure you have History + 400 bars? The tester only guarantees 100 bars. If you don't, iClose returns zero.
Yes I'm sure.
Lol i-- was missing...
I have no idea why... There is no problem with the functions isLongTermTrend() and isHigherThan(), because I use them in an EA and they work fine there.