Watch how to download trading robots for free
Find us on Telegram!
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
Scripts

Harmonized Pending Hedge of open trades for chart symbol - script for MetaTrader 4

Hedge for of open trades for chart symbol
Published by:
[Deleted]
Views:
2051
Rating:
(3)
Published:
2024.04.02 12:49
Updated:
2024.04.02 12:55
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This script sets pending hedges with distance in pips for chart symbol.

If hedged are 100% harmonized strategy will do nothing,

else calculates difference between Buy and Sell Trades and places a harmonized pending hedge 100%.

Deletes old hedges for symbol and places new ones.

This way can be used as manual trailing pending hedges, when desired.

I use this strategy often, so I consider is useful enough to share it with you. 



    Resize chart window from indicator (for Short Trend Reversal) Resize chart window from indicator (for Short Trend Reversal)

    Changing the size of the chart window is important in my EA, but it may serve as inspiration for others.

    Open Charts of open trades symbols Open Charts of open trades symbols

    Open Charts

    Calculate pip difference over the last N bars Calculate pip difference over the last N bars

    Bars Pips for Chart Symbol and Period selected

    Simple continuous trend-following strategy for buying and selling based on predefined conditions Simple continuous trend-following strategy for buying and selling based on predefined conditions

    Simple continuous trend-following strategy for buying and selling based on predefined conditions