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

Exclusive: Italian government leaning towards third term for Eni CEO - sources
Today, 18:24
By Giuseppe Fonte, Stephen Jewkes and Giselda Vagnoni ROME/MILAN (Reuters) - The Italian government is leaning toward reappointing Claudio Descalzi as CEO of state-controlled oil firm Eni, provided he will work with a new board to speed up efforts to cut carbon emissions, four senior political sources told Reuters. The largest member of the ruling coalition, the anti-establishment 5-Star Movement, has been highly critical of the veteran oilman ..
Read more

Denmark stocks higher at close of trade; OMX Copenhagen 20 up 0.10%
Today, 18:21
Investing.com – Denmark stocks were higher after the close on Monday, as gains in the Personal & Household Goods, Real Estate and Healthcare sectors led shares higher. At the close in Copenhagen, the OMX Copenhagen 20 added 0.10% to hit a new all time high. The best performers of the session on the OMX Copenhagen 20 were Pandora A/S (CSE:PNDORA), which rose 1.17% or 4.0 points to trade at 345.0 at the close. Meanwhile, Royal Unibrew A/S ..
Read more

Russia's Lavrov, after Pompeo meeting, says felt more constructive U.S. approach
Today, 18:18
MOSCOW (Reuters) - Russian Foreign Minister Sergei Lavrov said on Monday after meeting U.S. Secretary of State Mike Pompeo last week that he had felt a more constructive approach from Washington when it came to the U.S.-Russia strategic dialogue. The two top diplomats met on the sidelines of the Munich Security Conference on Friday in an encounter that neither side has so far spoken about in detail. "I felt certain small moves toward a more ..
Read more

Israel stocks lower at close of trade; TA 35 down 0.16%
Today, 18:15
Investing.com – Israel stocks were lower after the close on Monday, as losses in the Biomed, Oil & Gas and Technology sectors led shares lower. At the close in Tel Aviv, the TA 35 fell 0.16%. The best performers of the session on the TA 35 were Harel (TASE:HARL), which rose 3.36% or 80 points to trade at 2460 at the close. Meanwhile, Airport City Ltd (TASE:ARPT) added 2.45% or 165 points to end at 6890 and Bezeq Israeli Telecommunication Corp ..
Read more

ICC trial in The Hague one option for Sudan's Bashir: minister
Today, 18:12
KHARTOUM (Reuters) - Sudan could send former leader Omar al-Bashir and other suspects to The Hague for trial before the International Criminal Court, but any decision would need approval from military and civilian rulers, the information minister said on Monday. "One possibility is that the ICC will come here so they will be appearing before the ICC in Khartoum, or there will be a hybrid court maybe, or maybe they are going to transfer them ..
Read more

Jackets, Flyers to battle in first game of home-and-home
Today, 18:09
The tables have turned on the formerly white-hot Columbus Blue Jackets, who answered a scintillating 18-2-3 run by dropping five in a row (0-2-3). The Blue Jackets look to avert a season-worst losing streak on Tuesday in the opener of a home-and-home series against the host Philadelphia Flyers. Columbus' latest loss was not for a lack of trying, however. The Blue Jackets unleashed 55 shots on goal in their 4-3 shootout setback to New Jersey ..
Read more

Angels' Trout says he 'lost respect' for Astros
Today, 18:06
Los Angeles Angels star Mike Trout said he "lost respect" for players involved in the Houston Astros' sign-stealing scandal. "They cheated. ... I don't agree with the punishment," Trout told reporters Monday at the Angels' spring training facility in Tempe, Ariz. "I lost respect for some of those guys." A Major League Baseball investigation concluded that the Astros stole signs throughout the 2017 season and continued to do so for ..
Read more

UK PM Johnson's office silent as rivals call for adviser to be sacked
Today, 18:03
LONDON (Reuters) - British Prime Minister Boris Johnson's spokesman refused to comment on Monday when asked about the hiring of an adviser who has discussed the benefits of forced contraception and said data showed the U.S. black population had lower IQ than white people. British media reported that Andrew Sabisky had been hired by Johnson's office to an unspecified role. His appointment drew criticism from rival parties after the Mail ..
Read more

Armed men in military fatigues kill 22 in Cameroon village
Today, 17:27
DOUALA, Cameroon (Reuters) - Gunmen in military fatigues and masks have killed 22 people in a village at the heart of a separatist insurgency in western Cameroon, shooting women and children and burning others in their homes, the United Nations said on Monday. Cameroon's army has since 2017 been fighting English-speaking militias seeking to form a breakaway state called Ambazonia amid the cocoa farms and forests of west Cameroon. As ..
Read more

Snubbed by Gulf, Lebanon's PM Diab hosts Iranian official
Today, 17:24
BEIRUT (Reuters) - Lebanon's Prime Minister Hassan Diab, who is getting the cold shoulder from Gulf Arab states, on Monday met Iran's parliament speaker, the first senior foreign official to visit since Diab's government took office. The heavily armed Hezbollah, an ally of Iran, is a main backer of Diab's cabinet, which took office last month after efforts failed to strike a deal with Saad al-Hariri, a traditional Western ..
Read more
" template="news2" category="16" available="global" from="0" limit="5" order="date" sort="desc" cache="no"}