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
How to do this check in a loop ?
You can do it like this
{
if(BufferPointUp[i+BarCount]!= EMPTY_VALUE)
break;
}
if(BarCount==0) BufferPointUp[i]=high[i];
you can do this
Thank you.
Good afternoon!!! Can you tell me how to make a random selection of a number in a given range? Is there any function for this???
This is bullshit. I've already got the code to this state:
Ticket=OrderSend(NULL,OP_BUY,Lot,Ask,slippage,0,0,NULL,magic,0,Blue);
if(OrdersTotal()!=0)
{
for (int i = 0; i < OrdersTotal(); i++)
{
if(OrderSelect(i,SELECT_BY_POS)==true)
{
TP=NormalizeDouble(Bid+TakeProfit*Point,Digits);
bool modify=OrderModify(OrderTicket(),OrderOpenPrice(),TP,0,0);
}
}
return;
}
Still no TA.
The TA is still not being put in place.
This is bullshit. I've already got the code to this state:
Still no TA.
Why so complicated when there is a ticket?
Ticket=OrderSend(NULL,OP_BUY,Lot,Ask,slippage,0,0,NULL,magic,0,Blue);
//не забываем проверить код ошибки
if(Ticket<0) Print("Ой, ошибочка: ", _LastError);
TP=NormalizeDouble(Bid+TakeProfit*Point,Digits);
bool modify=OrderModify(Ticket,OrderOpenPrice(),OrderStopLoss(),TP,0);
//не забываем проверить код ошибки
if(!modify) Print("OOPS! Modify error: ", _LastError);
Hi, advise how to make an EA using 15 minute time frame to check the value every 20 minutes, say at 9-20, 9-40 followed by crossover RSI and if the level is crossed in twenty minutes, check the price value. This is what I need to fix:
Price2==Bid;
{
if (Hour()==9 && (Minute() == 40) && (Bid<Price2))
{
ticket=OrderSend(Symbol(),OP_SELL, Lts, Bid, SP,0,0, NULL, Magic, 0, Blue);
return(0);
}
}
Hi, how can I make my EA check values every 20 minutes using 15 minute timeframe?
...You can check the remainder of the division, if the minutes are divided by 20 without a remainder, then it is the next 20 minutes
...you can check the remainder of the division, if the minutes are divided by 20 without a remainder, then it is the next 20 minutes