Like Tree2Likes
  • 2 Post By freewayfx

Thread: ProfitKeeper: Automated closeAll take profit tool.



  1. #1
    Join Date
    Apr 2009
    Posts
    36
    Points
    145
    Credits
    190
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow

    ProfitKeeper: Automated closeAll take profit tool

    There were many people requesting some type of equity monitoring tool that can lock in profits after a pre-determined account equity is reached (e.g. close all open trades when profit target is hit). Profitkeeper was built to fulfill this gap for professional and casual traders looking to focus on the bottom line of their equity. This was designed mainly for cost averaging strategies, and martingale lovers will probably see this as very useful. Anyone looking for an ability to forward-test any type of entry strategy to see how well they would perform after the fact can use ProfitKeeper.

    Because of the compounding ability, this is great for larger accounts like hedge funds. I used to use this tool daily on VPS to test like 30-50 demo accounts of varying strategies. I decided to give it away for free mainly because the logic is incorporated the into entry EAs to build a complete system (entry/exit handled by one EA). Hopefully I will will update with a video tutorial maybe in a week or so.

    Installation: Profitkeeper_EA_FREE.ex4 file belongs in '...\experts folder'. profitkeeper.dll goes in '...\experts\libraries' folder. Ex4 file was compiled in mt4 build 402. Should work in previous/later versions without problem.

    - restart MT4. You should see Profitkeeper_EA_FREE in the navigator 'expert advisors' folder. Drag it to any open chart. If you did everything correctly, your chart should look something like the screenshot below. Best to use a 1 Minute Chart. Not for the calculations (uses time loop, not incoming ticks, to recheck calculations), but the closeall draws triangles and dashed lines for all of the trades it closes. Longer timeframes will make the chart become very messy when closing many trades.

    There is a separate .png file that explains the inputs. It may look a little intimidating to the uninitiated, but once you get used to it you'll probably never go back to trading manual TP again.

    Notes: for email functionality, you must properly setup email settings in MT4 email tab [Tools > Options > Email].
    - use only 1 PK per terminal
    - The PK uses a time loop (checking account equity twice per second), so you can trade multiple pairs and focus on net profits. The drawback is that you cannot change the EA input settings once the EA is started. To change settings, you must remove the EA from chart, delete the profitkeeper.ini file [...\experts\libraries], and then apply PK to chart again.
    - take extra care when using multiple sets (compounding/scaling). Attention to detail is important, especially when using live account.
    - there is a 400-500 character limit that MT4 has when pulling values from a preset file (.set) . So if you have a very long list of values, when you load the preset, you may have to manually re-copy/paste inputs for those fields prior to starting PK.
    - there is a "resume" feature in case of computer/terminal crash and restart unattended, but it is much better to use an always-on computer. The resume feature will also not work correctly if using long inputs (400+ characters)

    I hope that's everything. Constructive feedback is appreciated. The mq4 source code, if it is made available, will be posted in the commercial forum, or you can PM myself.

    update 11/26/2011: Fixed minor bug that caused dll crash if any single input value was greater than 99,999,999.99 . I'm sure many of you trade with over $100 million dollars anyway . Profitkeeper_FREE_kit.zip

    Download:
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	profitkeeper 3.0 dashboard.png 
Views:	535 
Size:	102.9 KB 
ID:	125670  
    Attached Files
    Last edited by 4EverMaAT; 11-25-2011 at 08:05 PM. Reason: updated profitkeeper file

  2. #2
    freewayfx is offline Member
    Join Date
    Jun 2011
    Posts
    81
    Points
    232
    Credits
    0
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow
    Quote Originally Posted by 4EverMaAT View Post
    There were many people requesting some type of equity monitoring tool that can lock in profits after a pre-determined account equity is reached (e.g. close all open trades when profit target is hit). Profitkeeper was built to fulfill this gap for professional and casual traders looking to focus on the bottom line of their equity. This was designed mainly for cost averaging strategies, and martingale lovers will probably see this as very useful. Anyone looking for an ability to forward-test any type of entry strategy to see how well they would perform after the fact can use ProfitKeeper.

    Because of the compounding ability, this is great for larger accounts like hedge funds. I used to use this tool daily on VPS to test like 30-50 demo accounts of varying strategies. I decided to give it away for free mainly because the logic is incorporated the into entry EAs to build a complete system (entry/exit handled by one EA). Hopefully I will will update with a video tutorial maybe in a week or so.

    Installation: Profitkeeper_EA_FREE.ex4 file belongs in '...\experts folder'. profitkeeper.dll goes in '...\experts\libraries' folder. Ex4 file was compiled in mt4 build 402. Should work in previous/later versions without problem.

    - restart MT4. You should see Profitkeeper_EA_FREE in the navigator 'expert advisors' folder. Drag it to any open chart. If you did everything correctly, your chart should look something like the screenshot below. Best to use a 1 Minute Chart. Not for the calculations (uses time loop, not incoming ticks, to recheck calculations), but the closeall draws triangles and dashed lines for all of the trades it closes. Longer timeframes will make the chart become very messy when closing many trades.

    There is a separate .png file that explains the inputs. It may look a little intimidating to the uninitiated, but once you get used to it you'll probably never go back to trading manual TP again.

    Notes: for email functionality, you must properly setup email settings in MT4 email tab [Tools > Options > Email].
    - use only 1 PK per terminal
    - The PK uses a time loop (checking account equity twice per second), so you can trade multiple pairs and focus on net profits. The drawback is that you cannot change the EA input settings once the EA is started. To change settings, you must remove the EA from chart, delete the profitkeeper.ini file [...\experts\libraries], and then apply PK to chart again.
    - take extra care when using multiple sets (compounding/scaling). Attention to detail is important, especially when using live account.
    - there is a 400-500 character limit that MT4 has when pulling values from a preset file (.set) . So if you have a very long list of values, when you load the preset, you may have to manually re-copy/paste inputs for those fields prior to starting PK.
    - there is a "resume" feature in case of computer/terminal crash and restart unattended, but it is much better to use an always-on computer. The resume feature will also not work correctly if using long inputs (400+ characters)

    I hope that's everything. Constructive feedback is appreciated. The mq4 source code, if it is made available, will be posted in the commercial forum, or you can PM myself.

    Download:
    Thank you amigo
    this is what I need
    ekman and 4EverMaAT like this.

  3. #3
    Join Date
    Apr 2009
    Posts
    36
    Points
    145
    Credits
    190
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow
    Quote Originally Posted by freewayfx View Post
    Thank you amigo
    this is what I need
    You are welcome.

    I have uploaded new file in first post. The updated version has a fix for very large input numbers. I cannot delete the old file for some reason. So I will also include it here in this post

    Video tutorial is coming momentarily, but it appears that several people have been able to figure it out with existing instructions.
    Attached Files
    Last edited by 4EverMaAT; 11-25-2011 at 09:07 PM.

  4. #4
    Tomcat98's Avatar
    Tomcat98 is offline Senior Member
    Join Date
    Nov 2006
    Posts
    225
    Points
    346
    Credits
    2,822
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    1
    Following
    0
    Follow

    Danger zone.

    Hello everyone,

    Just to inform you that the is a dll. in the Toolkit. As no one knows exactly what's inside, it could hurt your computer as your account...
    Take care with everything which is not Mq4 plain text. (exe. and dll's)
    Be careful.

    Tomcat98

  5. #5
    Join Date
    Apr 2009
    Posts
    36
    Points
    145
    Credits
    190
    Post Thanks / Like
    vBActivity - Stats
    vBActivity - Bars
    Follows
    0
    Following
    0
    Follow
    Quote Originally Posted by Tomcat98 View Post
    Hello everyone,

    Just to inform you that the is a dll. in the Toolkit. As no one knows exactly what's inside, it could hurt your computer as your account...
    Take care with everything which is not Mq4 plain text. (exe. and dll's)
    Be careful.

    Tomcat98
    I apologize for any confusion there. The instructions included clearly indicate that the dll is a part of what makes the EA run. The EA will not start without the required library file. It is a similar to any other dll like 1000s of other free and paid software available for Windows, including the browser that you are using to read this post. If it is not passing an antivirus check, it is probably a false alarm. But please forward the name of the antivirus product you are using, and we will work to get it whitelisted.

    While the EA remains free for personal use, those people interested in the source code may contact me privately.

» Rankings



Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do I set default Stop Loss / Take Profit
    By astro in forum MetaTrader Programming
    Replies: 14
    Last Post: 04-18-2013, 02:55 PM
  2. EA design: Trailing Stop and Take Profit
    By daraknor in forum Ideas and Suggestions
    Replies: 14
    Last Post: 09-18-2011, 10:50 PM
  3. Stop Loss/Take Profit problem
    By caldolegare in forum Metatrader 4
    Replies: 4
    Last Post: 02-17-2007, 05:27 AM
  4. Help adding a take profit to EA
    By console in forum Metatrader 4
    Replies: 1
    Last Post: 01-30-2007, 11:47 PM
  5. Manage Take Profit
    By skydart in forum Metatrader 4
    Replies: 4
    Last Post: 01-26-2007, 09:44 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •