AndBar >> : Zdravstvyjte, vopros k znatokam. Est lu fynktsuya v mql4 kotoraya proveryala bu ne zanyat lu torgovuj potok ( ochered na otsulky ordersov ) v termunale, a to ya proveryayu cherz globalnue peremennue v kotorue zanoshy danue ne zanyat lu potok. Zaranee spasubo.
IsTradeContextBusy()
Here are the status check functions. https://docs.mql4.com/ru/check
Posmotru kak zanosyatsya danue v byfer dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt
Dlya prumera:
double ExtMapBuffer1[];
double ExtMapBuffer2[];
--------------------
ExtMapBuffer1[i]
=iMA(Symbol(),Period(), PeriodMA* X,0, METHOD_MA,PRICE_LOW,0);
ExtMapBuffer2[i]
=iMA(Symbol(),Period(), PeriodMA* X,0, METHOD_MA,PRICE_HIGH,0);
ny u eto vse delo oformu v tsukl
How to correctly program an exit at a reverse crossing of the main and signal lines? because signals come in short intervals of time... and orders are not closed where they should in the condition...
this question has been bugging me for a long time! PLEASE!
Here is the exit condition:
main_1=iCustom(NULL,0,"i_Trend", 0,0);// главная линия на 0м баре
main_2=iCustom(NULL,0,"i_Trend", 0,1);// главная линия на 1м баре
signal_1=iCustom(NULL,0,"i_Trend", 1,0);// сигнальная линия на 0м баре
signal_2=iCustom(NULL,0,"i_Trend", 1,1);// сигнальная линия на 1м баре//----for(int i=0; i<OrdersTotal(); i++){if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES)==false)break;if(OrderMagicNumber()!= MAGICMA ||OrderSymbol()!=Symbol())continue;//---- check order type if(OrderType()==OP_BUY){if( main_1< signal_1 &&!( main_2< signal_2))OrderClose(OrderTicket(),OrderLots(),Bid,3,White);break;}if(OrderType()==OP_SELL){if( main_1> signal_1 &&!( main_2> signal_2))OrderClose(OrderTicket(),OrderLots(),Ask,3,White);break;}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Zdravstvyjte, vopros k znatokam. Est lu fynktsuya v mql4 kotoraya proveryala bu ne zanyat lu torgovuj potok ( ochered na otsulky ordersov ) v termunale, a to ya proveryayu cherz globalnue peremennue v kotorue zanoshy danue ne zanyat lu potok. Zaranee spasubo.
IsTradeContextBusy()
Here are the status check functions. https://docs.mql4.com/ru/check
PS I am not an expert. :(
To goldtrader : spasubo.
U eshche vopros :
Pru testurovanuu, razresheno tester zaburat sovetnuky dannue uz kakovo nubyd fajla?, (hochy proverut na profutnost odny multuvalyutnyu strateguyu)
Zaranee spasubo.
To goldtrader : spasubo.
U eshche vopros :
Pru testurovanuu, razresheno tester zaburat sovetnuky dannue uz kakovo nubyd fajla?, (hochy proverut na profutnost odny multuvalyutnyu strateguyu)
Zaranee spasubo.
Expert Advisor can refer directly to other instruments and timeframes. You do not have to use a file. But it may be done with the help of this file.
The EA can refer directly to other instruments and timeframes. You do not have to use a file. Although, we may do everything through it (the file).
Bolshoe spasubo, poprobyem chto uz etogo polychutsya.
Help ind. doesn't draw SMA!!!
what's missing? Thanks.Help ind. doesn't draw SMA!!!
what did you miss? >> thank you.And you haven't done anything to make it draw.
And you haven't done anything to make it draw.
So what exactly...
Help ind. does not draw SMA!!!
what did you miss? >>Thank you.Posmotru kak zanosyatsya danue v byfer dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt
Dlya prumera:
Posmotru kak zanosyatsya danue v byfer dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt
Dlya prumera:
>> thank you!
I think it should be, but it isn't :(How to correctly program an exit at a reverse crossing of the main and signal lines? because signals come in short intervals of time... and orders are not closed where they should in the condition...
this question has been bugging me for a long time! PLEASE!
Here is the exit condition: