День добрый!
Мой знакомый трейдер - Билл с ФФ, выпустил 7 версию Hedge-панели для ручной торговли.
Софт в прицепе, пользуйтесь во благо своего депозита
Если ваш брокер заботится о ваших деньгах, а не только о себе, и предоставляет возможность использовать функцию CloseBy для встречного закрытия ордеров, то вы будете экономить спред на операциях закрытия и получите более комфортную цену, избегая проскальзывания.
Успехов!
----------------------- краткое описание свойств советника ----------------------------------------
New Version, please test it and let me know if there are any issues.
As usual, extract everything into the MQL4/Experts folder and restart MT4.
This is important, if you are copying all files on top of a previous installation, then allow the old files to be overwritten (otherwise it will not pickup the changes we have done since the last update).
This version has
1. a Break Even Button
There is an input in the settings for the default status of this button (ON or OFF)
If you set it to OFF in the settings you can toggle it ON and visa versa.
2. An automatic Hedging feature (to use instead of the SL).
When input Automatic Hedging=true, the EA will hedge an open trade when it reaches a predetermined number of -ve pips.
(enter the hedgingSL pips in the settings)
3. Automated Trade size.
If the input "Automatic Trade Size=true) the EA will use the following 2 inputs
plus our account equity to calculate our trade size.
Trade1PipsForRiskPercent
Trade1RiskPercent
It will then adjust the trade size shown in the LOTS window of the panel.
If you don't like the default size you'll get, then change the input Trade1PipsForRiskPercent to 200 or 300 etc.
The EA accounts you'll see in my trade explorer, have this input set to 800 because for this type of trading I want the trade size to be very small.
I use this feature in all of my trading (manual + automated) because pip value differs significantly between currencies and I want my traded size to change up Or down automatically without me having to run a spreadsheet to see what size I will use for the various pairs I trade.
The other advantage is that it looks at our equity and it will increase our trade size as our account grows.
This makes our trading more efficient because we are not stuck in 1 trade size for too long.
i.e. We don't over-trade in some pairs (taking too much risk) and Under-trade in other pairs (reducing our profits).
4. Automatic Closing of orders using the "Orders By CloseBy" function
In Symbol Basket bas4 I have added a new input: "Close Orders By CloseBy"
When this input = true, the EA basically automatically activates the HEDGE button
and then the CLOSE HEDGED button and closes all trades using the CloseBy function
So when 3 or more trades reach the TP target we have entered in the bas4 settings,
the EA will close all (same currency)trades using the Closeby function.
If this input=false the EA will close the trades normally.
Q: {quote} why is 3 the smallest number of trades to activate the automatic closing? In my case, at times I don't need to open more than 2
A: When I added this feature I was only thinking of trade recovery which could be 5 or 10 or more trades.
Have a play with it, if you are only looking to close 1 or 2 trades quickly when you are in profit, the other 2 basket closures should do it quickly enough.
However I can add this feature to the other levels as well.I will do it as soon as I have confirmation that all other functions are Ok.
Btw, One feature which I forgot to mention for anyone who is trading Gold, the Dax or other indices
is the addition of a section for special instruments like Gold, Copper, Dax etc. Those inputs are specifically there for the automatic trade size calculation so if you change your MT4 chart to Gold or the Dax the dashboard should adjust its trade size according to the divisor input.
For my broker the XAUUSD divisor needs to be 10 otherwise my trade size would be x10 what it should be.