Thread: Ichimoku5
View Single Post
  #5 (permalink)  
Old 11-15-2005, 10:37 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 16,311
Blog Entries: 106
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I found the reason why I got very strange results with this EA on h1 timeframe (two orders was opened and closed within 1 minutes). And it was not backtesting. It was live testing on demo (forward test).

Thanks Codersguru for the lessons.
I found in the code of this EA the following:

Code:
double diCustom0=iCustom(NULL, 240, "Ichimoku", 9, 26, 52, 0, 0);
double diCustom1=iCustom(NULL, 240, "Ichimoku", 9, 26, 52, 1, 0);
double diCustom2=iCustom(NULL, 240, "Ichimoku", 9, 26, 52, 1, 0);
double diMA3=iMA(NULL,240,34,0,MODE_EMA,PRICE_CLOSE,0);
double diCustom4=iCustom(NULL, 240, "Ichimoku", 9, 26, 52, 1, 0);
double diCustom5=iCustom(NULL, 240, "Ichimoku", 9, 26, 52, 0, 0);
So, 240 is the timeframe. Foreverold was right here.
This EA was design for the H4 timeframe.

Thus I changed something in the code and we may select timeframe, working hours and Ichimoku setting (Tenkan_sen, Kijun_sen and Senkou_Span_B).
Everything about Ichimoku settings you may find here

I uploaded this Ichimoku 5_1 EA to the download area. Codersguru may check my coding for any mistakes and everybody can play with timeframe, Ichimoku settings and working hours to find the right settings for any timeframe except H4. For H4 this EA is very good and nothing can be changed for h4 timeframe. May be H1 is ok as well.
Reply With Quote