Skip This Ad >>
 
Register
Forgotten your password?
The Facebook Platform
Forex-TSD - Powered by vBulletin
Loading search...
Advanced search
  • Home
  • Forums
    Free sections Exclusive sections All sections
  • Register
    Create new account
  • More Recent
    Latest Threads Today's Posts
  • Rankings
    Most popular threads this month Most popular threads created this month Most linked threads this month Most active users Most reputed users
  • Calendar
  • Advertising
  • Others
    Blogs Toolbar
  • Help
    Contact Us FAQ
  • Premium Forum
  • Home
  • Forum
  • Trading systems
  • Martingale/Average Cost and Hedging
  • PipMaker v1 - Price action based EA

Like Tree3Likes
  • Top
  • All
  • This Page

Thread: PipMaker v1 - Price action based EA



  • LinkBack
    • LinkBack URL LinkBack URL
    • About LinkBacks About LinkBacks
    •  
    • Bookmark & Share
    • Digg this Thread!
    • Add Thread to del.icio.us
    • Bookmark in Technorati
    • Tweet this thread
  • Thread Tools
    • Show Printable Version
    • Email this Page…
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
Results 1 to 10 of 2165
Page 1 of 217 1231151101 ... Next LastLast
501 501 Attachment(s)

  1. 06-16-2007 04:51 PM #1
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    PipMaker v1 - Price action based EA

    I will keep it simple, short and to the point. This little EA has a lot of potential. A friend of mine and I have collaborated on many different types of systems in the past. This is a culmination of our efforts. He has a very similar type of EA that is currently making 10% per month.

    Here are the variables explained...

    Bothways: Default is True
    True - this will set a buy order if the price plus the spacing is less than the lowest buy or higher than the highest buy. Same for the sells.

    False - this will set a buy order if the price plus the spacing is less than the lowest buy or a sell higher than the highest sell.

    MinTime: Default is 91
    This is the amount of seconds that an order must be opened before it can be closed. This is to help in preventing "scalping". If your broker has no time limitation, then you can set this to 0. Velocity4x requires 91 seconds.

    Lots: Default is 0.1
    Pretty self-explanatory. This is the initial lot size that is first placed. The default will depend on your account size, spacing and needs to be optimized to ensure you have a good setting. Personally, I use 0.01 for most everything.

    Increment: Default is 0
    This is used two different ways and is used in conjunction with Multiplier. If you are not using Multiplier (Martingale), then the setting can be anything you want the next order to increase to. In most cases, the smallest lot size one can have is 0.01, if you set the increment to anything less than 0.01 then it will take more than one order to increment to the next step. For example, 0.005 Increment will set the second order to 0.015 however, this will be rounded to 0.02, then the next order will be 0.02 and so on... If you use 0 for the setting then the subsequent orders will each be the Lots size.
    If you are using Multiplier, then you must have an Increment larger than 1. I have used as low as 1.01 to as high as 5.0... This is further explained in the next variable. Optimization is necessary to determine the best Increment.

    Multiplier: Default is false
    This is used to determine the way in which the lotsize is incremented. When it is set to false, the Increment is stepped gradually. When it is set to true, the Increment is stepped exponentially. Using Multiplier, in effect, makes this a Martingale type system.

    Conservative: Default is false
    This was originally used before the advent of the profit routines now in play. How it works is, for each buy or sell order that is placed, the profit target is reduced by XX%. This way, the more orders you have open, the less profit is looked for, the quicker the orders are closed and everything is started over...

    ProfitReducer: This is used in conjunction with the Conservative setting. This is what the ProfitTarget is reduced by.

    ProfitTarget: Default is 50
    This is a dollar amount that you determine through optimization.

    Spacing: Default is 10
    This is the minimum distance set between orders. Once again, optimization is recommended.

    EndTrading: Default is false
    This is used to stop trading once all the orders are cleared.


    The only problem I have with the backtester, is that every once in awhile, the losing buys (or sells) close out before they are supposed too. According to the coding, there should only be one losing order closed at any one time. If anyone out there can help me determine why this occurs and be able to help correct it, I would be most grateful.

    Over the three year Alpari history, this EA has proven to be quite profitable with the right optimizations.

    Over the last two years, I have gained a lot of information and knowledge from the forums and I hope that this will be some small contribution back to the community. Enjoy and may you make lots of pips! Keep on truckin'

    Don


    EDIT - Version 2 fixed the closing inconsistencies.

    EDIT - Version 3 - see post #23 for explanation.

    EDIT - Version 4 - see post #42 for explanation.

    EDIT - Version 5a Neo - see post #52 for explanation.

    EDIT - Version 10 - see post #2089 for explanation.

    EDIT - Version 11 - see post #2101 for explanation.
    Attached Files
    • File Type: mq4 PipMakerv3.mq4 (19.7 KB, 3875 views)
    • File Type: mq4 PipMakerv4.mq4 (19.5 KB, 3072 views)
    • File Type: mq4 PipMakerV9-1.mq4 (28.7 KB, 7937 views)
    • File Type: mq4 PipMakerV10.mq4 (30.0 KB, 554 views)
    • File Type: mq4 PipMakerV11.mq4 (30.2 KB, 2601 views)
    Last edited by don_forex; 08-27-2010 at 11:08 PM. Reason: Update to EA
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  2. 06-16-2007 05:04 PM #2
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    Closing routine error

    This is what I was referring to about the multiple losing order closing when they shouldn't be doing so. Keep in mind I stopped the backtest early because I got the errors I needed... That is why the drop at the end...
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	TesterGraph.gif 
Views:	36668 
Size:	9.2 KB 
ID:	36224  
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  3. 06-16-2007 09:12 PM #3
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    Profit Potential

    This is what most of the testing results look like. Obviously, this will depend on account size and optimization. Once again, notice the small step-downs where the losing orders closed out improperly. Still working on that issue.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	TesterGraph.gif 
