Hi:
I've been reading and learning, but I'm new to programming and have spent a couple frustrating days on something that I thought would be pretty simple. I have two working programs, an EA (ma ea 2) and and indicator (HMA1). The indicator has a value, trend[x], in it that I want to use in the EA. There's a Comment line in the indicator and at that point trend[x] is always the correct value that I want to use (value should always be 1 or -1).
I've tried to return the value, use iCustom, merge the two programs, even write the value out to a file and read it back with the other program, but I am not experienced enough at this point to get it to work.
If anyone can help I would really appreciate it.
Thanks,
John
I've been reading and learning, but I'm new to programming and have spent a couple frustrating days on something that I thought would be pretty simple. I have two working programs, an EA (ma ea 2) and and indicator (HMA1). The indicator has a value, trend[x], in it that I want to use in the EA. There's a Comment line in the indicator and at that point trend[x] is always the correct value that I want to use (value should always be 1 or -1).
I've tried to return the value, use iCustom, merge the two programs, even write the value out to a file and read it back with the other program, but I am not experienced enough at this point to get it to work.
If anyone can help I would really appreciate it.
Thanks,
John
Attached File(s)