Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
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.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-25-2007, 04:23 PM
nostrade's Avatar
Junior Member
 
Join Date: Mar 2007
Posts: 24
nostrade is on a distinguished road
EA based on Heiken Ashi

Hi all.

I am looking for someone that can help me create an EA based on Heiken Ashi MA indicator.

Here is a list of the requirements:

MaMetod: 1
MaPeriod: 15

Timeframe: 4H

blue=>long, red=short

LONG when ashi Bar is BLUE, exit when ashi Bar is RED

SHORT when ashi Bar is RED, exit when ashi Bar is BLUE

No Stop Loss, No TP Target

for example --- GBP/USD:

if current ashi bar BLUE at 0.00 GMT (2.000), the EA place LONG order at 2.000.. then at 8.00GMT the ashi bar turns RED (1.9950), close the trade at 1.9950 with -50pips loss. At the same time place SHORT order at 1.9950, then at 16.00GMT the ashi bar turns BLUE (1.9850), close the trade at 1.9850 with 100pips profit, at the same time place LONG order at 1.9850

Thanks in advance
Attached Files
File Type: mq4 Heiken_Ashi_Ma.mq4 (3.5 KB, 551 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
  #2 (permalink)  
Old 04-26-2007, 10:13 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
HAma EA - not as simple as it may seem

I have attached a simple EA based on your strategy.
If you back or forward test it you'll see that things are not that simple.
You'll need to find a better exit strategy (i.e. trailing stop or take profit plus a stop loss).

Hope this helps you out.
Attached Files
File Type: mq4 HAma3.mq4 (3.1 KB, 512 views)
__________________
NiX @ www.mt4.pl
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
  #3 (permalink)  
Old 04-27-2007, 06:32 AM
nostrade's Avatar
Junior Member
 
Join Date: Mar 2007
Posts: 24
nostrade is on a distinguished road
Hi..

Thanks alot for developing this EA.

How can I make this EA to close previous trade and open new trade at only the first BAR.

Example;

GBP/USD

The previous Bar is RED.. previous trade is SHORT. Now it turns BLUE at open price 1.8550.. the EA close the previous trade at 1.8550 and place new LONG trade at 1.8550.

It must works for the first bar only.. Not in the middle. I mean: previous RED bar to new BLUE bar , where at this new bar must have trade close and open.

Not previous RED bar to new RED bar , or, previous BLUE bar to new BLUE bar (that means no trade at this new bar).

Sorry for my bad english

Thanks in advance
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
  #4 (permalink)  
Old 04-27-2007, 06:49 AM
Senior Member
 
Join Date: Oct 2006
Posts: 206
aegis is on a distinguished road
Speaking of Heiken Ashi, I would like to try to replicate the HA based martingale system that Team Forex Solution uses as shown in this thread: http://www.forex-tsd.com/commercial-...t-managed.html

Any ideas?
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
  #5 (permalink)  
Old 04-27-2007, 08:29 PM
Senior Member
 
Join Date: Dec 2005
Posts: 142
trevman is on a distinguished road
for the heiken ashi stratergy, when a bar goes from red to blue - buy but set a stop X pips away and leave it until it is hit or a TP is hit (this way youll avoid whipsaws of red/blue/red/blue buying and selling) like http://www.moneytec.com/forums/f14/a...-trader-21875/
__________________
There is no candle.
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
  #6 (permalink)  
Old 04-27-2007, 10:56 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
I agree with trevman.
Whipsaws tend to eat up all the profit.

nostrade, here is the fixed EA. Is this what you are looking for?
Attached Files
File Type: mq4 HAma3.1.mq4 (3.0 KB, 566 views)
__________________
NiX @ www.mt4.pl
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
  #7 (permalink)  
Old 04-27-2007, 11:04 PM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by trevman
for the heiken ashi stratergy, when a bar goes from red to blue - buy but set a stop X pips away and leave it until it is hit or a TP is hit (this way youll avoid whipsaws of red/blue/red/blue buying and selling) like http://www.moneytec.com/forums/f14/a...-trader-21875/
I like the SL/TP idea, but please elaborate on the entry after TP or SL is hit.
Say the previous bar was RED and the new one is BLUE - the EA goes long, but hits SL (meanwhile the bars remain BLUE) - What do we do? Wait till the bars shift into RED or re enter with the HA trend? What if we hit TP instead of SL?

It is no problem for me to code any EA as long as I have the correct formula/algorithm for it.
__________________
NiX @ www.mt4.pl
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
  #8 (permalink)  
Old 04-28-2007, 04:27 AM
nostrade's Avatar
Junior Member
 
Join Date: Mar 2007
Posts: 24
nostrade is on a distinguished road
Thanks alot nix

I have seen a few times Heiken Ashi bars open with one specific color, then hours later suddenly it changes to another one..

for example at 4.00GMT, Heiken Ashi open with RED, then 2 hours later it turns to BLUE.. How can we predict such change of color?
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
  #9 (permalink)  
Old 04-28-2007, 08:27 AM
Senior Member
 
Join Date: Dec 2005
Posts: 142
trevman is on a distinguished road
Quote:
Originally Posted by nix
I like the SL/TP idea, but please elaborate on the entry after TP or SL is hit.
Say the previous bar was RED and the new one is BLUE - the EA goes long, but hits SL (meanwhile the bars remain BLUE) - What do we do? Wait till the bars shift into RED or re enter with the HA trend? What if we hit TP instead of SL?

It is no problem for me to code any EA as long as I have the correct formula/algorithm for it.
read over the thread, he explains the idea very well.
__________________
There is no candle.
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
  #10 (permalink)  
Old 04-28-2007, 09:32 AM
nix nix is offline
Senior Member
 
Join Date: Aug 2006
Posts: 132
nix is on a distinguished road
Quote:
Originally Posted by nostrade
Thanks alot nix

I have seen a few times Heiken Ashi bars open with one specific color, then hours later suddenly it changes to another one..

for example at 4.00GMT, Heiken Ashi open with RED, then 2 hours later it turns to BLUE.. How can we predict such change of color?
No one can. 4 hours is a very long time period. The price can change more than 200 pips and back up in 4h.
__________________
NiX @ www.mt4.pl
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
heiken ashi, heiken, heiken ashi ea, heiken ea, heiken ashi expert advisor, EXPERT ADVISOR HEIKEN ASHI, heiken ashi expert


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
EA BAsed on Heiken ASHI babarmughal Suggestions for Trading Systems 104 09-21-2009 11:52 AM
Heiken Ashi Idea excite2 Indicators - Metatrader 4 108 09-08-2009 04:57 PM
Heiken Ashi manual european Indicators - Metatrader 4 30 05-18-2009 05:35 AM
Heiken Ashi manual newdigital Documentation 0 08-18-2006 02:24 PM


All times are GMT. The time now is 07:52 PM.



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