![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Daily Forex Signal Thursday 15 OCT 2009
D20P BUY A GBP/USD 1.5988
take profit 1.6008
stoploss 1.5958
CLOSED NOT TOUCHED +0 pips
Daily Forex Signal Friday 16 OCT 2009
D20P BUY B GBP/USD 1.6220
take profit 1.6240
stoploss 1.6190
CLOSED NOT TOUCHED +0 pips
Daily Forex Signal Monday 19 OCT 2009
D20P BUY A GBP/USD 1.6355
take profit 1.6375
stoploss 1.6325
CLOSED PROFIT +20 pips
Orphaned trades?
Paijo - how do you deal with "orphaned" trades (opened but never reach the stop loss or take profit)?
Please accept my apology if this question has been answered before...
Thanks for this approach - I have been trading a variant of DPG with good results and less stress than any other I have tried.
Best,
Lou
Daily Forex Signal Tuesday 20 OCT 2009
D20P BUY B GBP/USD 1.6400
take profit 1.6420
stoploss 1.6370
CLOSED PROFIT +20 pips
Paijo - how do you deal with "orphaned" trades (opened but never reach the stop loss or take profit)?
Please accept my apology if this question has been answered before...
Thanks for this approach - I have been trading a variant of DPG with good results and less stress than any other I have tried.
Best,
LouOnce order are triggered between the D20P trading time during 6.00 GMT - 18.00 GMT just let it touch it finish line at TP or SL
and deleted any untouch order at 18.00 GMT
Daily Forex Signal Wednesday 21 OCT 2009
D20P SELL A GBP/USD 1.6376
take profit 1.6356
stoploss 1.6406
CLOSED NOT TOUCHED +0 pips
Daily Forex Signal Thursday 22 OCT 2009
D20P BUY B GBP/USD 1.6570
take profit 1.6590
stoploss 1.6540
CLOSED LOSS -30 pips
Sorry for my bad english.
I am create expert for this strategy (if i am correctly understand strategy).
I check this expert at 2009 year - OK.
I check this expert at 2008 year - BAD.
Hi paijolopez,
I have set up the ea to follow the rules as per the 20dp system. The code can be found in the EA under the section "//Calculate 20P pending entry prices"
The EA will place a sellstop or buystop order at the start of the trading session.
The EA will handle an extra decimal place on the quote value, Alpari
has recenly introduced this. (GBPUSD = 0.00001). Also if the pair has 2 or 3 digits like USDJPY.
The orders are set to expire at the end of the trading session as specified or after 5 hours from opening if they are not hit.
The EA is limited to take only max of 1 OP_BUY or OP_SELL trade per day, if the we already have had 1 OP_BUY or OP_SELL no more orders will be placed until the next day. This code can be found in the EA under the section "//Test how many trades have been taken for the day, we must only do 1 trade per day"
This EA also has the functionality to palce long and short stop orders and cancel the other when becomes an open order although this is not necessary with the 20dp system.
If you want to test on other pairs then simply drop the EA on the chart, you will need an M1, H1 and Daily chart open. Also the variable values will need to be altered to suit.
The meaning of the variables is as follows:
_MagicNumber
Is the unique number assigned to the order so the EA can manage the order, this will allow trading of multiple pairs.
Loss and profit targets
StopLoss1 = 30;//distance to StopLoss in points (0 - disable)
TakeProfit1 = 20;//distance to TakeProfit in points (0 - disable)
TrailingStop1 = 150;//Trailing Stop in points (0 - disable), we are not using a trainig stop in the 20DP system so it is set to a high level or just make it = 0 to disable it.
Level1=21;// A level as specified in the 20DP rules
Level2=41;// B Level as specified in the 20DP rules
Money management
risk1 = 8;//This is the % loss of your account balance you would like to risk. The EA will calculate the number of lots needed in order to risk x % of the account value if the stoploss is hit assuming the account is USD.
Currently In the EA the default number of lots is = 1 for testing purposes, this is under the "//Money management" section.
Set session time period//
This gives us the option of specifying during which hours of the day you want to trade when the volumes are the highest. You can have 2 trading sessions if needed. as below.
Afternoonst = 6;//Session open, maybe Europe US market open
Afternoonend = 17;//Session close, maybe Europe US market close
Morningst = 6;//Session open, maybe Asian market open
Morningend = 6;//Session close, maybe Asian market closeHi Derekc,
I have been backtesting your EA today and my results are not so good over the last 12 months. I don't understand how to use your session time settings. How would I set it to use the standard D20P times which are 0600 to 1800 London time? Also do I need your other indicators loaded on to the D1, H1 and M1 charts or is it enough just to have the compiled indicators present on my MT4. Finally, is there an option just to set lot size rather than have the EA calculate position based on risk %?
Cheers,
Matt