Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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.
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 close
Hi 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 %?
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.
D20P & DPG Results For October 2009
01 OCT 2009 D20P SELL LOSS / DPG SELL PROFIT
02 OCT 2009 D20P SELL PROFIT / DPG SELL LOSS
05 OCT 2009 D20P BUY PROFIT / DPG BUY PROFIT
06 OCT 2009 D20P SELL PROFIT / DPG SELL LOSS
07 OCT 2009 D20P SELL PROFIT / DPG SELL PROFIT
08 OCT 2009 D20P NOT TOUCHED / DPG BUY PROFIT
12 OCT 2009 D20P SELL PROFIT / DPG NOT TOUCHED
13 OCT 2009 D20P SELL PROFIT / DPG SELL PROFIT
14 OCT 2009 D20P NOT TOUCHED / DPG NOT TOUCHED
15 OCT 2009 D20P NOT TOUCHED / DPG NOT TOUCHED
16 OCT 2009 D20P NOT TOUCHED / DPG NOT TOUCHED
19 OCT 2009 D20P BUY PROFIT / DPG BUY PROFIT
20 OCT 2009 D20P BUY PROFIT / DPG BUY PROFIT
21 OCT 2009 D20P NOT TOUCHED / DPG BUY LOSS
22 OCT 2009 D20P BUY LOSS / DPG BUY LOSS
23 OCT 2009 D20P BUY PROFIT / DPG BUY LOSS
26 OCT 2009 D20P SELL PROFIT / DPG NOT TOUCHED
27 OCT 2009 D20P BUY LOSS / DPG SELL LOSS
28 OCT 2009 D20P BUY PROFIT / DPG BUY LOSS
29 OCT 2009 D20P NOT TOUCHED / DPG SELL LOSS
30 OCT 2009 D20P BUY PROFIT / DPG BUY PROFIT
D20P October Total +150 pips DPG October Total +0 pips