ONLINE Business - Trading System

SEARCH
Friends
NOD32 KEY & UPDATE EseT.UcoZ.CoM/
Stat

Online: 1
Guests: 1
User: 0
Menu
Categories
Forex Books [12]
Here you can download free FOREX e-books. The information in these Forex e-books will help you develop your trading skills, money management abilities and self-control. The Forex e-books are in .pdf format. You'll need Adobe Acrobat Reader to open these e-books. You can get Adobe Acrobat Reader from here. Some of the e-books (those that are in parts) are zipped.
MetaTrader 4 Expert Advisors [31]
Here you can download MT4 expert advisors which can be used with the MetaTrader Forex trading platform to enhance your currency trading results combining it with the automated trading or expert advising. Only best strategies embedded into expert advisors are presented here. You can test and change them freely before using on your real or demo Forex account.
MetaTrader 4 Forex Indicators [15]
At this page you can freely download MT4 Forex indicators that can be attached to the MetaTrader Forex trading platform to boost your Forex trading performance. You can more develop your own Forex trading strategies using these indicators, or you can simply follow them as the trading signals.
MT4 System [8]
Automatic Forex Expert Advisor Trading System MT4
Home » Files » Forex » MT4 System

Close Orders
(7.1Kb)
Close all multi currency open orders and cancel pending orders
according to various scenarios. Slippage for open orders is calculated
for each currency.
Choose only one scenario per visit, the script processes the first menu item selected.



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

//| _CloseOpenOrders.mq4 |
//| Copyright © 2007, sx ted |
//| Purpose: Close all multi currency open orders for Rich. |
//| Slippage is calculated for each currency. |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, sx ted"
#property show_confirm // Rich remove this line to make it faster but be careful to select the right script

//+------------------------------------------------------------------+
//| EX4 imports |
//+------------------------------------------------------------------+
#include <stdlib.mqh>

//+------------------------------------------------------------------+
//| global variables to program: |
//+------------------------------------------------------------------+
double Price[2];
int giSlippage;

//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
void start() {
int iOrders=OrdersTotal()-1, i;

for(i=iOrders; i>=0; i--) {
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES) && (OrderType()<=OP_SELL) && GetMarketInfo() && !OrderClose(OrderTicket(),OrderLots(),Price[1-OrderType()],giSlippage)) OrderError();
}
}

//+------------------------------------------------------------------+
//| Function..: OrderError |
//+------------------------------------------------------------------+
void OrderError() {
int iError=GetLastError();
Print("Order:",OrderTicket()," GetLastError()=",iError," ",ErrorDescription(iError));
}

//+------------------------------------------------------------------+
//| Function..: GetMarketInfo |
//| Returns...: bool Success. |
//+------------------------------------------------------------------+
bool GetMarketInfo() {
RefreshRates();
Price[0]=MarketInfo(OrderSymbol(),MODE_ASK);
Price[1]=MarketInfo(OrderSymbol(),MODE_BID);
double dPoint=MarketInfo(OrderSymbol(),MODE_POINT);
if(dPoint==0) return(false);
giSlippage=(Price[0]-Price[1])/dPoint;
return(Price[0]>0.0 && Price[1]>0.0);
}
//+------------------------------------------------------------------+
30.11.2012 Spam
3. Steve
I have gone ahead and included a hyperlink
back to your webpage from one of my clientele requesting
it. I have used your blog URL: http://online-fx.
do.am/load/5-1-0-43 and blog title: Close Orders - MT4 System - Forex - DOWNLOAD to make
sure you get the proper anchor text. If you woud like
to see where your website link has been placed, please contact me at:
steve_spears@gmail.com. Thanks alot :)

http://www.podclass.com/i80equipment/

1-1 2-2 3-3
Name *:
Email *:
Code *: