Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1580
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
Highlighted...if <0, then the lot of the losing trade is increased
if >0, then the lot of a profit trade is increased
Hi.
I have another question about your EA
when testing it on a demo account, the following happened:
When the EA reaches the specified parameters, it has shifted to the "stop" mode, i.e., the "start" button is lit, but trading has not stopped and trades are very short, literally one or two cents. Is this the way it should be?
I have also found out that the EA has closed some deals not at take or stop price and not at the money limit, but "for nothing" and the price has passed various amount of points before it was closed. At the same time, the Expert Advisor completely covers the previous losses, by a couple of cents, (for example, three deals in a row have (-15.59 $) a profitable deal = +15.62 $ and closed it immediately!)
looked at the logs, no errors anywhere...
Hello.
I have another question about your Expert Advisor
when testing it on a demo, the following happened:
When the EA reaches the preset parameters, it switches to the "stop" mode, i.e. the "start" button is on, but the trading is not stopped, but very short trades are opened, just one or two cents. Is this the way it should be?
I have also found out that the EA has closed some deals not at take or stop price and not at the money limit, but "for nothing" and the price has passed various amount of points before it was closed. At the same time, the Expert Advisor completely covers the previous losses, by a couple of cents, (for example, three deals in a row have (-15.59 $) a profitable deal = +15.62 $ and closed it immediately!)
looked at the logs, no errors anywhere...
Please send us the code with your fixes. We will see.
Post your code with your fixes. We will see.
so I'm still testing the uncorrected one, your native one.
so I'm still testing the uncorrected one, your native one.
I don't see any errors...
Write what period, on what pair and what parameters were there when the errors occurred.
I don't see any errors...
write what period, on what pair and what parameters were present when the errors occurred.
these settings:
timeframe_RSI=0 period_RSI=14 level_buy=30 level_sell=70 Lot=0.01 K_Martin=1.6 Stoploss=200 Takeprofit=1000 CountLoss=100.0 CountProfit=25.0 Magic=777 DigitsLot=2 slippage=3
report is attached below.
there yellow lines with "unclear" closing, neither by stop, take profit, nor by money.
and blue - trades that were opened and closed almost immediately
Hello!
Please advise which function and where to add to this simple EA,
In addition to existing ways to reset a lot to the initial one,
If you want to close the current position when a drawdown of the current position is reached, specified in the deposit currency, and then, when you open the next one, to reset the lot to the starting one?
here are the settings:
timeframe_RSI=0 period_RSI=14 level_buy=30 level_sell=70 Lot=0.01 K_Martin=1.6 Stoploss=200 Takeprofit=1000 CountLoss=100.0 CountProfit=25.0 Magic=777 DigitsLot=2 slippage=3
report is attached below.
there yellow lines with "unclear" closing, neither by stop ,take, nor by money.
And blue lines represent deals that were opened and closed almost immediately.
On what timeframe?
and so on a new buy or sell
Greetings. Please advise on mt5.
I need to make an EA based on an indicator, so that the EA can work without the presence of an indicator.
Is it possible to make the data of an indicator inscribed in it appear on the chart, so that these lines do not become objects?
Greetings. Please advise me on mt5.
I need to make an EA based on an indicator, so the EA can work without the indicator.
Is it possible to display the data of the indicator written in it on the chart, so as not to make these lines as objects?
ChartIndicatorAdd()