Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

Hedge any positions - expert for MetaTrader 5

Published by:
Vladimir Karputov
Views:
8241
Rating:
(25)
Published:
2018.12.28 12:57
Updated:
2019.01.17 11:29
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Author of the idea - Sam

Code mq5 by: barabashkakvn

The EA works on hedge accounts only!

The EA tracks all positions regardless of the symbol or magic number.

As soon as a position (opened by another EA or manually) features a loss exceeding or equal to Losing, an opposite position is opened. The volume of the opened position is calculated considering Lot coefficient.

For each position (opened by another EA or manually), the "Hedge any positions" EA opens an opposite position ONLY ONCE.

Please note that the EA simply sets the opposite position once without Stop Loss and Take Profit.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/22823

Close all positions Close all positions

Closing positions when reaching a profit level

Hans_Indicator_x62_Cloud_System_Tail_Alert Hans_Indicator_x62_Cloud_System_Tail_Alert

Hans_Indicator_x62_Cloud_System_Alert indicator with the level markup extended to the next session

Doubler Doubler

Simultaneous opening of oppositely directed positions

XFisher_org_v1 XFisher_org_v1

Fisher indicator with an additional smoothing to eliminate the false intersections of the main and signal lines.