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
Where is the position modification written?
Stop Loss and Take Profit details written before Buy and Sell conditions
There is an error in the code:
Thank you. It's gone.
What about positioning?
The thing is, if I put curly brackets in places, at compilation it generates - 'PositionModify' - function can be declared only in the global scope
and this time I believe it, i.e. the 'position modifier' itself should be placed before int OnInit() and conditions (if) after the purchase section ?
Give me the code, I don't understand what you mean.
PS: You should describe the PositionModify() function on a global level, i.e. on the level where the functions are : OnInit(), OnTick(), OnDeinit().
Corrected. It compiles without errors. Didn't test it in the tester. Your code was not readable. Get used to code layout as in my corrected version.
Thank you (though I don't quite understand what has changed other than the layout).
What does "SMB" in line 2 mean and where is it defined by values? can't you write _Symbol ?
mrequest.action = TRADE_ACTION_SLTP; mrequest.symbol = smb; mrequest.magic = EA_Magic; mrequest.sl = SL; mrequest.tp = TP;
Hi, can you tell me if the orders on the signals will be executed if I have my terminal computer switched off?
Good afternoon,
Can you advise how best to implement the following: Expert launches, when initialised it draws (in the chart area? somewhere else?), say, TextBox and Button. Expert handles ticks. If a user enters some value in TextBox and press Button, the tick handler sees this new data.
In other words - what is the correct (simpler, better) way to organize interactive exchange of user data with the Expert Advisor via Windows GUI elements? CChartObjectEdit and CChartObjectButton is, excuse me, some kind of "pornography".
Thank you. Sorry if the question is simple and please poke around where the answer is!
Cool.
1. the code now compiles. First change.
Too bad compiling and operability are not the same thing)
Why in the tester the code sets stoplosses and profits but not on the chart?!
I'm starting to freak out as I go along)))
Why in the tester the code sets stoplosses and profits but not on the chart?!
Starting to freak out along the way )))).
Lester:Zdes put a template, inside there is a modification, and showed how to polzuvatsya.
https://www.mql5.com/ru/forum/6343/page73
If you don't want to do it, you'll have to read the variables correctly.
Hi, can you tell me if the orders on the signals will be executed if I have my terminal computer switched off?