don't have a helpful friend?
William Roeder:
- Don't post code that will not even compile. You can't define a function inside other code.
- What do you want signal==1 to do?
Can you write me an example that makes a simple AL and CLOSE operation with Signal = 1 and Signal = 0?
signal==1 (open any buy position)
signal==0 (close only this position with magic number)
I know it's simple for you, but I haven't done it yet. I will be very glad if you help. :/

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I'm new and I'm trying to move forward. Please help me.
I hope I can find a master who will make me happy.
I use MT5 and MQL5.
Sorry for the following nonsense. Can you edit it the way I want ?