Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #21 (permalink)  
Old 09-27-2008, 08:15 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
scalping using Slope Direction Line

hi latimeria

I found this strategy some where (I forgot where is it) and tested with my demo acc for couple days and looks profitable, maybe you can help to make it as an EA ...??

here is the scalping system:

indicators:
- LWMA 5 Close (Red Color)
- SDL : Period 40 , Method 3 , Price 0 (DOWN: Tomato Color, UP: Light Blue Color)
- TrendEnvelops_v2 (attached) (DOWN: Tomato Color, UP: Light Blue Color)

TF = 15M
(template is attached too...)

LONG:
- SDL below LWMA
- TrendEnvelops_v2 below the candle
- SDL and TrendEnvelopes have the same colors

SHORT:
- the opposite of LONG

ENTRY ONLY AT THE OPENING OF SECOND CANDLE AFTER THE SIGNAL.

Look at the chart I attached here,
- Red Dot Line is the signal for Short
- Red Solid Line is the entry for Short

- Green Dot Line is the signal for Long
- Green Solid Line is the entry for Long

PLEASE... take a look at the RED circle, is a false signal because the SDL doesn't show the same color.

And loot at the GREEN circle, it's still a good signal if you can make a trailing stop for protect the profit

I'm waiting for your reply soon ..... thanks
Attached Images
File Type: gif gu-15m.gif (23.3 KB, 456 views)
Attached Files
File Type: mq4 TrendEnvelopes_v2.mq4 (4.8 KB, 136 views)
File Type: tpl gu-15m.tpl (1.5 KB, 66 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #22 (permalink)  
Old 09-28-2008, 07:45 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
Hello tcl,

I think here is what you want.

It seems that this is not a scalping system, but a variation of short period counter trade.
Anyway, as I tested in EUR/USD 15min TF, It worked fairly well (at least not so bad).

I have not verified so much if it is working as you wrote or not,
but I coded according to your entry rules.
You can see details by visual backtest or fowardtest if it is working correctly or not.

1) Most of settings and features are the same as former versions.
2) This system is locked not to work on except M15 TF. (It can be unlocked from the settings if you want)

required custom indicators
<Slope Direction Line Modified 2>
<TrendEnvelopes_v2>
<Support and Resistance> * maybe unnecessary if you don't use S/R TP method.

have fun
Attached Files
File Type: mq4 SDL_TE2_LWMA_v1.mq4 (35.9 KB, 82 views)

Last edited by latimeria; 09-28-2008 at 06:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #23 (permalink)  
Old 09-28-2008, 05:28 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
Cool excellent

Quote:
Originally Posted by latimeria View Post
Hello tcl,

I think here is what you want.

It seems that this is not a scalping system, but a variation of short period counter trade.
Anyway, as I tested in EUR/USD 15min TF, It worked fairly well.

I have not verified so much if it is working as you wrote or not,
but I coded according to your entry rules.
You can see details by visual backtest or fowardtest if it is working correctly or not.

1) Most of settings and features are the same as former versions.
2) This system is locked not to work on except M15 TF. (It can be unlocked from the settings if you want)

required custom indicators
<Slope Direction Line Modified 2>
<TrendEnvelopes_v2>
<Support and Resistance> * maybe unnecessary if you don't use S/R TP method.

have fun
I tried to backtest your EA with GU Pairs and I got error:
1999.01.05 10:15 SDL_TE2_LWMA_v1 GBPUSD,M15: zero divide

and I got the same error with GJ pairs

Last edited by tcl; 09-28-2008 at 07:04 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #24 (permalink)  
Old 09-29-2008, 03:05 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
As I tested the EA on my GBP/USD or GBP/JPY AlpariUK demo data (15M Open price only) no zefo devide error happens.
I don't have not so long term data as you and can't reproduce your situation.

Do you mean you can't even backtest this EA at all?
Is the same thing happening to others who downloaded this EA?

Again, I'm a begginer at mq4 and don't know well about "zero devide error".
I studied about it a little, but no clear explanations about this error and clear causes that happens and how to fix it were found.

Can anyone explain this error clearly? Thanks.

Last edited by latimeria; 09-29-2008 at 03:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #25 (permalink)  
Old 09-29-2008, 07:58 AM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
Quote:
Originally Posted by latimeria View Post
As I tested the EA on my GBP/USD or GBP/JPY AlpariUK demo data (15M Open price only) no zefo devide error happens.
I don't have not so long term data as you and can't reproduce your situation.

Do you mean you can't even backtest this EA at all?
Is the same thing happening to others who downloaded this EA?

Again, I'm a begginer at mq4 and don't know well about "zero devide error".
I studied about it a little, but no clear explanations about this error and clear causes that happens and how to fix it were found.

Can anyone explain this error clearly? Thanks.
ya.... I can't even backtest it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #26 (permalink)  
Old 09-29-2008, 08:53 AM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
ups.... it's work..!!!

ups... it's work....

I tried to run your EA in forward mode on GU and GJ just now (demo), and I supprized .... it's work...!!!

