[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 815
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
and how can I refer to all currency pairs in the programming code when writing a tool?
https://docs.mql4.com/ru/series
https://docs.mql4.com/ru/common/MarketInfo
https://docs.mql4.com/ru/series
https://docs.mql4.com/ru/common/MarketInfo
Thank you for the links I will investigate
If you know, whether All, if there is a "Practical Applied Mathematics for Trader" - that is, a set of algorithms (with pictures, as well as without them) how and what to do with matsoft, and what decisions to take on the basis of the results.
I have read plenty of discussions of various mathematical topics, but I haven't come across such practical "manuals".
Please help me. And if not, it probably should create a branch?
Hello. Why does the modification return error 130(Incorrect stop levels)? Tral is 10 pips. SL - 50 pips.
if(Total==1)
{OrderSelect(OrderTicket(),SELECT_BY_TICKET,MODE_TRADES);
}
else return;
if(Ask-Price>Tral*Point&&SL<Price&&&Magic==1) // Trawl buying criteria
{
OrderModify(OrderTicket(),NULL,Price,TP,0);
}
if(Ask-SL>Tral*Point&&SL>=Price&&&Magic==1)
{
OrderModify(OrderTicket(),NULL,SL+Tral*Point,TP,0);
}
if(Price-Bid>Tral*Point&&SL>Price&&&Magic==2) // Trawl criteria for sale
{
OrderModify(OrderTicket(),NULL,Price,TP,0);
}
if(SL-Bid>Tral*Point&&SL<=Price&&&Magic==2)
{
OrderModify(OrderTicket(),NULL,SL-Tral*Point,TP,0);
}
You have indiscriminately what kind of order has now been chosen to make a modification.
You have to:
if(Ask-Price>Tral*Point && SL<Price && Magic==1 && OrderType()==OP_BUY) // Buy trawl criteria
{
OrderModify(OrderTicket(),NULL,Price,TP,0);
}
for starters.... at least like this
Hello. Why does the modification return error 130(Incorrect stop levels)? Tral - 10 pips. SL - 50 pips.
if(Total==1)
{OrderSelect(OrderTicket(),SELECT_BY_TICKET,MODE_TRADES);
}
else return;
if(Ask-Price>Tral*Point&&SL<Price&&&Magic==1) // Trawl buying criteria
{
OrderModify(OrderTicket(),NULL,Price,TP,0);
}
Can you tell me where I can download a multi-terminal? To trade from several accounts at once.
You have indiscriminately what kind of order has now been selected to make a modification.
It has to:
if(Ask-Price>Tral*Point && SL<Price && Magic==1 && OrderType()==OP_BUY) // Trawl criteria to buy
{
OrderModify(OrderTicket(),NULL,Price,TP,0);
}
for starters.... at least like this...
Good day!
Can you please advise a newbie, is it possible to write a custom indicator in MQL4 , so it can simultaneously handle all currency pairs? As far as I understand, the maximal number of lines in an indicator chart is 8, but I need only one line. I.e. can I get an array of arrays or variables for all currency pairs simultaneously for this line?
Thanks in advance for the answer.