You can enable DDE in MetaTrader 4 by going to:
Tools > Options > ‘Server’ tab > select ‘Enable DDE Server’
You can then get an example DDE spreadsheet by going to:
[your local disk]\Program Files\MetaTrader
In there you will find the DDE-Sample.xls file which you can experiment with.
The spreadsheet I use has some of the following variables in it:
• the percentage of capital I wish to risk (typically between 1% and 5%)
• the currency pair I am trading and its bid price (streamed in real-time)
• the GBPUSD exchange rate
• long or short in the market
• entry price
• stop loss
• profit target
The output which is of use to me from this is:
• the R-value (or Risk Value, which is essentially the reward to risk but as a single number e.g. 2:1 reward to risk is the same as 2R… more on that in another blog though). If this is less than 1R, I leave it.
• required lot size
• approximate stoploss (accounting for spread)
• approximate limit order (accounting for spread)
It’s a shame because looking at the releases of MetaTrader 5 it appears as though MetaQuotes have decided to remove the DDE functionality. Nevertheless, I have no intention of using MT5 just yet.
No comments:
Post a Comment