Questions from Beginners MQL4 MT4 MetaTrader 4 - page 111
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
Thank you, that helps.
If it's not too much trouble, can you explain why my option doesn't work, the help says 0 and 0 - current symbol and current time frame???
Thank you, that helps.
If it's not too much trouble, can you explain why my option doesn't work, the help says 0 and 0 - current symbol and current time frame???
NULL and 0
Thank you!
Help! I'm making a trailing stop and I can't figure out where to put STEP for it. Please see....
if(OrdersTotal() > 0)
{
for(int pos = 0; pos < OrdersTotal(); pos ++)
{
OrderSelect(pos, SELECT_BY_POS, MODE_TRADES);
if(OrderMagicNumber() == Magic && OrderSymbol() == Symbol() && OrderType() == OP_BUY &&
NormalizeDouble(Ask - sl, Digits) > NormalizeDouble(OrderStopLoss(), Digits) && NormalizeDouble(Ask - sl, Digits) < NormalizeDouble(Bid, Digits))
OrderModify(OrderTicket(), 0, Ask - sl, 0, 0, Green);
else if(OrderMagicNumber() == Magic && OrderSymbol() == Symbol() && OrderType() == OP_SELL &&
NormalizeDouble(Bid + sl, Digits) < NormalizeDouble(OrderStopLoss(), Digits) && NormalizeDouble(Bid + sl, Digits) > NormalizeDouble(Ask, Digits))
OrderModify(OrderTicket(), 0, Bid + sl, 0, 0, Red);
}
there are the following dates:
How can I populate array [tor.session][timezone][DST on/of][open][month][week][day][month][week][day] with these input parameters?
We need to remove b value (-1) from newarray[a] , then set the new size of array newarray[a-b].
Please tell me how to do it
We need to remove b value (-1) from newarray[a] , then set the new size of array newarray[a-b].
Please tell me how to do it
there are the following dates:
How can I populate array [tor.session][timezone][DST on/of][open][month][week][day][month][week][day] with these input parameters?
An array is a union of elements with the same attributes (remember: forest array, dwelling array). you have different attributes: string + bool + integer. The solution is to describe a structure and an array of structures. Or 10 arrays.
Hello. I wrote in my EA the calculation of the lot like this:
lot=NormalizeDouble(AccountBalance()*risk/(SL*MarketInfo(Symbol(),MODE_TICKVALUE)),2);
The purpose is to get the correct lot size regardless of the account currency and pair for the specified risk and stop loss. Risk is set as a percentage of losses when Stop Loss is triggered. Stop Loss SL in pips (where pips is the smallest possible change in the price of the pair). I am going to start this EA on a real account. But I have my doubts. If somebody from more experienced programmers tell me what kind of errors may occur, I will be very grateful.