Forex
Google
New signals service!

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging


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
 
LinkBack (50) Thread Tools Display Modes
  #1091 (permalink)  
Old 05-17-2008, 04:19 PM
frantacech's Avatar
Senior Member
 
Join Date: Sep 2006
Posts: 478
frantacech is on a distinguished road
Nice backtest
Attached Images
File Type: gif pipmaker.gif (21.4 KB, 611 views)
__________________
RUN With The BULLS And HUNT With The BEARS - Nothing By Chance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1092 (permalink)  
Old 05-17-2008, 06:15 PM
Senior Member
 
Join Date: Dec 2007
Posts: 263
Enforcer is on a distinguished road
Quote:
Originally Posted by frantacech View Post
Nice backtest
But not so nice DD

I always try to get lowest DD, not higher profit.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1093 (permalink)  
Old 05-17-2008, 06:19 PM
Senior Member
 
Join Date: Dec 2007
Posts: 263
Enforcer is on a distinguished road
Quote:
Originally Posted by drgoodvibe View Post
This is my new favorite EA. I'm having a great deal of fun fiddling with the trade logic with different ideas. Thank you very much Enforcer, this is an extremely well put EA.

The one thing i'm having a bit of trouble with is that this EA takes a great deal of time to backtest. Anyway we can optimize the code so that it backtests faster?

Thank you again, wonderful job.

-dgv
You're welcome.

Backtest speed is not entirely dependent on EA tested, also count PC speed, available memory, amount of data to be tested..
Usually EAs using external indicators will run slower and also some indicators require more RAM and CPU cycles than others.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1094 (permalink)  
Old 05-17-2008, 09:07 PM
Junior Member
 
Join Date: Mar 2008
Posts: 22
montedoro is on a distinguished road
Quote:
Originally Posted by Enforcer View Post
Guys, in no mystery, is written inside EA

Code:
      RSI_1 = iCustom(NULL, RSI_period,"Adaptive RSI", RSI_bars, PRICE_CLOSE, 0)*10;
      RSI_2 = iCustom(NULL, RSI_period,"Adaptive RSI", RSI_bars, PRICE_CLOSE, 1)*10;
       if (
      RSI_1 > RSI_2 &&
       RSI_1 - RSI_2 > ARSI_trigger) {tradeDirection=1;}
      if (
      RSI_1 < RSI_2 && 
      RSI_2 - RSI_1 > ARSI_trigger) {tradeDirection=-1;}

Enforcer, just replace ARSI_trigger= 0.007 with this

ARSI_trigger = iATR(NULL,1,13, 0)*10;

You`ll stay satisfied - i`ve got 40% more profit. The DD is increased a litle. ATR bars=13 is the best, I start making tests one week ago. This is the way to grab only unusual strong impulses compared with current volatility.

