futureseer:
buy 10 pips or 10 ticks can you explain that
please handy code to open order buy 10 pips or 10 ticks above the current open order,please help me see what i have done so far
but it seems as its not working as i want.
if( ma1 > Bid + (10*Point)&& CurrentTime != Time[1])
{
Opn_B=true;
}
goverkms:
buy 10 pips or 10 ticks can you explain that
Goverkms for example my ea opened buy order, I want the ea to open next order 10pips steps above my buy price. Or bid price.
buy 10 pips or 10 ticks can you explain that
Goverkms for example my ea opened buy order, I want the ea to open next order 10pips steps above my buy price. Or bid price.
it's clear but what about ticks
goverkms:
it's clear but what about ticks
No ignore that all I mean is pips steps above my buy price line.thanks for your attention
it's clear but what about ticks
No ignore that all I mean is pips steps above my buy price line.thanks for your attention
if( ma1 > Ask + (10*Point)&& CurrentTime != Time[1])
{
Opn_B=true;
}
{
Opn_B=true;
}
goverkms:
if( ma1 > Ask + (10*Point)&& CurrentTime != Time[1])
{
Opn_B=true;
}
if( ma1 > Ask + (10*Point)&& CurrentTime != Time[1])
{
Opn_B=true;
}
Thanks goverkms I will try it now finally please goverkms how can close all my buy orders when pips reach 40pip above buy order. See what I have done so far to help me correct it if am wrong
its working but my problem is it only closes 2pip only above buy but when you set the value 40pips it will ignore the orders opened.
if ( profit * Lot + MarketInfo( Symb, MODE_TICKVALUE ) >=2) { for(Ticket= OrdersTotal()-1; Ticket>=0; Ticket--) { if(OrderSelect(Ticket,SELECT_BY_POS, MODE_TRADES)==true) if(OrderSymbol()!=Symbol()) // if symbol of order didn't match continue; // or the magic numb of order int type = OrderType(); Bool result = false; switch(type) { //Close opened long positions case OP_BUY : result = OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_ASK),Slippage,Pink); break; //Close pending orders case OP_BUYLIMIT : case OP_BUYSTOP : case OP_SELLLIMIT : case OP_SELLSTOP : result = OrderDelete( OrderTicket() ); } if(result == false) { Sleep(3000); } } Return(0); }
i dont see any OP_buy case
goverkms:
i dont see any OP_buy case
Sorry actually this is two eas with separate magic numbers that handle orders separately but same system I actually removed it against interfering or close each others positins on same symbol
But goverkms you can go ahead with the correction I will understand and make the changes accordingly,its just I don't want to bore you with heaps of codes, Because your only wanted to helping and I have knowledge of mql4 code to an extent .or you can add the case OP_BUY any how I will understand. Thanks in advance for your assistance
i dont see any OP_buy case
Sorry actually this is two eas with separate magic numbers that handle orders separately but same system I actually removed it against interfering or close each others positins on same symbol
But goverkms you can go ahead with the correction I will understand and make the changes accordingly,its just I don't want to bore you with heaps of codes, Because your only wanted to helping and I have knowledge of mql4 code to an extent .or you can add the case OP_BUY any how I will understand. Thanks in advance for your assistance
i cant get it why you show me wrong code? i'll try to help, just show code which need to correct
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
please handy code to open order buy 10 pips or 10 ticks above the current open order,please help me see what i have done so far
but it seems as its not working as i want.
if( ma1 > Bid + (10*Point)&& CurrentTime != Time[1])
CurrentTime= Time[1];{
Opn_B=true;
}