Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 809
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
#property icon "\\\\Images\\\\xxx.ico";
and it was not fixed in any way?
As you can see.
However, the most logical and easiest way to proxy is to prohibit the MT window tool change. So I suggest that we consider it a bug :)
My Expert Advisor analyses the chart for a certain number of months, but there are charts that return the entire history in the minute chart, and there are charts that do not want to return more than a month and a half, and even that's if you scroll the chart back manually, even beyond a certain date it does not scroll manually.
Hello Dear forum users. I would like to make a request. Would someone be able to post a piece of code with a working iEnvelopesOnArray() function? My all my attempts to tame it so far have been unsuccessful. I suspect it is the developers' fault. Here is an indicator to check its work.
Hi all. I am getting errors during the test:
2014.12.25 18:04:31.125 2014.11.03 00:00 Test3 EURUSD,H4: invalid ticket for OrderModify function
2014.12.25 18:04:31.125 2014.11.03 00:00 Test3 EURUSD,H4: OrderModify error 4051
I double-checked it many times, there is no error (as far as I think).
Failure occurs in this part of program:
ModifyBuy, ModifySell, SelectBuy, SelectSell - have type bool
SendBuy, SendSell-int , int TP = 30
while(true)
{
SPREAD=MarketInfo(Symb,MODE_SPREAD);
SelectBuy=OrderSelect(OrderTicketBuy,SELECT_BY_TICKET);//buy
RefreshRates();
if(NormalizeDouble(OrderOpenPrice()+TP*Point,Digits)<NormalizeDouble(Ask,Digits))
{
ModifyBuy=OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(10-SPREAD)*Point,Bid+(30- SPREAD)*Point,0,0);
R=1;
break;
}//if2
Timen=OrderCloseTime();
if(Timen>0)
{
//--------------------------
Stop=StopLevel(Symb);
StopLong();//значение Long2
StopLoss_Func();//значение SL
//--------------------------
SendBuy=OrderSend(Symb,OP_BUYSTOP,Lote,Ask+Long2*Point,1,Bid-SL*Point,NULL);
for(i=1;i>OrdersTotal();i++)
{
if(OrderSelect(i-1,SELECT_BY_POS,MODE_TRADES)==true)//Проверяем есть ли ордер
{
if(OrderSymbol()!=Symb) continue;
if(OrderType()==4)
{
OrderTicketBuy=OrderTicket();
break;
}
else
{
continue;
}
}
}
continue;
}//if2
SelectSell=OrderSelect(OrderTicketSell,SELECT_BY_TICKET,MODE_TRADES);//sell
RefreshRates();
if(NormalizeDouble(OrderOpenPrice()-TP*Point,Digits)>NormalizeDouble(Bid,Digits))
{
ModifySell=OrderModify(OrderTicket(),OrderOpenPrice(),Ask+(10-SPREAD)*Point,Ask-(30- SPREAD)*Point,0,0);
R=2;
break; //спред
}//if2
Timen=OrderCloseTime();
if(Timen>0)
{
//--------------------------
Stop=StopLevel(Symb);
StopLong();
StopLoss_Func();
//--------------------------
SendSell=OrderSend(Symb,OP_SELLSTOP,Lote,Bid-Long2*Point,1,Ask+SL*Point,NULL);
for(i=1;i>OrdersTotal();i++)
{
if(OrderSelect(i-1,SELECT_BY_POS,MODE_TRADES)==true)//Проверяем есть ли ордер
{
if(OrderSymbol()!=Symb) continue;
if(OrderType()==6)
{
OrderTicketSell=OrderTicket();
break;
}
else
{
continue;
}
}
}
continue;
}//if2
}//while1
If you need the whole code, here
Thank you!
Hello, could you help me please - I have a problem: Robot enters a position and on the next tick it modifies its stop-loss to the previous low and I need that stop-loss is modified only when the candle closes on which the position was opened