|
|||||||
| 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 |
|
![]() |
|
|
LinkBack (46) | Thread Tools | Display Modes |
|
||||
|
Reverting to a modified PM2
Version 2 seems to work the best of all the versions thus far. It lacks the Trend that will make the Margin safer, but the execution is best. I have added tidbits to update the code to include some of the updates that Neo has posted...
Neo - I would like to implement a Trend to this version. I have been using a LWMA to achieve this. However, the close routines go all to hell with the introduction of the MA... Maybe you might have some ideas to incorporate it into the EA successfully. Don Last edited by don_forex : 06-23-2007 at 04:14 PM. |
|
||||
|
Close routines
What I have noticed with the PM2a is that the opposites work only when the price is at the very extremes. Higher than the HighestBuy or lower than the LowestSell... when the positive sell are above the MidPoint, the losing sell is NOT closing. same for the low buys not closing out the high buy... who would of thought simply adding a iMA would screw it up so badly...
![]() Don |
|
||||
|
Best time Frame
Quote:
Firstly, sorry for my bad english, i don't speak good english. Secondly, thanks to share your work with us. So i'm very interest about your EA, so i want to test it in live on a demo account (3000$ Lot: 0.1), just want to run it while 3 at 5 months to see the results, so i want to know what is your best timeframe to run it. Thanks |
|
|||
|
Ok...found part of the problem, at least! The MinWait computation in the "Close in profit" functions is not fully supported in Strategy Test mode so replace the functions with these:
void CloseBuysinProfit() { double BuyProfit, LastBuyTime; for (int i = OrdersTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber && OrderType() == OP_BUY) { BuyProfit = OrderProfit() + OrderSwap() + OrderCommission(); if (OrderOpenTime() > LastBuyTime) LastBuyTime = OrderOpenTime(); if ((IsTesting() || TimeCurrent() - LastBuyTime >= MinTime) && BuyProfit > 0) OrderClose( OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red ); } } } return; } //+-----------------------------------------------+ //| Closes all Sells in Profit //+-----------------------------------------------+ void CloseSellsinProfit() { double SellProfit, LastSellTime; for (int i = OrdersTotal() - 1; i >= 0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) { if (OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber && OrderType() == OP_SELL) { SellProfit = OrderProfit() + OrderSwap() + OrderCommission(); if (OrderOpenTime() > LastSellTime) LastSellTime = OrderOpenTime(); if ((IsTesting() || TimeCurrent() - LastSellTime >= MinTime) && SellProfit > 0) OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red); } } } return; } Neo |
|
||||
|
Close routines
The addition of the LWMA still screws up the closes. Frustrating.
All I did was create an LWMA variable. extern int MAPeriod = 1200; double Trend = iMA(NULL, 0, MAPeriod, 0, MODE_LWMA, MODE_CLOSE, 0); And then call it up in the Buy and Sell trade criteria. if (Ask < LowestBuy-(Spacing*Point) || Ask > HighestBuy + (TrendSpacing * Point) && Ask > Trend) if (Bid > HighestSell + (Spacing * Point) || Bid < LowestSell - (TrendSpacing * Point) && Bid < Trend) Don |
|
||||
|
Time Frame?
Quote:
I am trying to incorporate a LWMA and still will use a 1M tf. Don |
|
|||
|
Quote:
I an shure that is a very good idea. I am backtesting in 30 min TF and getting interesting results (profit factor 3+ but a little high drawdown). I will forward test in that TF and post my results latter. Regards, Last edited by fxnewbie : 06-26-2007 at 04:17 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 | Refback | 08-24-2007 09:12 AM |
| EA pip maker... - Nogold.com | This thread | Refback | 08-20-2007 08:42 AM |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Want some action? FX of course | Kirsty_FX | |||