hedger - expert for MetaTrader 5




hedger - expert for MetaTrader 5


Idea by: eugene-last

mq5 code by: barabashkakvn

The EA hedges a too losing position.

Suppose thereis an open BUY position on a given symbol (the position has been opened by another EA or manually). As soon as the losses on this position, in pips, exceed the pre-defined level of Drawdown (opening a hedge), the EA will open a hedging SELL position with the same lot size. Then that new SELL position will be tracked and, as soon as its losses, in pips, exceed the predefined level of Drawdown (closing the hedge), the EA will close that hedging SELL position.

hedger

To demonstrate how it works, a BUY position opening operation was added for the TESTER mode only.


Download hedger - expert for MetaTrader 5




Related News




Latest News
'Can I actually say something?' Unflappable expert takes on lawmakers in Trump hearing
22.11.2019 00:27
By Patricia Zengerle and Doina Chiacu WASHINGTON (Reuters) - A British-born U.S. national security expert never lost her cool during hours parrying heated questions from the House of Representatives Intelligence Committee on Thursday, and emerged as the latest star of the congressional impeachment inquiry. Fiona Hill, who resigned in July after 2
Read more
Microsoft granted license to export 'mass-market' software to Huawei
22.11.2019 00:24
By Stephen Nellis and Alexandra Alper (Reuters) - Microsoft Corp (O:MSFT) said on Thursday it had been granted a license from the U.S. government to export software to Huawei Technologies Co Ltd. "On November 20, the U.S. Department of Commerce granted Microsoft's request for a license to export mass-market software to Huawei. We
Read more
Chinese national indicted in U.S. on economic espionage charges: Justice Dept
22.11.2019 00:21
WASHINGTON (Reuters) - A Chinese national who worked for Monsanto (NYSE:MON) before it was purchased by Bayer AG (DE:BAYGN) was indicted on Thursday on charges of stealing trade secrets, the U.S. Justice Department said. Haitao Xiang, 42, who was employed by Monsanto from 2008 to 2017, was stopped by federal officials at a U.S. airport before he
Read more
U.S. States Boost Spending at Fastest Pace Since Recession
22.11.2019 00:18
(Bloomberg) -- America’s states are increasing their spending at the fastest pace since the end of the Great Recession. Their budgets swelled by 5.9% in the 2019 fiscal year to about $2.1 trillion, the biggest annual increase since the recession ended in 2009, according to a report Thursday by the National Association of State Budget Officers.
Read more
Forget Brexit. The U.K. Election Is About the Fate of the NHS
22.11.2019 00:15
(Bloomberg) -- When Britons go to the polls Dec. 12, the rest of the world will view the tally as a plebiscite on the U.K.’s departure from the European Union. In the streets of London and throughout the country of 66 million, there’s something quite different on many voters’ minds: the fate of the National Health Service. The NHS is a symbol of
Read more