Questions from Beginners MQL5 MT5 MetaTrader 5 - page 337
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
It's not the robot... It works without any errors. The structure of trade result is MqlTradeResult, it is the second parameter in function OrderSend() look in documentation. The code was written using OOP, I'm not familiar with it... You have to find a method that sends a trade request using OrderSend() and after it call Print( result.retcode ) where result is an object of MqlTradeResult structure.
Made it work.
It is done like this
trade is an object of class CTrade.
The code returns 10030 (Unsupported balance order execution type specified)
What does it mean?
Made it work.
It is done like this
trade is an object of class CTrade.
The code returns 10030 (Unsupported balance order execution type specified)
What does it mean?
Help Plz!
1 Here is the function:
This means to close all orders when a certain profit is reached.
And I want them to close at a certain profit-defined MAJIKa not tell me how to do it? maybe add afterOrdersTotal()cheta need????e.g.!=magic ?????????
Please give me a hint, I'm just trying to figure it out.
2) To put a virtual stop of 50% of the deposit, am I right?
Help Plz!
1 here is a function:
if(OrdersTotal()==1)
if(profit>=tp_in_money || a>0)
{
closeall();
closeall();
closeall();
//a++;
//if(total()==0) a=0;
What I mean here is that all orders must be closed once a certain profit is earned.
And I want them to close at a certain profit-defined MAGIC can you tell me how to do this? maybe add after OrdersTotal()cheta need????e.g.=magic ?????????
Please tell me, I can't understand it.
2) I want a virtual stop of 50% of the deposit, I am right:
double BOL =AccountBalance();
double PROS =AccountCredit();
if(PROS<BOL*0.5 || a>0)
{
closeall();
closeall();
closeall();
//a++;
//if(total()==0) a=0;
I don't claim to be perfect.
I don't claim to be perfect.
Have you tried to open a demo account on MetaQuotes-Demo server? If no - try it, if everything is OK - write to Service Desk and complain that the CTrade class in your EA does not work properly on the server. If it is still bad... You can also write to Service Desk and say that you can't run the robot, there is an error... But first of all, be sure to try to run it on demo methaqvot server!
Thank you very much!
It worked inMetaQuotes-Demo. I will write to the service desk in the week to get the BCS5-Real server sorted out.
Thank you very much!
It worked inMetaQuotes-Demo. I will write to the service desk in the week to get the BCS5-Real server sorted out.
Good evening, gentlemen!
Question: Is it possible to create graphical elements(trend line, indicator..........) with Gif extension, i.e. with animation effect (shimmering, flashing..........) in MT4? Thank you for your reply.
Good evening, gentlemen!
Question: Is it possible to create graphical elements(trend line, indicator..........) with Gif extension, i.e. with animation effect (shimmering, flashing..........) in MT4? Thank you for your reply.
Your question is not clear, software can do lines and stuff, but what do you mean by gif?