Need MT4 programmers' advice: getting wrong custom indicator values in EA

fxmonk

Junior member
Messages
36
Likes
3
Hello,

I have a real simple program "testcmeter" that basically should use icustom to return a value from a custom indicator called "CCFp" (both are attached).

Before I build the program further I want to make sure it's giving me the right values. When I run the EA ("testcmeter") in the strategy tester to backtest it, the journal entries show values of 2147483647, which are too big and I've heard that these correspond to "empty data" or something.

I get the correct values (i.e. 0.0529ish) when I run it in real time and watch the alert window.

Could someone please tell me why this is happening and how to fix it? Thanks so much!

Kris
 

Attachments

  • CCFp.mq4
    17.1 KB · Views: 630
  • testcmeter.mq4
    2.4 KB · Views: 686
Top