Hi folks,
As a learning programmer, I'm having difficulty finding the answer to a simple question. Perhaps someone here knows the answer.
I am creating a simple EA that watches for the value of a particular variable I set in a custom indicator I've written. In the custom indicator I set an integer variable named "levelThree" to either 0, 1 or 2, depending on the conditions being checked by the indicator.
I want the EA to check this variable, and if the variable is:
0, do nothing
1, issue an immediate SELL order at market price (Lot= 0.1)
2, issue an immediate BUY order at market price (Lot= 0.1)
Anyone know how to check that variable's value from within an EA?
Thanks very much,
Ed
As a learning programmer, I'm having difficulty finding the answer to a simple question. Perhaps someone here knows the answer.
I am creating a simple EA that watches for the value of a particular variable I set in a custom indicator I've written. In the custom indicator I set an integer variable named "levelThree" to either 0, 1 or 2, depending on the conditions being checked by the indicator.
I want the EA to check this variable, and if the variable is:
0, do nothing
1, issue an immediate SELL order at market price (Lot= 0.1)
2, issue an immediate BUY order at market price (Lot= 0.1)
Anyone know how to check that variable's value from within an EA?
Thanks very much,
Ed