Forex
Google

Go Back   Forex Trading > Trading systems > Martingale/Average Cost and Hedging
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 (46) Thread Tools Display Modes
  8 links from elsewhere to this Post. Click to view. #741 (permalink)  
Old 02-01-2008, 01:50 PM
BigBoppa BigBoppa is offline
Member
 
Join Date: Feb 2007
Posts: 69
BigBoppa is on a distinguished road
This routine closes the biggest loss, might be an alternative to get rid of the floating orders. feel free to implement it!


extern int CloseOrdersPerWeek =5; // 0-5, close most loosing position, 5 = each day one
extern int MaxLoss =-5; // $$

//+------------------------------------------------------------------+
void TimeClose()
{
double Order_Profit=0;
if( Hour()>=12 && Hour()<13
&& Minute()==1
&& DayOfWeek()>0 && DayOfWeek()<6 && DayOfWeek()<=CloseOrdersPerWeek
&& DayOfWeek()!=DayOfWeekDone )
{
DayOfWeekDone=DayOfWeek();
for (int y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() == magic && (OrderType()==OP_BUY || OrderType()==OP_SELL))
{
if (OrderProfit()< Order_Profit) // only negative
{
int Ticket=OrderTicket();
Order_Profit=OrderProfit();
}
}
}
// Print (Order_Profit,DayOfWeek());
OrderSelect (Ticket, SELECT_BY_TICKET, MODE_TRADES);
if (OrderType()==OP_BUY && OrderProfit()< MaxLoss)
{
if (OrderClose(Ticket,OrderLots(),Bid,Slippage,Black) )Print ("BUY order closed, P/L = "+OrderProfit());
else Print ("Order close error: "+GetLastError());
}
if (OrderType()==OP_SELL && OrderProfit()< MaxLoss)
{
if (OrderClose(Ticket,OrderLots(),Ask,Slippage,Black) )Print ("SELL order closed, P/L = "+OrderProfit());
else Print ("Order close error: "+GetLastError());
}
}
return(0);
}

//+------------------------------------------------------------------+
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #742 (permalink)  
Old 02-01-2008, 02:13 PM
sivach's Avatar
sivach sivach is offline
Senior Member
 
Join Date: Jun 2006
Posts: 108
sivach is on a distinguished road
Excellent!!!!

Quote:
Originally Posted by dmbsys View Post
Look now !

Michel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #743 (permalink)  
Old 02-02-2008, 08:05 AM
Enforcer Enforcer is offline
Senior Member
 
Join Date: Dec 2007
Posts: 257
Enforcer is on a distinguished road
Quote:
Originally Posted by BigBoppa View Post
This routine closes the biggest loss, might be an alternative to get rid of the floating orders. feel free to implement it!


extern int CloseOrdersPerWeek =5; // 0-5, close most loosing position, 5 = each day one
extern int MaxLoss =-5; // $$

//+------------------------------------------------------------------+
void TimeClose()
{
double Order_Profit=0;
if( Hour()>=12 && Hour()<13
&& Minute()==1
&& DayOfWeek()>0 && DayOfWeek()<6 && DayOfWeek()<=CloseOrdersPerWeek
&& DayOfWeek()!=DayOfWeekDone )
{
DayOfWeekDone=DayOfWeek();
for (int y = 0; y < OrdersTotal(); y++)
{
OrderSelect (y, SELECT_BY_POS, MODE_TRADES);
if (OrderMagicNumber() == magic && (OrderType()==OP_BUY || OrderType()==OP_SELL))
{
if (OrderProfit()< Order_Profit) // only negative
{
int Ticket=OrderTicket();
Order_Profit=OrderProfit();
}
}
}
// Print (Order_Profit,DayOfWeek());
OrderSelect (Ticket, SELECT_BY_TICKET, MODE_TRADES);
if (OrderType()==OP_BUY && OrderProfit()< MaxLoss)
{
if (OrderClose(Ticket,OrderLots(),Bid,Slippage,Black) )Print ("BUY order closed, P/L = "+OrderProfit());
else Print ("Order close error: "+GetLastError());
}
if (OrderType()==OP_SELL && OrderProfit()< MaxLoss)
{
if (OrderClose(Ticket,OrderLots(),Ask,Slippage,Black) )Print ("SELL order closed, P/L = "+OrderProfit());
else Print ("Order close error: "+GetLastError());
}
}
return(0);
}

//+------------------------------------------------------------------+
Hi everybody

This method simply doesn't work.
In 24 hours we can have floating PL of hundred $$$
Let's you close say a position of ~ -100$ but your profit rate simply can't keep up to compensate loses.

10 day simulation with default settings, 2000$ starting balance, lot=0.01:

With your code:


And default EA without your code:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #744 (permalink)  
Old 02-02-2008, 12:37 PM
BigBoppa BigBoppa is offline
Member
 
Join Date: Feb 2007
Posts: 69
BigBoppa is on a distinguished road
You are right, it seems that we need a more intelligent method...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #745 (permalink)  
Old 02-04-2008, 02:14 AM
jerezalfonso jerezalfonso is offline
Junior Member
 
Join Date: Jan 2008
Posts: 5
jerezalfonso is on a distinguished road
Smile Which uses indicators EA?

Quote:
Originally Posted by dmbsys View Post
Hello,

The 14/01, I start a forward test on a demo account with ALPARI (Micro lots)

TF = 15 Min

9 Pairs : EUR/USD GBP/USD USD/JPY USD/CHF USD/CAD EUR/GBP GBP/JPY NZD/USD and EUR/JPY

I join the EA and the SET file.

You can follow the account hour by hour on : Statement: 117540 - PIPMAKER V10-1

Michel