Also I`ve tried with separate trailing for Buy`s and Sells. I`ve got nice increased profit about another 5%, but DD looks unacceptable.

The other thing I`ve tryed is using i_Trend, but I have changed the i_TrendDecision (if = 1 becomes = -1 and oposite if = -1 becomes = 1). The idea is simple: i_Trend is looking for main trend in H4 or H1. Same time ARSI in M1 is looking for strong impulses against the i_Trend, but the orders will be placed in the direction of the main H4 (H1) trend because ReverseDirection = true. In this way PipMaker becomes main_trend follow robot and the orders are placed in the best posible place - in the bottom of the chanel if upgoing_trend exist and in the top of the chanel if down _going trend exist. The number of the trades is much less but we`ve got DD=4,21% so we can play with more risk. I post some result from my modified versions using i_Trend.
The DD is 38.94% but note that I play with MaximumRisk=1 and profit is $4084
until end of april. Without i_Trend I`ve got profit about 15`000 but DD are still unacceptable.
I`m still testing...
Attached Images
File Type: gif PM_modified_for_tests_ATR_and_iTrend.GIF (31.5 KB, 581 views)
File Type: gif PM_2_modified_no_iTrend.GIF (40.8 KB, 574 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1095 (permalink)  
Old 05-18-2008, 10:49 AM
erdenmensch's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 267
erdenmensch is on a distinguished road
@montedoro

please can you post the new mq4?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1096 (permalink)  
Old 05-18-2008, 03:01 PM
Senior Member
 
Join Date: Dec 2005
Location: Null
Posts: 532
drgoodvibe is on a distinguished road
Quote:
Originally Posted by Enforcer View Post
You're welcome.

Backtest speed is not entirely dependent on EA tested, also count PC speed, available memory, amount of data to be tested..
Usually EAs using external indicators will run slower and also some indicators require more RAM and CPU cycles than others.

This is very strange indeed, as I'm running the backtest on some rather highend servers, using indicators that I have tested in other EAs that ran very quickly.

Anyone else noticing the fact that this EA takes a substantial long time to backtest? I wonder if it's just me.

Thanks Enforcer.

-dgv
__________________
Metatrader 4 - EA Live and Demo Hosting Solutions http://www.omegasupreme.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1097 (permalink)  
Old 05-18-2008, 08:03 PM
Junior Member
 
Join Date: Sep 2007
Location: kiev. ukraine
Posts: 26
Lemyx is on a distinguished road
montedoro, I have some questions...
You wrote
Quote:
Originally Posted by montedoro View Post
i_Trend is looking for main trend in H4 or H1.
Its true.

But
Quote:
Originally Posted by montedoro View Post
...but the orders will be placed in the direction of the main H4 (H1) trend because ReverseDirection = true.
This is not the case.
If i_Trend signals UP and ReverseDirection = true then EA will take the SELL position, because ReverseDirection = true! (if we take into account only i_Trend)
Here is the code:
Code:
int Direction= Direction();
if(ReverseDirection)  Direction = -Direction;
So what you have done I don't fully understand.

As I have understood you've done something like this:
if( i_Trend(60 min)==UP && ARSI(1 min) == DOWN ) then SELL
AND
if( i_Trend(60 min)==DOWN && ARSI(1 min) == UP ) then BUY

Am I right?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1098 (permalink)  
Old 05-18-2008, 09:16 PM
Senior Member
 
Join Date: Dec 2007
Posts: 263
Enforcer is on a distinguished road
Didn't had time to look into this but at first look may be a contradiction in indicators signals.
Better post your version to have overall view of code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1099 (permalink)  
Old 05-18-2008, 09:55 PM
Junior Member
 
Join Date: Mar 2008
Posts: 22
montedoro is on a distinguished road
Quote:
Originally Posted by Lemyx View Post
montedoro, I have some questions...

As I have understood you've done something like this:
if( i_Trend(60 min)==UP && ARSI(1 min) == DOWN ) then SELL
AND
if( i_Trend(60 min)==DOWN && ARSI(1 min) == UP ) then BUY
Lemyx, I`ll explain again: The order must be placed in the direction of the main trend. So

if( i_Trend(60 min)==UP && ARSI(1 min) == DOWN ) then BUY
AND
if( i_Trend(60 min)==DOWN && ARSI(1 min) == UP ) then SELL

The easy way to make it just for test : change iTrendDecision() each other

if (B1_1 > B1_2 && B2_1 > B2_2) {tradeDirection=-1;} // it was =1
if (S1_1 < S1_2 && S2_1 < S2_2) {tradeDirection= 1;} // it was =-1


I mean we are looking for best position in the H1_trend_channel to place our order. The best result we can expect in pairs usualy in trend and we can play with more risk. The test with GBPUSD was not good example. I`ll test next week with other pairs.

erdenmensch, my changes are not a secret, but I have about 10 raw modified versions of PipMaker just for tests. They will be useless for you. Only I know all the mess I have done with the code inside (actualy my friend did it by my order, I`m not programer and he is already hiding from me because I`m eating all his free time. Untill now the only one sure result I`ve got is with the floating ARSI_trigger. The value of ARSI is rising faster than ATR so this is great way to grab the righ impuls of the price. If Enforcer agree with my tests I expect he to add this in the next versions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #1100 (permalink)  
Old 05-18-2008, 10:01 PM
Senior Member
 
Join Date: Dec 2007
Posts: 263
Enforcer is on a distinguished road
If I'll get positive results, I'll add changes, sure.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
Pipmaker, pipmaker forex, pipmaker ea, adaptive RSI

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 On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/martingale-average-cost-hedging/8126-pipmaker-v1-price-action-based-ea.html
Posted By For Type Date
Bless EA [zmodykifowana] This thread Refback 08-17-2008 04:23 AM
Bless EA [zmodykifowana] This thread Refback 08-06-2008 08:05 PM
Bless EA [zmodykifowana] This thread Refback 08-06-2008 10:53 AM
Bless EA [zmodykifowana] This thread Refback 07-29-2008 12:07 PM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 06-26-2008 09:37 AM
FX扑旦氾丞玄伊□玉憤がыъ撢薨撮 Post #1021 Refback 06-24-2008 02:16 PM
FX扑旦氾丞玄伊□玉憤がыъ撢薨撮 Post #1021 Refback 06-14-2008 04:09 PM
丟正玄伊□母□分丑〞﹛ 200805 This thread Refback 06-06-2008 03:17 PM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 04-15-2008 12:39 PM
^g!@SXX: PipMaker This thread Refback 03-28-2008 02:42 AM
^g!@SXX: tEA!! This thread Refback 03-26-2008 12:06 AM
^g!@SXX This thread Refback 03-25-2008 11:15 PM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-14-2008 04:32 AM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-09-2008 07:41 PM
Expert Advisor | Forex MetaTrader Expert Advisors | Over 40 of the Best EA's for MT4 on Squidoo This thread Refback 03-07-2008 02:31 AM
≠MT4∞MetaTrader Part8≠丟正玄伊□母□∞ - MetaTrader引午戶Wiki This thread Refback 02-24-2008 06:14 AM
ゞ堣吨韝リ滮咫韝リ漶式式再ll you need is TREND〞﹋移鎖﹌ This thread Refback 02-23-2008 08:51 PM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 02-23-2008 11:01 AM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-21-2008 12:27 AM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-13-2008 06:28 AM
TSD及白巧□仿丞尺及伉件弁 | 1坳晚井日杴隙允葆鳳莢汊 This thread Refback 02-09-2008 09:35 PM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-08-2008 01:34 PM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 15 - Sarmaye Forums This thread Refback 02-08-2008 01:18 PM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-07-2008 12:16 AM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-06-2008 03:30 PM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-06-2008 07:43 AM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-06-2008 06:23 AM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 16 - Sarmaye Forums This thread Refback 02-06-2008 06:03 AM
200801 ゞ堣吨韝リ滮咫韝リ漶式式再ll you need is TREND〞﹋移鎖﹌ This thread Refback 02-03-2008 08:40 AM
Per tutti: Expert Advisor/Strategia da valutare - Forex Forum This thread Refback 01-31-2008 07:00 PM
ゞ堣吨韝リ滮咫韝リ漶式式再ll you need is TREND〞﹋移鎖﹌ This thread Refback 01-30-2008 07:57 AM
20080116 ゞ堣吨韝リ滮咫韝リ漶式式再ll you need is TREND〞﹋移鎖﹌ This thread Refback 01-27-2008 12:50 PM
塈琠堻椈堭堛塈 堻堹堹 !!! - 媯堶 15 - Sarmaye Forums