CloseAllOrders - script for MetaTrader 5

CloseAllOrders - script for MetaTrader 5

The script deletes all pending orders on all symbols at a time. Script input parameters: //+----------------------------------------------+ //| SCRIPT INPUT PARAMETERS                     | //+----------------------------------------------+ input uint RTOTAL=4;        // Number of attempts in case of
CloseOrdersBySymbolByType - script for MetaTrader 5

CloseOrdersBySymbolByType - script for MetaTrader 5

The script deletes all orders of the type specified in settings, on the current symbol. Script input parameters: //+----------------------------------------------+ //| SCRIPT INPUT PARAMETERS                     | //+----------------------------------------------+ input ENUM_ORDER_TYPE_  OrderType_=ORDER_TYPE_BUY_LIMIT_; // Order type
Modify SL TP - script for MetaTrader 5

Modify SL TP - script for MetaTrader 5

This script is used to modify the Stop Loss and Take Profit of current symbol position. The new Stop Loss and Take Profit are based on the market price. If the inputs are 0, there will be no modification.
CloseAllPositions - script for MetaTrader 5

CloseAllPositions - script for MetaTrader 5

The script closes all open positions on the current account.
ClosePositionsBySymbol - script for MetaTrader 5

ClosePositionsBySymbol - script for MetaTrader 5

The script closes all positions of the current symbol.
HistorySelectByPosition - script for MetaTrader 5

HistorySelectByPosition - script for MetaTrader 5

An example of using HistorySelectByPosition (based on the HistoryDealGetTicket use example). Position identifier is set as the input parameter. Next, the script attempts to create a list of orders and deals with the specified identifier.  Script operation example: 0: deal #116488443 at 2017.02.07 12:55:56 Enter, buy 0.03 EURUSD (order #132873637, position ID 132873637) 1: deal #116488540 at 2017.02.07 12:56:38 Close by, sell 0.01 EURUSD
MT5 to MT4 Set File Converter - script for MetaTrader 5

MT5 to MT4 Set File Converter - script for MetaTrader 5

This script converts multiple .set files from MT5 format to MT4 format. This is a necessary step for optimizing and running cross-compatible EAs. MetaTrader 5 is able to load .set files created in MT4, however, the format it saves set files in is not compatible with MetaTrader 4. This script acts as a useful tool to make .set files backwards compatible, so you can take advantage of MT5s better strategy tester then run a cross-compatible EA on
BufferInspector - script for MetaTrader 5

BufferInspector - script for MetaTrader 5

This script allows you to see all buffers, even those which are hidden and are used for calculations. The output uses the following format: INDICATOR_NAME [BUFFER_INDEX] [POSITION_INDEX] = VALUE Note: ‌both indexes start at 0.
Reconstruction of positions - script for MetaTrader 5

Reconstruction of positions - script for MetaTrader 5

Reconstruction of positions — an example of working with a trading history on Hedge accounts. An example of the final output: position #0 DEAL_ENTRY_IN, type DEAL_TYPE_BUY, price 1.04552, Deal EURUSD, volume 0.03, DEAL_POSITION_ID #119707903, profit 0.00 DEAL_ENTRY_OUT_BY, type DEAL_TYPE_SELL, price 1.04562, Deal EURUSD, volume 0.02, DEAL_POSITION_ID #119707903, profit 0.20 DEAL_ENTRY_OUT_BY, type DEAL_TYPE_SELL, price 1.04534, Deal EURUSD,
StopAndTake MT5 - script for MetaTrader 5

StopAndTake MT5 - script for MetaTrader 5

When run on the price chart, the script modifies stop loss or take profit of all open orders for the current instrument. Example: If multiple buy positions are opened on the GBPUSD pair, dragging the script to the chart below the current price causes the stop loss levels of all open positions to be modified, and dragging it above the current price causes the take profit levels to be modified.



Latest News

HSBC Cites Rules as Protest-Linked Account Reportedly Shut
Today, 10:12
(Bloomberg) -- HSBC Holdings (LON:HSBA) Plc (NYSE:HSBC) pointed to routine regulatory requirements to ensure client money is used for stated purposes after a report Monday that the firm is shutting a corporate account that helped fund protest-related activities in Hong Kong -- a politically sensitive issue. The bank took action after finding the account was being used inconsistently with its original paperwork, the Hong Kong Economic Journal ..
Read more

German business lobby, labor union jointly call on Berlin to boost public investment
Today, 10:09
BERLIN (Reuters) - Germany's BDI industry association and the DGB trade union called in a rare joint statement on Monday for the government to rethink its budget priorities and massively boost public investment to make Europe's largest economy fit for future growth. The unusual move by Germany's most influential business lobby group and the country's largest umbrella union show how much public debate has shifted in a country ..
Read more

Morgan Stanley Sees U.S. Underperforming in 2020 Across Markets
Today, 10:06
(Bloomberg) -- Morgan Stanley (NYSE:MS) predicted that American equities and corporate bonds will underperform peers next year, while the dollar weakens as growth outside the U.S. picks up. “We see the biggest potential upside in markets with a clearer path to achievable earnings growth (Japan and EM) or scope for some multiple re-rating on falling political risks (Europe),” strategists including Andrew Sheets, Michael Wilson and Matthew ..
Read more

Apple iPhone 11 Scores Early China Success, Official Data Shows
Today, 10:03
(Bloomberg) -- Chinese consumers are rediscovering their appetite for iPhones. Apple Inc. (NASDAQ:AAPL) shipped 10 million iPhones in China during September and October, based on Bloomberg’s calculations from government data on overall and Android device shipments. That’s the first indication of the company’s performance following the autumn release of its latest gadgets, and it shows iPhone shipments up 6% from a year earlier, ..
Read more

MTN deal with Cell C knocks shares in South Africa's Telkom
Today, 09:15
JOHANNESBURG (Reuters) - South Africa's MTN Group (J:MTNJ) has signed an expanded roaming and services agreement with the country's third-biggest carrier Cell C, MTN said on Monday, pushing shares in rival Telkom (J:TKGJ) down more than 5%. The deal puts a dampener on Telkom's proposed takeover of Cell C, which is owned by Blue Label Telecoms (J:BLUJ) and is struggling under the weight of hefty debts, which it announced on Friday. ..
Read more

Crypto backed by crypto: Dai seeks to change 'stablecoin' game
Today, 09:12
By Tom Wilson LONDON (Reuters) - Some are backed by dollars. Others by gold. But this "stablecoin" isn't tied to any major asset - it's backed by another cryptocurrency. Stablecoins, such as Facebook's (O:FB) Libra, are a new breed of cryptocurrencies that aim to escape the wild price swings that make bitcoin unworkable for commerce. They base their value on more stable underlying assets, typically traditional currencies ..
Read more

Etihad Airways still has long way to go to become profitable: Group CEO
Today, 09:09
DUBAI (Reuters) - Abu Dhabi-based Etihad Airways still has a long way to go to become profitable, Group CEO Tony Douglas said on Monday. "We are slightly ahead of where we plan to be. And if we stay focused will see a very strong Etihad," Douglas told reporters. Etihad suffered its third consecutive annual loss in 2018 despite cost savings of nearly half a billion dollars as it cut its workforce and fleet. Etihad, which has trimmed its ambitions ..
Read more
" template="news2" category="16" available="global" from="0" limit="5" order="date" sort="desc" cache="no"}