Hi, I have seen many indicators along the post, but I am confused. Which indicators? Uses exactly this PIPMAKER V10-1 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #746 (permalink)  
Old 02-05-2008, 02:03 PM
dmbsys's Avatar
dmbsys dmbsys is offline
Senior Member
 
Join Date: Jan 2007
Posts: 106
dmbsys is on a distinguished road
Summary: Start date : 14/01/2007

Deposit/Withdrawal: 5 000.00 Credit Facility: 0.00
Closed Trade P/L: 1 717.21 Floating P/L: -154.11
Margin: 329.96
Balance: 6 717.21
Equity: 6 563.10
Free Margin: 6 233.14

Not bad

Michel

Statement: 117540 - PIPMAKER V10-1
__________________
[Sorry for my bad english , I'm from Belgium and I speak french]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #747 (permalink)  
Old 02-05-2008, 04:01 PM
Astroman Astroman is offline
Junior Member
 
Join Date: Nov 2007
Posts: 4
Astroman is on a distinguished road
Smile Help to determine trend


Hello All

Here is a handy indicator to put on your chart to help to determine trend.

I don't know if it could be incorporated into PipMaker..
Attached Files
File Type: mq4 _Signal_Bars_v3_Daily.mq4 (40.3 KB, 108 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #748 (permalink)  
Old 02-05-2008, 06:14 PM
ross123 ross123 is offline
Member
 
Join Date: Jul 2006
Posts: 53
ross123 is on a distinguished road
I use this EA to trade live

Hi all,

Thank you all for this EA. I went live with this EA couple of days ago trading the settings that Micheal provided. plus SL/100(I believe in the cut the loss quickly the system will generate more profit).
After seeing many EA's and participating in building several famous ons without any sensible results, I saw potential in this EA and tested it and now trading it on live account with micro lots.

It doesn't need any modification in my opinion(v10), it is a profitable EA. I trade myself for couple of years and have also managed account with FXCM and have followed Galleon too. there are many others systems/EA's in action if you go to fx-performance.com to see their trade history.

This EA has outperform them all in these past months I was testing it. Luckily January was one of the most difficult markets I have seen. the trade results are something similar to the ones that Michel publishes so I won't attach the results.

Good luck everyone and god bless.

Ross.

Last edited by ross123 : 02-05-2008 at 08:21 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #749 (permalink)  
Old 02-05-2008, 07:00 PM
Enforcer Enforcer is offline
Senior Member
 
Join Date: Dec 2007
Posts: 257
Enforcer is on a distinguished road
Yes, is good EA, but have this problem with floating PL.
Sooner or later will crash your account.
Just run a simulation for 3-4 months.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #750 (permalink)  
Old 02-05-2008, 09:07 PM
ross123 ross123 is offline
Member
 
Join Date: Jul 2006
Posts: 53
ross123 is on a distinguished road
Quote:
Originally Posted by Enforcer View Post
Yes, is good EA, but have this problem with floating PL.
Sooner or later will crash your account.
Just run a simulation for 3-4 months.
Consider 100 Pip SL. It works fine specially if you are trading micro or mini and increase the number of trades to 10 each way. what I did on occasions was to close trades manually when a big opposite move (against the current trend) had just happened. But believe me this EA is very profitable.

Hope it helps.

Ross.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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
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!@SゥXX: PipMaker This thread Refback 03-28-2008 02:42 AM
^g!@SゥXX: tEA!! This thread Refback 03-26-2008 12:06 AM
^g!@SゥXX 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
FXなんでもかんでも・・・All 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 FXなんでもかんでも・・・All 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
FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-30-2008 07:57 AM
20080116 FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-27-2008 12:50 PM
悋擧愕拆惘惠悋 愕惆惆 !!! - 惶忰 15 - Sarmaye Forums This thread Refback 01-22-2008 08:16 PM
FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-18-2008 05:43 PM
FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-18-2008 03:32 AM
ブログを書いてる暇などない・・・ FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-17-2008 02:28 AM
FXなんでもかんでも・・・All you need is TREND!(仮題) This thread Refback 01-16-2008 12:34 PM
悋擧愕拆惘惠悋 愕惆惆 !!! - 惶忰 15 - Sarmaye Forums This thread Refback 01-09-2008 12:03 PM
悋擧愕拆惘惠悋 愕惆惆 !!! - 惶忰 15 - Sarmaye Forums This thread Refback 01-07-2008 09:33 PM
悋擧愕拆惘惠悋 愕惆 惆 !!! - 惶忰 15 - Sarmaye Forums This thread Refback 12-29-2007 05:07 PM
悋擧愕拆惘惠悋 愕惆 惆 !!! - 惶忰 15 - Sarmaye Forums This thread Refback 12-29-2007 01:28 PM
shez_78's bookmarks tagged with This thread Refback 12-27-2007 11:50 AM
Long Term Smooching Method - Page 2 - FXOpen Forex Forum | Forex review | Trading methods | Education | Analytics This thread Refback 12-11-2007 02:12 AM
Long Term Smooching Method - Page 2 - FXOpen Forex Forum | Forex review | Trading methods | Education | Analytics This thread Refback 12-10-2007 11:46 PM
Forex TSD| Metatrader Indicators and Experts Advisors This thread Refback 11-09-2007 09:11 PM
- Per tutti: Expert Advisor/Strategia da valutare This thread Refback 11-08-2007 08:02 PM
[Forex-PipmakerV9-1] Yang berminat untuk mendiskusikan EA ini silakan masuk...:)) - Kaskus - The Largest Indonesian Community This thread Refback 11-07-2007 03:18 PM
- Per tutti: Expert Advisor/Strategia da valutare This thread Refback 10-02-2007 07:02 PM
Backtester Bug when placing Orders... - Forex Trading Software Forum This thread