Views:	36263 
Size:	11.6 KB 
ID:	36241  
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  4. 06-17-2007 06:44 PM #4
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    Martingale? Yes and No

    This really is a combination of many different types of systems. It can be used many different ways. The primary difference for this EA is the close routine. Where most martingale and grid type systems close all buy or sell orders once a profit level is reached, this one takes and closes the orders that are in profit along with a losing order. This, in effect, behaves a little more along the lines of a grid system. The Multiplier (martingale) variable simply determines the rate at which the orders are incremented. Multiplied = Martingale, not Multiplied = Grid.

    So, to answer your question, no, it doesn't use a Martingale strategy for MM...

    Don

    PS - Feel free to Skype me @ don_forex and mention the EA in the comments
    Last edited by don_forex; 06-17-2007 at 06:50 PM.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  5. 06-17-2007 07:01 PM #5
    Michel
    Michel is offline Senior Member
    Points: 25,934, Level: 23
    Level completed: 26%, Points required for next Level: 1,266
    Overall activity: 0%
    Join Date
    Feb 2006
    Posts
    594
    Points
    25,934
    Level
    23
    Achievements:
    Recommendation Second ClassVeteran500 Experience Points
    PHP Code:
         OrderSelect(HighestSellTicket, SELECT_BY_TICKET);
         
    OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red); 
    You are closing sells on Bid prices and buys on Ask prices
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  6. 06-17-2007 07:05 PM #6
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points
    Quote Originally Posted by Michel
    You are closing sells on Bid prices and buys on Ask prices
    So, if those were changed, do you think it would make a difference?

    Don
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  7. 06-17-2007 07:12 PM #7
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    Changed MODE_BID & MODE_ASK

    Didn't help. Any other suggestions?
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	TesterGraph.gif 
Views:	35605 
Size:	13.5 KB 
ID:	36324  
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  8. 06-17-2007 07:28 PM #8
    Michel
    Michel is offline Senior Member
    Points: 25,934, Level: 23
    Level completed: 26%, Points required for next Level: 1,266
    Overall activity: 0%
    Join Date
    Feb 2006
    Posts
    594
    Points
    25,934
    Level
    23
    Achievements:
    Recommendation Second ClassVeteran500 Experience Points
    PHP Code:
                OrderSelect(HighestSellTicket, SELECT_BY_TICKET);
                
    OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_BID), 5, Red);
                
    LowestBuy=1000; HighestBuy=0; 
    You close a sell then you reset the buys params and vice versa. Is what do you want to do ?
    because sometime it looks more logic :
    PHP Code:
                OrderSelect(LowestBuyTicket, SELECT_BY_TICKET);
                
    OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red);
                
    LowestBuy=1000; HighestBuy=0; 
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  9. 06-17-2007 08:16 PM #9
    wolfe's Avatar
    wolfe
    wolfe is offline Senior Member
    Points: 74,911, Level: 40
    Level completed: 15%, Points required for next Level: 3,589
    Overall activity: 0%
    Join Date
    Jan 2006
    Posts
    845
    Points
    74,911
    Level
    40
    Achievements:
    Veteran500 Experience Points
    Please look at report. What do you do about all the losing trades that accumulate? These will kill your account.
    Attached Files
    • File Type: htm Pip Maker.htm (336.7 KB, 3050 views)
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  10. 06-17-2007 08:33 PM #10
    don_forex's Avatar
    don_forex
    don_forex is offline Member
    Points: 201,541, Level: 59
    Level completed: 10%, Points required for next Level: 292,459
    Overall activity: 0%
    Join Date
    Oct 2005
    Posts
    76
    Points
    201,541
    Level
    59
    Achievements:
    Veteran250 Experience Points

    I think it is now fixed!

    I looked at the code a little closer. When the positive orders are closed the lowest and highest variables are reset. The losing order's ticket number is reset. For example...

    CloseBuysinProfit();
    OrderSelect(HighestSellTicket, SELECT_BY_TICKET);
    OrderClose(OrderTicket(), OrderLots(), MarketInfo(OrderSymbol(), MODE_ASK), 5, Red);
    LowestBuy=1000; HighestBuy=0;
    HighestSellTicket=0;

    It closed the buys in profit, LowestBuy and HighestBuy are reset. The HighestSell was closed and it was reset. That is the way it should be. There were inconsistencies with some of the combinations. I have now corrected them.

    @ wolfe

    You will always have orders that are open and at a loss. Nothing gets closed out until profit is made. That is why it is imperative that optimizations are done!

    Then fixed version will be placed on post #1

    Don
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    manmenthol likes this.
    Reply With Quote Reply With Quote

