Questions from Beginners MQL5 MT5 MetaTrader 5 - page 368
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
Good afternoon.
Can you tell me
if(OrderProfit()<=0)lot=OrderLots()*2;
How to add * to 2 in this line but not more than a certain number.
Thank you!
Good afternoon.
Can you tell me
if(OrderProfit()<=0)lot=OrderLots()*2;
How to add * to 2 in this line but not more than a certain number.
Thank you!
If "but not more than a certain number" is a lot result, then add a check:
if not, try to explain in more detail.
if "but not more than a certain number" is a lot result, then add a check:
if not, try to explain in more detail.
the trading robot multiplies the previous order by 2 when an unprofitable trade appears.
Therefore, if N number of losing trades is accumulated, I would like to limit the maximum "certain number" to a prescribed lot.
Thank you.
the trading robot multiplies the previous order by 2 when an unprofitable trade appears.
Accordingly, if N number of losing trades is accumulated, I would like to limit the maximum "certain number" to a prescribed lot.
Thank you.
So, the check will do (if I understand it correctly).
So the check will do (if I understand correctly).
Thank you.
I'm trying to fit it in.
HOORAY !!! IT'S WORKING!!!! :)
Thank you so much!!!
Can you please tell me why a Stop order (without an expiry time set in the strategy tester) may be deleted (apart from the EA's actions)? I noticed that this happens at the moment when the price passes the level of an active order (i.e. conversion to buy/sell) - price slippage does not pass.
There is not enough money to open a market position with the lot in which the pending order is placed. The price reaches it --> there is not enough money --> the order is removed.
Check the log for records of insufficient funds.
There is not enough money to open a market position with the lot the pending order is set at. The price reaches it --> there is not enough money --> the order is removed.
Check the log for records of insufficient funds.
Thank you. This is indeed true(did a closer look). Log in the tester unfortunately did not say anything, for some reason it does not show most of the events - placing orders, etc. disappears... Although everything is displayed in the "results" tab according to the chart.
The tester does not show everything in the log to speed up the test.
Click on the tester log and select View or Open. The second will open an explorer - there you select the file you want and open it in notepad, for example.
Hello! Please help me with the issue of visibility of added custom signal in mql5 wizard. I want a universal solution. Maybe the logs should be written somewhere? Or where are the detailed requirements for the content from //--- wizard description start to //--- wizard description end? The problem is e.g. with the signal from here https://www.mql5.com/ru/code/842. (I've added ShortName=SuperTrend_, everything is compiled and lies where it should be) Other and my own signals are visible, but sometimes I have to hit an invisible wall. Thanks.
The signal file is perfectly located in the MQL Wizard: