Forex



Go Back   Forex Trading > Downloads > Tools and utilities
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #281 (permalink)  
Old 01-29-2009, 03:03 PM
Junior Member
 
Join Date: Nov 2008
Posts: 1
candela04 is on a distinguished road
Front end trading software

I never post before in this forum, just catching up reading and learning, great forum by the way!. I have a question, does anybody know of a software that will make putting your orders faster than the one provided by metatrader, I mean a front end program like "autotrader", "bracket trader", but just for metatrader, or may be there is an EA that does that?
Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #282 (permalink)  
Old 01-29-2009, 11:02 PM
-MIRACLE-'s Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 17
-MIRACLE- is on a distinguished road
Need help to fix this EA...

Guys i have an Hedge EA but i don't understand why it's always closed all open position when the target profit even that position is opened by another EA. Can somebody help me to give magic number to make this EA work well? So with the magic number the EA only closed the postion that opened by itself. Hope there is someone around here can help me....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #283 (permalink)  
Old 01-29-2009, 11:10 PM
-MIRACLE-'s Avatar
Junior Member
 
Join Date: Nov 2008
Posts: 17
-MIRACLE- is on a distinguished road
Here's the EA mq4 Code...

Well i there is another people help me with this EA it gives magic number but now the problem is this EA only Open one position on second pair only that is USDCHF. I don't know why it doesn't open position on the first pair EURUSD?
Can somebody help me? Here's the script...


//---- input parameters
extern double Lot1=0.1;
extern double Lot2=0.1;
extern string Sym1="EURUSD";
extern string Sym2="USDCHF";
extern string Operation1="buy";
extern string Operation2="buy";
extern double Commission1=0.0;
extern double Commission2=0.0;
extern double Profit=10;
extern bool UseMM=true;
extern double Delta=750;
extern double MagicNumber=1234;
int OP1=-1, OP2=-1;


double Ilo1=0, Ilo2=0;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//init global variables
if (!GlobalVariableCheck("_CanClose")) {
GlobalVariableSet("_CanClose",0);
}
//if (!GlobalVariableCheck("_CanSet")) {
//GlobalVariableSet("_CanSet",0);
//}



//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
Ilo1=Lot1; Ilo2=Lot2;
if (UseMM) {
Ilo1=TradeLot(AccountBalance());
Ilo2=TradeLot(AccountBalance());
}


//----
double Commissions=0;


if (Operation1=="buy" || Operation1=="BUY") OP1=OP_BUY;
if (Operation2=="buy" || Operation2=="BUY") OP2=OP_BUY;
if (Operation1=="sell" || Operation1=="SELL") OP1=OP_SELL;
if (Operation2=="sell" || Operation2=="SELL") OP2=OP_SELL;


if (OP1<0 || OP2<0) {
Comment("Wrong operation selected, aborted...");
return;
}


if (GlobalVariableGet("_CanClose")==1 && CntOrd(OP1,0,Sym1)==0 && CntOrd(OP2,0,Sym2)==0) {
GlobalVariableSet("_CanClose",0);
}


if (GlobalVariableGet("_CanClose")==0) {
//Set intitial orders
SetOrders();
}



Comment("Balance=",AccountBalance(),"\n",Sym1," Lot=",Ilo1," ",Sym2," Lot=",Ilo2,"\nFloating profit=",CalcProfit()," Expected profit=",Profit*Ilo1*10);
//Check for profit
Commissions=Commission1*Ilo1+Commission2*Ilo1;

if ( (CalcProfit()-Commissions) >= (Profit*Ilo1*10) ) {
GlobalVariableSet("_CanClose",1);
}

CloseAll();


//----
return(0);
}
//+------------------------------------------------------------------+


double CalcProfit() {
//Calculating profit for opened positions
int cnt;
double _Profit;
_Profit=0;

for(cnt=0; cnt<OrdersTotal(); cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol()==Sym1 || OrderSymbol()==Sym2) {
_Profit=_Profit+OrderProfit();
}
}
return(_Profit);
}

void CloseAll() {
int _total=OrdersTotal(); // number of orders
int _ordertype;// order type
if (_total==0) {return;}
int _ticket; // ticket number
double _priceClose;// price to close orders;
//Closing all opened positions
if (GlobalVariableGet("_CanClose")==1) {

for(int _i=_total-1;_i>=0;_i--)
{
if (OrderSelect(_i,SELECT_BY_POS))
{
_ordertype=OrderType();
_ticket=OrderTicket();
switch(_ordertype)
{
case 0:
// close buy
_priceClose=MarketInfo(OrderSymbol(),MODE_BID);
Print("Close on ",_i," position order with ticket ¹",_ticket);
OrderClose(_ticket,OrderLots(),_priceClose,0,Red);
break;
case 1:
// close sell
_priceClose=MarketInfo(OrderSymbol(),MODE_ASK);
Print("Close on ",_i," position order with ticket ¹",_ticket);
OrderClose(_ticket,OrderLots(),_priceClose,0,Red);
break;
default:
// values from 1 to 5, deleting pending orders
Print("Delete on ",_i," position order with ticket ¹",_ticket);
OrderDelete(_ticket);
break;
}
}
}


}
return;
}



