Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1776
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
You have the condition to open two at once if there are no open ones.
What's that?
This thing counts the current lot.
This parameter is set in the settings: LotControl
respectively, when: GetLotSize()>LotControl - I need it to open vOrderOpenSell() on bSignalBuy() signal.
Yes, I know that both orders are opened by the condition. I wrote it that way in the beginning. But how should I make vOrderOpenBuy() not open?
If the robot has already entered the market in one direction, it does not enter again in the same direction. Is this how your entry algorithm works?
If this condition ismet, it triggers
After
And also when there is a sell signal.
Then, the reason for entering in the opposite direction is because the condition is triggered
Yes. That's what I need. BUT it needs to stop/exclude a forward entry by this condition:
Thank you, Makar, for messing with me!
Here's a screenshot.
Yes, you made a mess)
Now in each folder, one by one, rename folders Experts to _Experts and Indicators to _Indicators.
Renamed in one folder - start terminal, if it didn't help - rename it back and go to the next folder.
P.S. The first time the terminal will take a little longer to start than usual.
this thing counts the current lot size
this parameter is set in settings: LotControl
respectively, when: GetLotSize()>LotControl - I need vOrderOpenSell() to happen upon signal bSignalBuy().
Yes, I know that both orders are opened by the condition. I wrote it that way in the beginning. But how should I make vOrderOpenBuy() not open?
yes. that's what i need. BUT it needs to stop/exclude forward entry by this condition:
I'm confused by this condition
with this condition
Thank you. Corrected. I'll be thinking about it.
I'm confused by this condition
With that condition.
it looks like you're right.
Right:
does not react at all to the condition (GetLotSize()>LotControl)
it looks like you're right.
Right:
doesn't react at all to the condition (GetLotSize()>LotControl)
GetLotSize() must be taken from the last closed one, then at
(GetLotSize()>LotControl) will workGetLotSize() should be taken from the last closed one, then at
(GetLotSize()>LotControl) will workthanks a lot!
yes. that's what i need. BUT in doing so, you need to stop/exclude forward entry by this condition: