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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Need Risk money management advice - I have 85-80% winning Rate! 54 replies

Need some coding advice, please 2 replies

Need some updated advice on ECN no DD broker 21 replies

Need some advice 17 replies

New Joinee - Need some advice 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 3
Attachments: Trade Management EA - Need some advice
Exit Attachments

Trade Management EA - Need some advice

  • Post #1
  • Quote
  • First Post: Jul 27, 2010 6:30pm Jul 27, 2010 6:30pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Hello All:

I'm having a problem with a trade management EA provided to me by the head of a small, private trade group. The guy is a great trader but not a programmer. The EA was written by someone else; I have permission to post it for review.

This is a simple trade manager that does this: Places OCO's and takes profit at three different levels moving the stops at TP2.

I also would like to note that while I'm no programmer, I do have a fair amount of experience using EA's and seldom make rookie mistakes.
Here's my problem...

The first couple of days the EA worked fine for me. Then it just stopped. What I mean by this, is that when it is waiting to place the orders the chart text will read the entry levels for both orders, then when a trade is opened it will show the profit or loss. When the trade is closed it will say "Not looking for a trade right now"

What is happening now is when I place the the parameters, they will show on the chart, but when the price reaches the point to open a trade it will immediately switch to "not looking for a trade right now". This happens no matter how many times I remove and reset the EA.

A few notes:

This first happened on an IBFX demo when they changed their order method to ECN type. I have tried it on other brokers, with the same result.

After using the EA for a day or so, I went in and changed the coded stops to work with 5 digit so I wouldn't have to do this every time I used it. I then changed the filename, compiled it and tried to use it, and that's when this problem started.

I went back and deleted my file and got a new original from the provider and yet this problem persists. I have tried installing the new file on several different brokers and the result is the same. There are others using this EA just fine, on 4 and 5 digit brokers.

The problem seems to be on my end..any idea's? This is a Vista computer, BTW
Attached File
File Type: mq4 AUTOSURF.mq4   12 KB | 227 downloads
  • Post #2
  • Quote
  • Jul 27, 2010 7:56pm Jul 27, 2010 7:56pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 348 Posts
Howdy,

Didn't test this but see if this works.....
Attached File
File Type: mq4 AUTOSURF[1].mq4   12 KB | 216 downloads
 
 
  • Post #3
  • Quote
  • Jul 27, 2010 8:01pm Jul 27, 2010 8:01pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Thanks bro! I'll get right on it and report back!


Quoting kennyhubbard
Disliked
Howdy,

Didn't test this but see if this works.....
Ignored
 
 
  • Post #4
  • Quote
  • Jul 27, 2010 9:04pm Jul 27, 2010 9:04pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Thanks kenny you fixed it! Thank you soooo much!

Now if I want to adapt it for a 5 digit all I have to do is go into the code and add the zero's where appropriate, correct?

If I can get this to work on ECN type orders I'll be set...another day


Quoting kennyhubbard
Disliked
Howdy,

Didn't test this but see if this works.....
Ignored
 
 
  • Post #5
  • Quote
  • Jul 27, 2010 9:58pm Jul 27, 2010 9:58pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
If I can get this to work on ECN type orders I'll be set...another day[/quote]

Scratch that, looks like it is already doing that, Thanks again, Kenny!
 
 
  • Post #6
  • Quote
  • Jul 29, 2010 5:14am Jul 29, 2010 5:14am
  •  PiPologi$t
  • | Joined Oct 2009 | Status: Member | 21 Posts
Can you tell me what "StopProfit" under Inputs is for?
 
 
  • Post #7
  • Quote
  • Jul 29, 2010 12:11pm Jul 29, 2010 12:11pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
I don't Know exactly. It was put in there by the developer to be used later. Perhaps one of the coders here could take a look and tell us if it's functional.

One other problem with this ea is- It needs some code that will automatically disable itself when a trade has run it's course. I use this on daily and 4Hr charts and after the trade is completed, I like to review the trade on a 15M chart. If I don't remove the ea before changing the chart to another TF it will immediately open a new trade with the parameters that were input hours earlier. Many times I have forgotten this and my demo account reflects this. Idea's anyone? Kenny, perhaps?

If someone could make this happen you will have my eternal gratitude!

Quoting PiPologi$t
Disliked
Can you tell me what "StopProfit" under Inputs is for?
Ignored
 
 
  • Post #8
  • Quote
  • Jul 29, 2010 12:36pm Jul 29, 2010 12:36pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 348 Posts
Ok, here is the EA with unintended initialisation protection.

The StopProfit variable appears to be a variable that is used to calculate the various profit levels as the ea does a partial close. Apart from displaying the info it does not actually appear to have any bearing on what the EA does, so I'm not sure why it is an external parameter.
Attached File
File Type: mq4 AUTOSURF[1].mq4   13 KB | 276 downloads
 
 
  • Post #9
  • Quote
  • Jul 29, 2010 12:56pm Jul 29, 2010 12:56pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Quoting kennyhubbard
Disliked
Ok, here is the EA with unintended initialisation protection.

The StopProfit variable appears to be a variable that is used to calculate the various profit levels as the ea does a partial close. Apart from displaying the info it does not actually appear to have any bearing on what the EA does, so I'm not sure why it is an external parameter.
Ignored
Kenny you are awesome! Thank you so much I will test immediately.
I tried to PM you yesterday, but couldn't (no link) I wasn't going to pester you or anything, just wanted to say thanks one more time....
 
 
  • Post #10
  • Quote
  • Jul 29, 2010 1:06pm Jul 29, 2010 1:06pm
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 348 Posts
You are welcome.....

The initialisation protection will give you a warning for the most common cases of accidental running and EA such as terminal closure or timeframe changes, etc. If you choose cancel, on the message box, it will remove the EA from the chart.

The ones that it does not give you a warning for are when you bring up the EA properties box intentionally(click on the smiley face), dragging the EA onto the chart after intentionally removing a previous EA, or when you close a chart.

Hope it helps.
 
 
  • Post #11
  • Quote
  • Jul 29, 2010 1:20pm Jul 29, 2010 1:20pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
I just tested the fuction and it works But you knew that already, didn't you...nice work, Kenny. Thanks again.

Kenny, do you do private work also? If so, shoot me a PM.

Quoting kennyhubbard
Disliked
You are welcome.....

The initialisation protection will give you a warning for the most common cases of accidental running and EA such as terminal closure or timeframe changes, etc. If you choose cancel, on the message box, it will remove the EA from the chart.

The ones that it does not give you a warning for are when you bring up the EA properties box intentionally(click on the smiley face), dragging the EA onto the chart after intentionally removing a previous EA, or when you close a chart.

Hope it helps.
Ignored
 
 
  • Post #12
  • Quote
  • Jul 29, 2010 11:27pm Jul 29, 2010 11:27pm
  •  roni
  • | Joined Mar 2010 | Status: Member | 11 Posts
do this EA use hidden/stealth SL & TP mode?
 
 
  • Post #13
  • Quote
  • Jul 30, 2010 1:35am Jul 30, 2010 1:35am
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 348 Posts
Yes, it uses a a market order to close. Server side stops are incompatible with partial closing of orders.

IMHO, the concept of hidden stops is way over-rated. I have never seen any evidence that they are effective. The fact is that stoplosses are stop orders, which by their nature are trend or 'run-causing' orders. Often stops are clustered together globally by traders around the world and this has the effect of consuming liquidity that causes price to run and this is mistaken as stop-hunting. If you then come along with your market order, you will simply have your order at the back of the que and you will be slipped more than if you had a server stop.

The broker has the ability to 'spike' the data feed, but he cannot spike your particular feed independently, so unless you feel that your trade is moving the market, it is unlikely that there will be a significant difference in the outcome between a server based stop and a 'stealth' stop.

In terms of a takeprofit, this is the most effective way you can exit a trade. It is like a limit order as I have never seen slippage on my TP to below the level of the server side TP. I have seen a profitable order closed for a loss by closing it through a market order though.
 
 
  • Post #14
  • Quote
  • Aug 12, 2010 2:27pm Aug 12, 2010 2:27pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Hi kenny, I had a request from the leader of the trade group to ask if I could get some modifications to this EA (it has been working great BTW).

He sent me a message this morning asking...what we need it to do is use just two TP's- with stops moved to BE when TP1 is reached.

I feel a little funny to just come here to ask for something when I have little to contribute, but I figure it's worth a shot.

Thanks for considering, Andy
 
 
  • Post #15
  • Quote
  • Aug 14, 2010 4:40am Aug 14, 2010 4:40am
  •  kennyhubbard
  • Joined Sep 2008 | Status: Member | 348 Posts
Andy, did you get my PM?
 
 
  • Post #16
  • Quote
  • Aug 17, 2010 1:33pm Aug 17, 2010 1:33pm
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
I did kenny thanks. I was a slacker this weekend. You should have my reply by now. Thanks for your generosity!!

uote=kennyhubbard;3947633]Andy, did you get my PM?[/quote]
 
 
  • Post #17
  • Quote
  • Aug 26, 2010 2:22am Aug 26, 2010 2:22am
  •  traderjai_inhi
  • | Joined Jul 2006 | Status: I'm just saying... | 1,153 Posts
try increasing the sl (and probably your take profits) to 500 vs 50.

It appears you are using 5 digit broker so what is 50 pips to a 4 digiter is 500 to a 5 digiter.

By the way, did you ever get the stops to BE change? I would be interested if your willing to share.
 
 
  • Post #18
  • Quote
  • Last Post: Edited at 4:09am Aug 26, 2010 3:41am | Edited at 4:09am
  •  wolfeman
  • | Joined Apr 2007 | Status: Member | 447 Posts
Forget that last post of mine, I deleted it. Sometimes I'm an idiot...






Quoting traderjai_inhi
Disliked
try increasing the sl (and probably your take profits) to 500 vs 50.

It appears you are using 5 digit broker so what is 50 pips to a 4 digiter is 500 to a 5 digiter.

By the way, did you ever get the stops to BE change? I would be interested if your willing to share.
Ignored
That is a different EA you are asking about, kenny is working on it when he has time.
 
 
  • Platform Tech
  • /
  • Trade Management EA - Need some advice
  • Reply to Thread
0 traders viewing now
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 / ©2022