MQL4 - automated forex trading   /  

Forum

Login | Register | Language: ru cn en
Have Something to Say to Traders? Welcome to Blogs!

Heiken Ashi EA code

Back to topics list To post a new topic, please log in or register
avatar
85
11011980 2012.03.27 20:26
 

Hi all,

i need help on how to generate signals for my EA from Heiken Ashi indicator,

i need the instruction that will give the value of the Heiken candle in both the upward direction and downward direction.

any help will be highly appreciated.

 
IzaTrade: RESULTS OF THE LAST FORECAST AND FORECAST FOR NEXT WEEK (24-28.11.2014)
Dear friends and readers, As a rule, today’s forecast will contain information about how my last forecast worked out and forecast for the coming week (24-28.11.2014). Results of the last forecast The last forecast had worked for 74% (good). USD showed its strength one more time, especially against currencies in the strong currencies list.
avatar
Moderator
3854
ubzen 2012.03.28 01:52 #
 

You need to check the buffers values to get a feel for what they look like. Example below, you can see they're similar to price. The trick is trying to figure out how it calculates the trends. For that and other uses, I recommend you check out this site.

void start(){
    double Buffer0=iCustom(Symbol(),0,"Heiken Ashi2",0,0);
    double Buffer1=iCustom(Symbol(),0,"Heiken Ashi2",1,0);
    double Buffer2=iCustom(Symbol(),0,"Heiken Ashi2",2,0);
    double Buffer3=iCustom(Symbol(),0,"Heiken Ashi2",3,0);
    Print("Buffer0="+Buffer0);
    Print("Buffer1="+Buffer1);
    Print("Buffer2="+Buffer2);
    Print("Buffer3="+Buffer3);
}
18:38:32 Test: loaded successfully
18:38:37 Test test started
18:38:37 2011.01.02 23:00  Heiken Ashi2 EURUSD,M1: loaded successfully
18:38:37 2011.01.02 23:00  Test EURUSD,M1: Buffer0=1.33689386
18:38:37 2011.01.02 23:00  Test EURUSD,M1: Buffer1=1.33440000
18:38:37 2011.01.02 23:00  Test EURUSD,M1: Buffer2=1.33689386
18:38:37 2011.01.02 23:00  Test EURUSD,M1: Buffer3=1.33440000
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer0=1.33689386
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer1=1.33440000
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer2=1.33689386
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer3=1.33445000
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer0=1.33689386
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer1=1.33420000
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer2=1.33689386
18:39:06 2011.01.02 23:00  Test EURUSD,M1: Buffer3=1.33432500
18:39:24 2011.01.02 23:00  Heiken Ashi2 EURUSD,M1: removed

 
avatar
85
11011980 2012.03.31 13:46 #
 
ubzen:

You need to check the buffers values to get a feel for what they look like. Example below, you can see they're similar to price. The trick is trying to figure out how it calculates the trends. For that and other uses, I recommend you check out this site.


thanks for your helpful reply,

but i want to know which of the doubles above represents the Open of the Heiken Ashi candle,and the one that represents the Close.

expecting your response, thanks in advance.

 
avatar
1002
dabbler 2012.03.31 14:48 #
 
11011980:

Hi all,

i need help on how to generate signals for my EA from Heiken Ashi indicator,

i need the instruction that will give the value of the Heiken candle in both the upward direction and downward direction.

any help will be highly appreciated.

The "difficulty" with the Heiken Ashi is that there is not just one standard version. If you take a look at this thread it should get you started ...

http://forum.mql4.com/45675#572603




 
Back to topics list  

To add comments, please log in or register