coding in mql - hedging & more
Budget: €250 – €750 EUR
this is one of the 4 required tasks
Hedging: instead of closing a losing position by SL, an opposite direction position compared to the opened one has be executed. Then, we must wait that:
• One position gets in profit, the originally losing or the hedged one, indifferently
• A signal to open a position in an opposite direction compared to a profitable hedging involved position is received (the signal has to be directed in the losing position direction and close a profitable position, if available).
• In case algo gets a simultaneous signal to close a hedged profitable position and open a new position, the first prevails
• Only one profitable hedging position can be closed at a time and any time by a different profitable hedging closing signal
Hedging process closure:
1. “Hedging process pip gain”: it’s a selectable value for net pip gain of the hedging process, considering overnight & trading commissions and spreads
2. Minimum hedging distance (optional)
3. Re-hedging: till “hedging pip gain” is not reached after both a (or a series of) successful and an unsuccessful hedging closure, the unhedged position has to be hedged again. So, after the closing of a position involved in the hedging process, till “hedging pip gain” is not reached the whole position is always flat.
4. Optional: all hedging trades having the same direction are merged till a maximum selectable value of the position size
Hedging: instead of closing a losing position by SL, an opposite direction position compared to the opened one has be executed. Then, we must wait that:
• One position gets in profit, the originally losing or the hedged one, indifferently
• A signal to open a position in an opposite direction compared to a profitable hedging involved position is received (the signal has to be directed in the losing position direction and close a profitable position, if available).
• In case algo gets a simultaneous signal to close a hedged profitable position and open a new position, the first prevails
• Only one profitable hedging position can be closed at a time and any time by a different profitable hedging closing signal
Hedging process closure:
1. “Hedging process pip gain”: it’s a selectable value for net pip gain of the hedging process, considering overnight & trading commissions and spreads
2. Minimum hedging distance (optional)
3. Re-hedging: till “hedging pip gain” is not reached after both a (or a series of) successful and an unsuccessful hedging closure, the unhedged position has to be hedged again. So, after the closing of a position involved in the hedging process, till “hedging pip gain” is not reached the whole position is always flat.
4. Optional: all hedging trades having the same direction are merged till a maximum selectable value of the position size