Page 1 of 217 1231151101 ... Next LastLast
501 501 Attachment(s)

Quick Navigation Martingale/Average Cost and Hedging Top
  • Site Areas
  • Settings
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Forums
  • Announcements
    1. Announcements Blog
  • Exclusive Forum
    1. Elite Section
  • Forex Press
    1. Analytics
    2. Articles
    3. Success Stories
  • Discussion Areas
    1. General Discussion
    2. Metatrader 4
      1. Metatrader 3
    3. Metatrader 5
    4. Post and compare Trades
    5. Setup Questions
    6. Suggestions for Trading Systems
    7. Documentation
    8. Strategy Trader
  • Non Related Discussions
  • Downloads
    1. Indicators - Metatrader 4
      1. Indicators - Metatrader 3
      2. Indicators - Metatrader 5
    2. Manual trading systems
    3. Expert Advisors - Metatrader 4
      1. TSD Expert Advisors
      2. Expert Advisors - Metatrader 5
      3. Expert Advisors - Metatrader 3
    4. Tools and utilities
    5. Tools and utilities - Strategy Trader
  • Trading systems
    1. CatFx50
    2. Brain Systems
    3. Ema Cross
    4. Harmonic trading
    5. The "XO"-Method
    6. Phoenix
    7. Dolly
    8. Digital Filters
    9. Martingale/Average Cost and Hedging
  • Automated Trading
    1. News/Signal Trading
    2. FX Signals Marketplaces
  • Commercial systems
    1. Commercial Trading Systems and indicators
    2. Raw Commercial Ideas
    3. Evaluate Commercial Ideas
  • Brokers
    1. Metatrader brokers
  • Programming
    1. MetaTrader Programming
    2. TradeStation Programming
  • Training
    1. Metatrader
      1. Metatrader 4 mql 4 - Development course
        1. Questions
        2. Lessons
    2. TradeStation

» Popular Tags

analysis backtest best broker breakout broker charts close all orders script copier data window day trading decompile ex4 ea ma EQUITY EUR/USD eurusd exit strategies expert expert adviser expert advisor

» Rankings

Hottest Threads

1  Eurusd/gbpusd
2  CatFx50
3  10points 3.mq4
4  FxOpen
5  Multi Timeframe Indicators

