Join our fan page
Hedge any positions - expert for MetaTrader 5
- Published by:
- Vladimir Karputov
- Views:
- 8241
- Rating:
- 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
Closing positions when reaching a profit level
Hans_Indicator_x62_Cloud_System_Tail_AlertHans_Indicator_x62_Cloud_System_Alert indicator with the level markup extended to the next session
Simultaneous opening of oppositely directed positions
XFisher_org_v1Fisher indicator with an additional smoothing to eliminate the false intersections of the main and signal lines.