on doljen prodavati pri poiavlenii krasnoi arrow, pokupati pri poiavlenii green arrow,
chtoto wrong ?!
>> spasibo
It should only do what it says.
externdouble Risk=0.5; //Внешний параметр не используется
externint StopLoss=500; //Внешний параметр не используется
externint TakeProfit=50; //Внешний параметр не используется
externint Magic_N=12345; //Внешний параметр не используется
int start() //Основной код советника
{double bt=iCustom(NULL,0,"abracadabra",0,1); //Вычисление хни которая не используется
double st=iCustom(NULL,0,"abracadabra",1,1); //Вычисление хни которая не используется
for(int i=OrdersTotal()-1; i>=0; i--) //Перебор открытых ордеров{if(OrderSelect( i, SELECT_BY_POS, MODE_TRADES)) //Выбор ордера {if(OrderSymbol()==Symbol()&&(OrderType()==OP_BUY||OrderType()==OP_SELL)) //Если ордер на продажу или покупку
{if(OrderType()==OP_BUY) //если ордер на покупку,
{OrderClose(OrderTicket(),OrderLots(),Bid,0,Green); //то закрываем его нахрен}if(OrderType()==OP_SELL) //если на продажу
{OrderClose(OrderTicket(),OrderLots(),Ask,0,Red); //полностью аналогично
}}}}return(0); //Операция нас здесь не было, курим до следующего тика
}
Bottom line: open orders and run or try placing orders while the EA is running.
Colleagues, I have a question about averaging. purely mathematical. let's assume we have averaged 3 times: positions with the same volume of 1 lot. at a price of 1.8 and 1.6 and 1.4. The actual opening price here will be 1.6 . With this it is clear. But I don't understand how I can calculate the actual open price, if we opened with different lots, e.g. with an averaging factor of N. // For example: 0.1 lot and 0.2 and 0.4 - here N==2 at 1.8 and 1.6 and 1.4 . What will be the actual opening price?
Colleagues, I have a question about averaging. purely mathematical. let's assume we have averaged 3 times: positions with the same volume of 1 lot. at a price of 1.8 and 1.6 and 1.4. The actual opening price here will be 1.6. With this it is clear. But I don't understand how I can calculate the actual open price, if we opened with different lots, e.g. with an averaging factor of N. // For example: 0.1 lot and 0.2 and 0.4 - here N==2 at 1.8 and 1.6 and 1.4 . What will be the actual opening price?
I think ((price1*ob1)+(price2*ob2)+(price3*ob3))/( ob1+ob2+ob3)
I think in case all positions are opened at the same time
Comrade, it's a rare thing to climb the tree and not tear your trousers off. If you want an Expert Advisor and "virginity" of the system almost maintained, go to a pro. I think 100 bucks is not a problem for you. Can I give you a list?
Comrade, it is rare for anyone to climb up a Christmas tree without tearing his trousers off. If you want an Expert Advisor and "virginity" of the system, you have to go to a pro. I think 100 bucks is not a problem for you. Shall I give you a list?
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.
help pls,
gde osibka?
spasiboNot enough closing brackets =)
And I advise you to structure the code - there will always be much less errors
super, spasibo :),
(0)errors :)
toliko pochemuto i zero sdelok :(
on doljen prodavati pri poiavlenii krasnoi arrow, pokupati pri poiavlenii green arrow,
chtoto wrong ?!
spasibo
super, spasibo :),
(0)errors :)
toliko pochemuto i zero sdelok :(
on doljen prodavati pri poiavlenii krasnoi arrow, pokupati pri poiavlenii green arrow,
chtoto wrong ?!
>> spasibo
It should only do what it says.
Bottom line: open orders and run or try placing orders while the EA is running.
spasibo za pomoschi
i ne razbiraiiusi v programirovanie :(
hotel bil EA kotorii pokupaet/prodaiot kogda na prediduschem bili hotia bi dve strelki v tu je storu raznih iCustom indicator
tam 4 indicators, odin chart winodow, 3 separate window,
ili hotiabi daite pls prostoi EA kotorii pokupaet/prodaiot po signalam separate window indicator
eschio raz bolishoe spasibo :)
zdesi: ( http://21122112.mt4live.com ) ya tried atu strateghiu (butliko nebilo vremeni vsegda sledi za signals)
Taaaaakkkkkk..... What indicators did you say?
Taaaaackkkkk..... What indicators did you say?
indi po stoch
I think ((price1*ob1)+(price2*ob2)+(price3*ob3))/( ob1+ob2+ob3)
I think in case all positions are opened at the same time
indi po stoch
Comrade, it's a rare thing to climb the tree and not tear your trousers off. If you want an Expert Advisor and "virginity" of the system almost maintained, go to a pro. I think 100 bucks is not a problem for you. Can I give you a list?
Comrade, it is rare for anyone to climb up a Christmas tree without tearing his trousers off. If you want an Expert Advisor and "virginity" of the system, you have to go to a pro. I think 100 bucks is not a problem for you. Shall I give you a list?
konecno daite spisok esli mojno,
spasibo