thank you for your all help.
i couldn't find why the above program does not modify orders.
maybe orderselection format is wrong but i couldn't find it?
is this programming ??
there are so many things inside your program that it looks like you have no idea what you're doing
int start() { //PIYASADA EMIR YOK ISE İKİ ADET EMİR AÇ //MEVCUT BIDIN //20 PIPS ASAGISINDA SATIM EMRİ AÇ //20 PIPS YUKARISINDA ALIM EMRI AÇ //1000 PIPS TP //500 PIPS STOPLOSS RefreshRates();
what happens as start() is called ??
What is the use of RefreshRates() at this point ??
double XAL=MarketInfo(Symbol(),MODE_ASK); double XSAT=MarketInfo(Symbol(),MODE_BID);
the symbol is same as chart what is Ask what is Bid ?? do you have to call marketinfo ??
double AL=NormalizeDouble(XAL,5); double SAT=NormalizeDouble(XSAT,5);
why is it needed to normalize the price and why with 5 digits
A JPY pair has that also 5 digits ??
while(OrdersTotal()<2)
why do you wanna open new trades for this condition
there is no correct checking what trades your EA has open
if you try to open new orders then you don't check correctly ..... if it happens
and if not why it fails
also i don't understand
if(OrderSelect(OrderTicket(),SELECT_BY_POS)==true) { int X=OrderTicket(); }
what you do with X and later Y
as you can see it makes no sense this orderselect .....
...... Also what follows
int OrderSelecct=OrderSelect(OrderNumber,SELECT_BY_POS); if(Type==OP_BUY && Ask>=Level1) {
why select by pos if you use orderticket do you think it will be 0,1,2 or 3 ?? ......
int Emiral=OrderSend(Symbol(),OP_BUYSTOP,0.1,Ask+30*Point,3,Ask-500*Point,Ask+1000*Point,0); if(OrderSelect(OrderTicket(),SELECT_BY_POS)==true)You can NOT use OrderTicket() until you do a successful OrderSelect.
You look right at some details. But i couldn't work orderselect with selecting ticket number pool.and i changed it to by_ pos. I will Try it again thanks.
slm, dostum, you already assigned the ticket number to emiral or emirsat use them instead of OrderTicket() then use
OrderSelect(emiral,Select_By_Ticket)
slm, dostum, you already assigned the ticket number to emiral or emirsat use them instead of OrderTicket() then use
Wonderfull Turkish. :)
:) yeah just to be noticed only, rest is in the forum way
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
thank you for your all help.
i couldn't find why the above program does not modify orders.
maybe orderselection format is wrong but i couldn't find it?