void SetOrders() {
//Setting initial orders
double OpenPrice=0;

if (CntOrd(OP1,0,Sym1)==0) {
if (OP1==OP_BUY) OpenPrice=MarketInfo(Sym1,MODE_ASK);
if (OP1==OP_SELL) OpenPrice=MarketInfo(Sym1,MODE_BID);
OrderSend(Sym1,OP1,Ilo1,OpenPrice,0,0,0,"HT",Magic Number,0,Red);
//return;
}

if (CntOrd(OP2,0,Sym2)==0) {
if (OP2==OP_BUY) OpenPrice=MarketInfo(Sym2,MODE_ASK);
if (OP2==OP_SELL) OpenPrice=MarketInfo(Sym2,MODE_BID);
OrderSend(Sym2,OP2,Ilo2,OpenPrice,0,0,0,"HT",Magic Number,0,Green);
//return;
}



}



int CntOrd(int Type, int Magic, string Symb) {
//return number of orders with specific parameters
int _CntOrd;
_CntOrd=0;
for(int i=0;i<OrdersTotal();i++)
{
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);

if (OrderSymbol()==Symb) {
if ( (OrderType()==Type && (OrderMagicNumber()==Magic) || Magic==0)) _CntOrd++;
}
}
return(_CntOrd);
}

double TradeLot(double MyBalance) {
double _Ilo=0;
//AccountEquity()
_Ilo=MathFloor(MyBalance/Delta)/10;
if (_Ilo<0.1) _Ilo=0.1;
return (_Ilo);

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #284 (permalink)  
Old 02-06-2009, 06:36 AM
AAD's Avatar
AAD AAD is offline
Member
 
Join Date: Feb 2008
Posts: 52
AAD is on a distinguished road
Lightbulb

Hi guys,

The "BuySellCloseModify + BasketTrades [Script]" can quickly Open, Modify, or Close any number of Buy/Sell order(s). It also has Money Management, Hedging, and Basket Trade options. I know it's loaded with options but I needed something that had all the trading options I required at any given moment...

__________________
Pipping ain't easy but someone's got to do it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #285 (permalink)  
Old 02-07-2009, 03:48 PM
Junior Member
 
Join Date: Sep 2008
Posts: 6
dryclean is on a distinguished road
Looking for a Script

I'm looking for a script that will

Take the High (buy stop script) or the low (Sell Stop Script) of the previous candle.

Buy Stop script
When the price breaks to the high side 3 pips above the trigger candle's high a stop is placed 5 pips below the low of the same candle. Now this is the previous candle

Sell Stop Script
When the price breaks to the low side 3 pips below the trigger candles low a stop is placed 5 pips above the high of the same candle. now this is the previous candle

In the picture this is an exampl of a buys stop
a buy stop would be place at 119.23
with a S/L of 118.73 with is the candles low -5
Attached Images
File Type: gif untitled.GIF (65.4 KB, 343 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #286 (permalink)  
Old 02-10-2009, 09:37 PM
Member
 
Join Date: Oct 2008
Posts: 68
wall03 is on a distinguished road
Code mq4 who help me for application.... percentEquitytrailing

who help me ! I would an ea that closes all trades open
whit percentEquitytrailing 0,40 % in my account.
The trades are put manually ! Is it possible ? thank you !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #287 (permalink)  
Old 02-10-2009, 10:01 PM
Junior Member
 
Join Date: Aug 2007
Posts: 2
bzman is on a distinguished road
How can I close all open trades at once?

Please can anybody tell me if there is any software that can close all open trades at one click in MT4

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #288 (permalink)  
Old 02-10-2009, 11:21 PM
Senior Member
 
Join Date: Jun 2006
Posts: 1,512
prasxz is on a distinguished road
hi

if I'm not forgot that script already discuss in this forum , you can find using search tool

===================
Forex Indicators Collection
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #289 (permalink)  
Old 02-11-2009, 12:14 AM
matfx's Avatar
Senior Member
 
Join Date: Sep 2007
Posts: 510
Blog Entries: 3
matfx is on a distinguished road
Quote:
Originally Posted by bzman View Post
Please can anybody tell me if there is any software that can close all open trades at one click in MT4

Thanks
You may use the script over here 'Close all'/'Open' tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #290 (permalink)  
Old 02-11-2009, 02:44 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by wall03 View Post
who help me ! I would an ea that closes all trades open
whit percentEquitytrailing 0,40 % in my account.
The trades are put manually ! Is it possible ? thank you !
Try e-CloseByPercentProfit.mq4. It's on current thread.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
close, close all, Close all open positions.mq4, close all position script, close all positions, close all positions in MT4, close all script, close all trades, closeall, ddetool, forex, mt4 close all script, mt4 close all trades, open close, pending order ea, profit, script, scripts, stomper, stop, tools, trades, trailing


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 06:37 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 10:41 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 06:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 08:20 AM


All times are GMT. The time now is 08:09 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.