[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 464

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
Colleagues help !!! really need AMA indicator which is standard in MT5, but only for MT4 PLEASE!!!
how is this possible:
buying on the market,
Ask:1.05310000, Bid:1.05280000, price:1.05310000, sl:1.05251000, tp:0.00000000
gives out error 130.
sl is normalized before transmission.
MODE_STOPLEVEL==0
Why... demo account:
Morning: Market analysis...news for today, levels...Oanda and other % open trades, no indicators...enter trades...on many pairs, with large SL and TP, TP is 2 times larger than SL, set by support and resistance levels, .... I leave monitor until evening.
In the evening: about 55-60% of trades, equity is in profit... I close almost all of them... I keep some of them and average them out by levels...
Why... Real account:I do the morning - after which there is no evening like on the demo..... I leave for an hour or two... as soon as i see a profit i close... then i do a brutal averaging.... ...then I wait for the closing of the series of averages... although the profit on the demo is greater in percentage of the deposit... even without averaging...
I understand that the psychological factor prevents me ... greed ... fear of even 300 ppm to lose ... What do I do? Forget about the real account?
The expert trades several instruments at the same time
... to forget that the real score...?
that's the answer.
Here is a piece of the Expert Advisor.
total=OrdersTotal();
if(total<1)
{
while (d_mn_1>d_pl_1 && (d_mn_0-d_pl_0)>=2) //Пока это условие выполняется открывать только селл при таком условии (iRSI(NULL,0,rsi_period,PRICE_CLOSE,2)>0.7)&&(iRSI(NULL,0,rsi_period,PRICE_CLOSE,0)<0.7)) -какой оператор использовать и как его оформить?
{
OrderSend(Symbol(), OP_SELL, lots, NormalizeDouble(Bid, Digits), 3, /*Ask+10*Point*/0, /*Bid-10*Point*/0, "ADX sell", magic, 0, CLR_NONE);
}
while (d_pl_1>d_mn_1 && (d_pl_0-d_mn_0)>=2) // Пока это условие выполняется открывать только Бай при таком условии (iRSI(NULL,0,rsi_period,PRICE_CLOSE,2)<0.3)&&(iRSI(NULL,0,rsi_period,PRICE_CLOSE,0)>0.3)) - какой оператор использовать и как его оформить?
{
OrderSend(Symbol(), OP_BUY, lots, NormalizeDouble(Ask, Digits), 3, /*Bid-10*Point*/0, /*Ask+10*Point*/0, "ADX buy", magic, 0, CLR_NONE);
}
}
}
}
Help me understand the code. I don't know how to describe the condition correctly.
Here's a piece of the EA.
Start by reading https://book.mql4.com/ru/operators/if