view more
 

Most Popular Threads

1  Multi Timeframe In...
2  CatFx50
3  Something interesting pl...
4  The Murrey Math Trading System
5  Show Us Your Best

view more

» FEATURED BROKERS



« Previous Thread | Next Thread »

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Price action reversal EA help !!!!!
    By compro99 in forum Expert Advisors - Metatrader 4
    Replies: 5
    Last Post: 11-18-2009, 06:39 PM
  2. Want some action? FX of course
    By Kirsty_FX in forum Suggestions for Trading Systems
    Replies: 2
    Last Post: 05-17-2007, 02:15 AM
  3. EA Based on Price Movement
    By babarmughal in forum Expert Advisors - Metatrader 4
    Replies: 10
    Last Post: 05-29-2006, 07:56 PM
  4. Bar Action
    By Shahzadfx in forum Expert Advisors - Metatrader 4
    Replies: 16
    Last Post: 04-04-2006, 04:38 AM

Tags for this Thread

  • adaptive RSI,
  • ADAPTIVE RSI.EX4,
  • ADXMA,
  • bless ea,
  • cache:QNp-4lQtnkIJ:www.forex-tsd.com/martingale-average-cost-hedging/8126-pipmaker-v1-price-action-b,
  • don_forex,
  • ea pipmaker,
  • forex,
  • forex pipmaker,
  • Forex price action,
  • forex price action EA,
  • forex tsd,
  • forex tsd pipmaker,
  • forex-tsd,
  • i_Trend.ex4,
  • ordersend error 4051,
  • pallada,
  • pallada ea,
  • pip maker,
  • Pipmaker,
  • pipmaker 15,
  • pipmaker 9-1,
  • pipmaker ea,
  • pipmaker expert,
  • pipmaker expert advisor,
  • pipmaker forex,
  • pipmaker Forex TSD,
  • PipMaker mq4,
  • PipMaker MT4,
  • pipmaker settings,
  • pipmaker v10,
  • pipmaker v14,
  • PIPMAKER V15,
  • pipmaker v15_3,
  • PipMaker v5,
  • pipmaker v9,
  • PipMakerV5aNeo,
  • PipMaker_NeoV5a_Rodmod8.mq4,
  • pipmaker_v15,
  • Pipmaker_V15.mq4,
  • Pipmaker_V15_4.mq4,
  • Price,
  • price action,
  • price action ea,
  • price action expert advisor,
  • price action forex,
  • price action forex trading,
  • price action mq4,
  • price action trading,
  • slope direction line,
  • slope direction line modified.mq4,
  • Terminator,
  • terminator ea,
  • tsd forex,
  • USD CDN Terminator EA,
  • www.forex-tsd.com,
  • price,
  • pipmaker v15.1,
  • pipmaker neo,
  • pipmaker v17

View Tag Cloud

Bookmarks

Bookmarks
  • Submit to Digg Digg
  • Submit to del.icio.us del.icio.us
  • Submit to Technorati Technorati
  • Submit to Furl Furl
  • Submit to StumbleUpon StumbleUpon
  • Submit to Reddit Reddit
  • Submit to Facebook Facebook
  • Submit to Blink List Blink List
  • Submit to Google Google
  • Submit to Yahoo My Web Yahoo My Web
  • Submit to Twitter Twitter

Posting Permissions

  • 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
  • [VIDEO] code is On
  • HTML code is Off
  • Trackbacks are On
  • Pingbacks are On
  • Refbacks are On

Forum Rules

Forums
  • Free sections
  • Exclusive sections
  • All sections
Calendar Social Networking
Premium Forum
  • Elite Membership
  • Advanced Membership
All times are GMT. The time now is 07:58 PM.
Terms and Conditions
PRIVACY POLICY
Powered by vBulletin® Version 4.1.11
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Digital Point modules: Sphinx-based search

Subscribe today and get...

Elite Membership
  • Elite Trading Systems
  • Propietary Indicators
  • Private Performance Reports
  • Elite EAs Source Code
  • 24/5 Trading Support!
Advanced Membership
  • Elite benefits, plus:
  • - MT4 & MT5 cutting-edge indicators.
  • - Advanced propieatry indicators and its source codes.
  • - Free conversion of MT4 indicatiors to MT5.
View our best offer!