Forum

Class instance assignment

In MQL4, consider code below: class CObject { private : int m_state; public : void SetState( int state) { m_state = state; } } CObject A, B; A.SetState( 0 ); B.SetState( 1 ); B = A; A.SetState(3); After this, I assume that B's m_state value will be 0

Indicator cannot get object created in EA

Hi, I'm trying to pass some values from EA to a custom indicator and vice versa. So It's a two way communication. I'm using MQL4. I do it by creating chart objects in the EA, which contain the value I want to pass to the indicator. I encode the value in the object description . When I call iCustom