I'm using your default setting and now they are floating with profit position

but... I saw that your EA doesn't protect the profit directly, the S/L move slowly closer to the open price....

I'll inform you the progress....

Last edited by tcl; 09-29-2008 at 09:10 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #27 (permalink)  
Old 09-29-2008, 11:02 AM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
Code:
//TakeProfit
extern string  TakeProfitExp = "<<< Take Profit (& StopLoss for S&R)>>>";
extern string  TakeProfit_note = "0=No TP,  1=Multiple of SL,  2=Fixed TP Pips 3=Use S&R";
extern int     TakeProfit_Method = 0;
extern double  TP_Multiple = 1.8;
extern int     Fixed_TP = 150;
extern string  AboutSRMODE = "--- S&R Mode Setting ---";
extern double  SR_Multiple = 0.8;
extern double  TPvsSL_Ratio = 0.8;

//Trailing Stop
extern string  TrailMethodExp = "<<< Trailing Stop Method >>>";
extern string  Trail_Method_note = "0=Trail_OFF, 1=ATR_Mode, 2=FixPips_Mode, 3=Profit_Mode";
extern int     TRAIL_Method = 1;

extern string  AboutTrail_Method1 = "--- 1. You can change Trailing ATR Multiple ---";
extern double  Trail_ATR = 0.7;
extern string  AboutTrail_Method2 = "--- 2. You can change Trailing Pips ---";
extern int     Trail_Pips = 200;
extern string  AboutTrail_Method3 = "--- 3. You can change Trailing Profit to Reserve ---";
extern double  Profit_to_Reserve = 0.2;
hi latimeria...

can you explain your "TAKE PROFIT" and "TRAILING STOP" code above ??

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #28 (permalink)  
Old 09-29-2008, 01:56 PM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
If you mean you want to know how to set up, explanations are follows.

This EA has 4 selectable take profit method.
You can change method by changing "TakeProfit_Method".

Default is "0". It means EA doesn't place Takeprofit at trade opening.

If you change it to "1". EA place Takeprofit at trade opening.
This method determine Takeprofit by multipling initial stoploss.
For example, when initial stoploss is 100pips and "TP_Multiple" is 1.8, Takeprofit is 100*1.8 = 180pips above the entry price (when long).

If you change it to "2". EA place Takeprofit at trade opening.
Takeprofit is simply the value of "Fixed_TP"(pips).

If you change it to "3". EA place Takeprofit at trade opening.
Takeprofit is determined by multiple("SR_Multiple") of the value of custom indicator (Support and Resistance).
This method determine Takeprofit first and determine stoploss by multiple("TPvsSL_Ratio") of Takeprofit.
But it's experimental and I don't recommend to use this method.

----------------------------

Regarding trailing stop, almost the same.
This EA has 4 selectable trailing stop method.
You can select method by changing "TRAIL_Method"

Method "0" doesn't trail.

Method "1" determine trailing stop width from multiple("Trail_ATR") of daily ATR. (default)

Method "2" determine trailing stop width using simply fixed pips("Trail_Pips").

Method "3" moves stop to preserve profit (= Bid - current stoploss, *case of long) by the rate ("Profit_to_Reserve").
If Bid - current stoploss is 100pips and rate is 0.2, EA moves up stop 20pips.
But it's experimental and I don't recommend to use this method.

Last edited by latimeria; 09-29-2008 at 02:13 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #29 (permalink)  
Old 09-29-2008, 04:14 PM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
thanks for your clearly explanation

here the reports for today..... (note: I don't run my PC 24 hours)

for the second trade for each pair, I changed the S/L method to use fixed pips and I trade using fixed lot (0.1)

The problem is ... I don't see that your EA open at the second candle after the signal trigerred
Attached Images
File Type: gif DetailedStatement.gif (4.6 KB, 293 views)
Attached Files
File Type: htm DetailedStatement.htm (9.5 KB, 8 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #30 (permalink)  
Old 09-30-2008, 01:39 AM
tcl's Avatar
tcl tcl is offline
Member
 
Join Date: Apr 2008
Posts: 87
tcl is on a distinguished road
Question EA doesn't open a trade at the second candle

hi latimeria,

look at the chart picture I attached here, the EA doesn't open a LONG trade at the second candle, why...??
Attached Images
File Type: gif ea-1.gif (24.7 KB, 283 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
slope direction line expert advisor, SlopeDirectionLine_v3, TrendEnvelopes_v2, slope direction, slope direction line, expert advisor, slope direction line ea, forex

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create Expert Advisor for this wonderful indicator torreseemee Setup Questions 3 07-24-2008 07:37 AM
How to make an expert advisor run other expert advisors in MQL4 activetc Metatrader 4 0 08-30-2007 05:29 AM
How to stop expert advisor from trading, when profit is made joko75 Expert Advisors - Metatrader 4 9 05-27-2007 01:16 PM
Need an indicator made hidethereal Indicators - Metatrader 4 12 09-28-2006 07:10 PM


All times are GMT. The time now is 02:50 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.