'Close all'/'Open' tools - page 15

 

help..this one

i try to modif script smjones to the EA......

yes i can make the script to the EA.... buy or sell... in price what i want...

but i want... buy or sell in certain price....

exampel...

buy in GbpUsd.... at price x.xx00

sell in GbpUsd ....at price x.xx10

just to modif variabel.... Entrysell : 10 and EntryBuy :00

and maybe can add or modify... the EA just cek the price... if prce maching with variabel entrybuy/sell... and then OP without pending order

help me pls....

ups.... problem solve.... thks....

 

Auto Limit Trailing EA for profit taking

Is there an EA for triggering a trailing order (with user input small retrace stop) ONLY when price hits user defined profit target? Can anyone write this EA if it isn't one available. Thanks.

 

EA or Script for Friday

Hi,..

long time no see all,...

I have a Question, where I found an Script or EA for NOT Trade on Friday.

many thx.

 
downloadduit:
Hi,..

long time no see all,...

I have a Question, where I found an Script or EA for NOT Trade on Friday.

many thx.

Just add this in your EA at the beginning of the start() function:

if(TimeDayOfWeek(TimeCurrent()) == 6) return(0);

Hope that helps.

FerruFx

 
FerruFx:
Just add this in your EA at the beginning of the start() function:

Hope that helps.

FerruFx

Thank's FerruFX, but my EA is an .ex4 extension, so I can't edit it.

I want my EA stop it on Friday to not trade. Many Thx.

 
downloadduit:
Thank's FerruFX, but my EA is an .ex4 extension, so I can't edit it.

I want my EA stop it on Friday to not trade. Many Thx.

The only thing you can do if your EA is running and you want to stop trading friday but you are not at your PC is to put a note at your agenda and run to push the "Expert Advisor" button.

Hope that helps

FerruFx

 

Help to Remove Notify Message inside the script

//+------------------------------------------------------------------+

//| close.mq4 |

//| Copyright ? 2004, MetaQuotes Software Corp. |

//| Forex Trading Software: Forex Trading Platform MetaTrader 4 |

//+------------------------------------------------------------------+

#property copyright "Copyright ? 2004, MetaQuotes Software Corp."

#property link "http://www.metaquotes.net/"

#property show_confirm

//+------------------------------------------------------------------+

//| script "close first market order if it is first in the list" |

//+------------------------------------------------------------------+

int start()

{

int total = OrdersTotal();

for(int i=total-1;i>=0;i--)

{

OrderSelect(i, SELECT_BY_POS);

int type = OrderType();

bool result = false;

switch(type)

{

//Close opened long positions

case OP_BUY : result = OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red );

break;

//Close opened short positions

case OP_SELL : result = OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red );

}

if(result == false)

{

// Alert("Order " , OrderTicket() , " failed to close. Error:" , GetLastError() );

if(!IsTesting( ) )

Sleep(0);

}

}

return(0);

}

I want to remove notify message prompt out when i apply this script,may i know how?

 
amenlo9:
I want to remove notify message prompt out when i apply this script,may i know how?

Remove this line: #property show_confirm

FerruFx

 

thanks Ferru. .another question

//+------------------------------------------------------------------+

//|1-Click Buy Order.mq4 |

//+------------------------------------------------------------------+

int start()

{

OrderSend(Symbol(), OP_BUY, 1, Ask, 2, Ask-100*Point, Ask+100*Point);

return(0);

}

How to modify this script to become no TP and SL?i try changed Ask-100 to Ask-0 but nothing was happen.i noticed sometimes this script not working when i drag it into chart or press the shortcut key.i try many times but it still not working.any working 1 click buy/sell script here?thanks

 
amenlo9:
thanks Ferru. .another question How to modify this script to become no TP and SL?i try changed Ask-100 to Ask-0 but nothing was happen.i noticed sometimes this script not working when i drag it into chart or press the shortcut key.i try many times but it still not working.any working 1 click buy/sell script here?thanks

OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,comment,magic,0,Blue);

FerruFx

Reason: