• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 10:41pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 10:41pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

BASKET TRADE Management: Using multiple trade management EA's on basket trades 8 replies

Alternative Trade Management/Money Management Methods 1 reply

multi-purpose Stoch Alert 11 replies

Successful Trade Management / Risk Management 0 replies

Trade Multi ECN accounts on Multi Brokers ? 1 reply

  • Commercial Content
  • /
  • Reply to Thread
  • Subscribe
  • 56
Attachments: Multi-purpose trade management EA
Exit Attachments
Tags: Multi-purpose trade management EA
Cancel

Multi-purpose trade management EA

  • Last Post
  •  
  • 1 363738Page 3940 41
  • 1 38Page 3940 41
  •  
  • Post #761
  • Quote
  • May 4, 2011 3:17am May 4, 2011 3:17am
  •  Penny
  • | Joined Nov 2009 | Status: Member | 8 Posts
Quoting SteveHopwood
Disliked
I really, really wish people would master the basics before bothering me with 'bugs'.

What the blue blazes makes you think that a pair with a spread the size of GJ will allow a ts of 3? That is a ridiculous idea.

Given that countless others have been using mptm for years without problem, does it not actually occur to you that the fault might be yours?

Really?

Send me looking at my code again with a stupid query like this and I will stop you posting in any of my threads. You too Penny.

Yes, I am cross. I have better things...
Ignored
Congratulations on a great tantrum, Steve.
When I said I had the same problem as Nicastro, I meant with the pair, not with brijon’s ea and a ts of 3, as I do not use that ea. A problem with gj was brought to your attention many months ago but ignored. A small local group of friends use mptm in conjunction with another ea with multiple pairs and have benefitted from the jumping stop feature. However mptm proved so unreliable on gj that we changed to swiss army knife to mange that pair, which incidentally we found reacts much faster than mptm, but does not have the jumping stop feature so we use ts instead. There is also (in our opinion) a bug in the jumping stop hidden feature, so we simply don’t use it. This too has been mentioned by others in the past, but not investigated.
Because we appreciate what we get for free, we do not complain, but enjoy using what works.
I have always found your ranting and raving to be most humorous and entertaining, and up until now I thought that you could not be serious.
I have noticed over the years how easily you forgive yourself when you own errors require yet another fix in post one, yet another’s perceived error is dealt with such harshness, although it is quite entertaining.
Steve if you actually do get cross because other people are prone to error as much as you are, then you ought to do some personal reprogramming before you lose too much of the joy of life. Regards, and thanks for the bits that work.
 
 
  • Post #762
  • Quote
  • May 4, 2011 3:59am May 4, 2011 3:59am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
There are those who are too idle and stupid to sort things out for themselves. What these deadheads fail to realise is this: when they 'contribute' one of their moronic postings, I have to read the damn thing.

This is why I limit most of my threads to posters with something useful to contribute.

I have added this restriction here. Sorry guys but it is the usual thing; the occasional idiot spoiling things for everyone else.

 
 
  • Post #763
  • Quote
  • May 8, 2011 11:16am May 8, 2011 11:16am
  •  pathumracled
  • | Joined May 2009 | Status: Sucessful Praying FxTrader2Investor | 267 Posts
Good day All,
kindly forgive the intrusion, on the off topic.

Can any of our FF family share such an indicator?

The "Free Margin" is the true indication of the health of the account particularly if we are holding trades for protracted periods, and the other nemisis SWAP/COMMISSION is lurking.

NB [Free margin]/[Curent Bbalance] >= 80% is healthy.

P.S. kindly post indi. If not allowed please PM me.


Bless!
 
 
  • Post #764
  • Quote
  • Jul 19, 2011 5:23pm Jul 19, 2011 5:23pm
  •  panamamike
  • Joined Jan 2010 | Status: Member | 1,448 Posts
Any chance a candlestick trailing stop can be added?
 
 
  • Post #765
  • Quote
  • Jul 19, 2011 5:43pm Jul 19, 2011 5:43pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting panamamike
Disliked
Any chance a candlestick trailing stop can be added?
Ignored
Yes. Leave it with me and nag from time to time.

 
 
  • Post #766
  • Quote
  • Jul 19, 2011 6:18pm Jul 19, 2011 6:18pm
  •  panamamike
  • Joined Jan 2010 | Status: Member | 1,448 Posts
Quoting SteveHopwood
Disliked
Yes. Leave it with me and nag from time to time.

Ignored
Many thanks.
 
 
  • Post #767
  • Quote
  • Jul 21, 2011 8:57am Jul 21, 2011 8:57am
  •  pathumracled
  • | Joined May 2009 | Status: Sucessful Praying FxTrader2Investor | 267 Posts
^^^^^^ We need not apply the Suffixes such as "m" USDJPYm wne managing by pairs ^^^^^^^^^^^^

** The latest MPTM adds if required. So the addition of a suffix for the brokers that have such designation may
cause the trade manager not to perate on pais.

Just enter without suffix and the manager will take over from there. Had forgotten that and placed "m" on an account recently and had No functionality where MPTM worked beautifully before. Later removed the suffixes and viola!
DO NOT APPLY SUFFIXES IN THE LATEST MPTM!!!

Bless!
 
 
  • Post #768
  • Quote
  • Jul 23, 2011 12:38pm Jul 23, 2011 12:38pm
  •  kambu
  • | Joined Dec 2009 | Status: Member | 14 Posts
Hello,
I sent PM to Steve to help me understand and use his code the way I wanted and he was generous enough to help me. I must admit that I am new to MQL4 and I don’t know anything but Steve’s code is easy to read and to understand.
I wanted to add two properties to the EA 1) To use the ATR for Jumping stop so the jumping stop is unique for each pair 2) if the Account Equity reach amount in dollars then close all open trades.
So I added a simple code to achieve this


1-To use ATR as jumping stop I added the following variables
extern bool UseAtrPercentage=false; (activate the ATR as jumping stop)
extern int AtrJsPeriod=14; (ATR period)
extern int AtrJsTimeFrame=1440; (ATR time frame)
extern int AtrPercentage=50; (percentage of ATR)
extern int AtrJsShift=1; (ATR shift )


2-To use the Account Equity I added the following variables
extern bool EquityInDollars=false; (change to true if you want to use the it)
extern double EquityDollarProfit=100000; (the amount in Dollars)
Thank you and I hope someone will benefit from it

Kambu



Quoting SteveHopwood
Disliked
I love seeing people trying to adapt my code to their own purposes.

You will need to convert JumpingStopPips into actual pips, then multiply it by point (notice point not Point - this is how I use nearly-same variable in place of their constants)

There is an example of how to convert the result of the ATR call in int CalculatePipsProfit()

