Attachments forums

List of attachments posted on this forum.


All files on forums: 159921

Re: Coding Help

pointer, Fri Jul 05, 2024 1:03 am

Hi mrtools, mladen or other experts,

Could you please have a look at my indicator problem. Attached indicator trendalert, it works fine when attached to a chart, but in strategy tester there's weird problem. it shows different in strategy tester visual mode.
and even worse, in EA i try to retrieve values:

double bull = iCustom(Symbol(), htf, indi, 0, 1);
double bear = iCustom(Symbol(), htf, indi, 1, 1);


it got wrong values where indicator didn't show on chart, for example there wasn't a bullish trend but got this UP value.
2024.07.04 22:47:21.683 2024.06.25 02:00:00 testindi XAUUSD,H1: up 1.000000 down 0.000000

really have no idea where this value come from. i tried my best to figure out what's going on but no luck, a bit frustrating.

Indicator and EA source attached, kindly ask for some help, thank you.
All files in topic