Can I read from my EA a single Value from a customer-indicator => ExtMapVariable :) ??

 

Hi,


as far as I have found all values that a customer-indicator can return has to be returned 'within' a buffer.

But what if I want to calculate one value on the whole chart like:

init() {

SetIndexBuffer(6, myBuffer);

}

start() {

..

double myVal = iMAOnArray( myBuffer, 0, ArraySize(myBuffer-OffSet), 0, MODE_SMA, 0);

..

}

Now I want to return maVal to my EA or have EA to read this.

There is no need (for me) the have myVal re-updated after each new tick, so I don't need a ExtMapBuffer - just a 'ExtMapVariable'.

Is this possible? How? Any Idea, anyone with code?


Of course I can draw this value as Level:

SetLevelValue(4,myVal);

But can I reed this level out of my EA?

Thanks iin advance,

Carl

PS I don't want to use Global Values - I guess to many wil probably needed.

 

iCustom() requires the value it seeks to be in an index buffer, yes. 8 are available in any one indicator.

"PS I don't want to use Global Values - I guess to many wil probably needed."

Why not, you can make as many as you like.

Reason: