[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 419
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
друг на Fibo-group скачай терминал там есть
Thank you
Guys, tell me where to find the sliding envelope in MT.!!!!!!!!!!!!!!!!!!!!
Guys tell me where to find the sliding envelope in MT.!!!!!!!!!!!!!!!!!!!!
Envelopes
Подскажите, нет ли какой то базы данных чтобы закачать в Метатрейдер 4, чтобы было больше финансовых инструментов? не только валютных пар и 6 жалких СFD ? (PS демо счет)
You could find another broker, or open a micro account instead of a demo one.
как сделать три тейкпрофита, есть три сигнала входа на каждый сигнал открытия нужно установить свой тейкпрофит?
In the simplest case, each signal can be provided with its own magik in the ORDERSEND fi
https://www.mql5.com/ru/forum/100201
Please don't kick me if this has already happened, the question is, is it possible to close orders through magik, if so, what have I omitted below?
extern double Lots=0.1;
int start()
{
double Ind11=iMA(NULL,0,12,0,0,0,0);
double Ind12=iMA(NULL,0,12,0,0,0,1);
if(Ind11>Ind12)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"",16384,0,Green);
}
if(Ind11<Ind12)
{
for(int i=OrdersTotal();i>=0;i--)
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES))
{if(OrderMagicNumber()==16384) OrderClose(OrderTicket(), OrderLots(), Bid, 5, CLR_NONE)
;}
}
return(0);
}
for( ic=OrdersTotal()-1;ic>=0;ic--)
{
if(OrderSelect(ic,SELECT_BY_POS,MODE_TRADES)==false) continue;
if(OrderSymbol()==Symbol() && OrderMagicNumber()==16384)
{
if (OrderType()==OP_BUY)
ret=OrderClose(OrderTicket(),OrderLots(),Bid,5,CLR_NONE);
if (OrderType()==OP_SELL)
ret=OrderClose(OrderTicket(),OrderLots(),Ask,5,CLR_NONE);
}}
I don't know what "ret" means, I added the code, it doesn't work. I must have misconnected something, what's wrong?
extern double Lots=0.1;
int start()
{
double Ind11=iMA(NULL,0,12,0,0,0,0);
double Ind12=iMA(NULL,0,12,0,0,0,1);
if(Ind11>Ind12)
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"",16384,0,Green);
}
if(Ind11<Ind12)
{
for(ic=OrdersTotal()-1;ic>=0;ic--)
{
if(OrderSelect(ic,SELECT_BY_POS,MODE_TRADES)==false) continue;
if (OrderSymbol()==Symbol() && OrderMagicNumber()==16384)
{
if (OrderType()==OP_BUY)
ret=OrderClose(OrderTicket(),OrderLots(),Bid,5,CLR_NONE);
if (OrderType()==OP_SELL)
ret=OrderClose(OrderTicket(),OrderLots(),Ask,5,CLR_NONE);
}}
}
return(0);
}