So:

 

  1. double AtrValStopLoss = iATR(OrderSymbol(), PERIOD_D1, 14, 1);
  2. Then (the code that converts AtrValStopLoss into pips)
  3. Then multiply the pips by your atr multiplier
  4. Then, whenever using AtrValStopLos in a jumping stop for a buy for example, the formula is: if (ask >= OrderTakeProfit() + (AtrValStopLoss* point) OrderModify(.....)

Or something along these lines. I am not a pro coder and check every line of code I type as soon as I have written it; the above might not be totally correct.

I hope this help. It ain't easy.


Good luck. Incidentally, you can post in my restricted threads now.

Cheers




Quoting kambu
Disliked
Hello Steve,
Thank you very much for the grate EA Multi-purpose trade management EA. I have a question to you regarding the Jumping stop loss settings. In the EA if the user wants to use the JumpingStop the user should specify the JumpingStopPips let’s say I chose JumpingStopPips=60
My Question: Is it possible to use ATR to identify the JumpingStopPips
I looked in the JumpingStopLoss() procedure and I tried to change the value for the JumpingStopPips. I did the following:
void JumpingStopLoss()
{
double AtrValStopLoss = iATR(OrderSymbol(), PERIOD_D1, 14, 1);
JumpingStopPips = AtrValStopLoss*0.5*multiplier;
The goal is to start the JumpingStop after the price is gone by ½ of the ATR and that’s makes the JumpingStop is unique for each pair.
I tested the code but I think my calculation is wrong! I hope your will have time to look into this.
Have a great day
Thank you
Ignored
Ignored
Attached File(s)
File Type: mq4 Multi purpose trade manager - Kambu.mq4   103 KB | 1,009 downloads
 
 
  • Post #769
  • Quote
  • Jul 29, 2011 8:15am Jul 29, 2011 8:15am
  •  paulbt38
  • | Joined Mar 2010 | Status: Member | 244 Posts
Steve

I am using MPTM to manage a basket of trades at the moment but have noticed that it doesn't take swap into account in the basket profit. Could this be added, as far as I can remember I thnk you have added this to some of your ea's in the past?

Cheers

Paul
 
 
  • Post #770
  • Quote
  • Jul 29, 2011 11:02am Jul 29, 2011 11:02am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting paulbt38
Disliked
Steve

I am using MPTM to manage a basket of trades at the moment but have noticed that it doesn't take swap into account in the basket profit. Could this be added, as far as I can remember I thnk you have added this to some of your ea's in the past?

Cheers

Paul
Ignored
Done and uploaded to post 1. Go birdy if it is not correct.

 
 
  • Post #771
  • Quote
  • Aug 2, 2011 12:12pm Aug 2, 2011 12:12pm
  •  dryclean
  • Joined Oct 2008 | Status: Sailing for pips | 2,099 Posts
Does MPTM work across profiles.
What I mean is if I have profile x up and place a trade with MPTM managing it
then I switch to profile y and place a trade

Is MPTM still managing the trade I place on profile X

I don't think so I just want to confirm.
Thank

DC
 
 
  • Post #772
  • Quote
  • Aug 2, 2011 12:29pm Aug 2, 2011 12:29pm
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting dryclean
Disliked
Does MPTM work across profiles.
What I mean is if I have profile x up and place a trade with MPTM managing it
then I switch to profile y and place a trade

Is MPTM still managing the trade I place on profile X

I don't think so I just want to confirm.
Thank

DC
Ignored
mptm will manage trades showing in the trading window if it is loaded onto a chart. It cannot manage trades if either element is missing.

 
 
  • Post #773
  • Quote
  • Aug 2, 2011 1:07pm Aug 2, 2011 1:07pm
  •  dryclean
  • Joined Oct 2008 | Status: Sailing for pips | 2,099 Posts
Just so I am clear as drycleaning fluid is in my small brain

If I have profile X for EU and MPTM set to trade this pair only and a traling SL of 10


and I Now have loaded profile Y with GJ and MPTM set to trade this pair only and a trailing SL of 20

The SL for GJ of 20 will only work and EU is on its own?
 
 
  • Post #774
  • Quote
  • Aug 2, 2011 1:19pm Aug 2, 2011 1:19pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Quoting dryclean
Disliked
Just so I am clear as drycleaning fluid is in my small brain...
Ignored
Hi Dave
Please remember when you switch profiles the charts in the old profile are closed (and any EA running on them) and new charts in the new profile are open. If the SL was not sent to the broker then it is not active.

Kind regards
PS. please forgive me for stating the obvious and I am aware you know this stuff but with the way your politicians are carrying on you can be forgiven for forgetting if you are living in the USA OR the old USSR.
 
 
  • Post #775
  • Quote
  • Aug 2, 2011 1:24pm Aug 2, 2011 1:24pm
  •  dryclean
  • Joined Oct 2008 | Status: Sailing for pips | 2,099 Posts
Thanks for stepping In I was waiting to get chewed out by Steve
LOL.

So once a profile is changed other than fixed SL or TP that got sent to the crim

a trailing stop will not work on a closed profile
 
 
  • Post #776
  • Quote
  • Aug 2, 2011 1:30pm Aug 2, 2011 1:30pm
  •  astral77
  • | Joined Nov 2009 | Status: Member | 1,196 Posts
Quoting dryclean
Disliked
Thanks...
Ignored
If I am not mistaken Steve mentioned that he worked in a dry cleaning shop as a student so he knows what those chemicals and summer heat can do to the memory (not to mention the crisis caused by self serving politicians) and in any case you are a senior member of the club.

You are correct the fixed SL and TP are safe but trailing is not.

Kind Regards
 
 
  • Post #777
  • Quote
  • Aug 2, 2011 3:11pm Aug 2, 2011 3:11pm
  •  dryclean
  • Joined Oct 2008 | Status: Sailing for pips | 2,099 Posts
You Rock!

Yea it has been 85-95 degrees everyday with HIgh High humidity
I hate it
but it beats shoveling snow
 
 
  • Post #778
  • Quote
  • Aug 3, 2011 10:20pm Aug 3, 2011 10:20pm
  •  panamamike
  • Joined Jan 2010 | Status: Member | 1,448 Posts
Quoting SteveHopwood
Disliked
Yes. Leave it with me and nag from time to time.

Ignored
Reminder to add candle trailing to MPTM
 
 
  • Post #779
  • Quote
  • Aug 4, 2011 4:42am Aug 4, 2011 4:42am
  •  SteveHopwood
  • | Commercial Member | Joined Apr 2007 | 8,331 Posts
Quoting panamamike
Disliked
Reminder to add candle trailing to MPTM
Ignored
It is not just the nag that counts, but the timing of the nag and this just happens to coincide with something I am working on at the mo.

Done and uploaded to post 1 - see the Updates section for details.

I have not tested this. The code is simple enough but we all know what a dimwit I am, so sing out if it does not work as intended.

 
 
  • Post #780
  • Quote
  • Aug 5, 2011 9:56am Aug 5, 2011 9:56am
  •  panamamike
  • Joined Jan 2010 | Status: Member | 1,448 Posts
Muchas gracias mi amigo!
 
 
  • Commercial Content
  • /
  • Multi-purpose trade management EA
  • Reply to Thread
    • 1 363738Page 3940 41
    • 1 38Page 3940 41
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023