Swiss Army EA (Automatic order management)

Register Forex TV Video Directory FAQ Members List FX Calendar Search Today's Posts Mark Forums Read


Go Back >

Preferred Links
Thread Tools Display Modes
  post #1  
Old 06-07-2009, 02:19 PM
Tavoul's Avatar
Tavoul Tavoul is offline
Senior Member
Join Date: May 2009
Posts: 514
Thanks: 0
Thanked 118 Times in 59 Posts
Tavoul is on a distinguished road
Default Swiss Army EA (Automatic order management)

What it is:
Below, you'll find my Swiss Army EA. I've designed it so that it can manage orders in your MT4 terminal using a large variety of methods. Features includes breakevens, trailing stops, setting/removing for takeprofits and stoplosses, and many close-out conditions; you also have ability to tell the EA which orders it can manage. This EA is an attempt to do away with little scripts for deleting orders and whatnot and just put ALL that crap in one nice package. I figure this EA should be useful for manual traders, and may also to augment EAs that are skimpy on their features, although I cannot guarantee that it will be fully compatible with all EAs.

How to use it:
Apply it to a chart. The orders that it is allowed to manage can be changed by changing the "Specific" options. It will perform trailing stops, breakevens, or closing of orders (as specified by user) for whatever orders it is allowed to manage (also specified by user). For example, if Swiss Army EA is allowed to manage all orders and you enable the trailing stops to 30, it will apply a trailing stop of 30 to all orders in your terminal. The EA will print to the screen what it is allowed to do, so that should help you along in figuring out what it is doing. Each instance of Swiss Army can only hold a certain number of settings without causing conflict within itself. If you require many different management features to be enabled, you may have to run another instance of Swiss Army to do everything that you want. Remember: You need one CONDITION, one ACTION, and one ORDER TYPE, at least.

What I need from you, the user:
If you want to use the EA, but don't know how to get it to what you want, post and ask me about it. I'll be able to provide you with a list of settings to use if the EA currently supports it. Please leave feedback and tell me what kind of management options you'd like to see in future versions; feel free to post any scripts, code, or functions that you believe would be useful.

It does everything but place its own orders!

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

New Features for Version 1.51 (June 26, 2007):

IMPROVED: The actions that appear under ths "Modify Orders" section can now modify pending orders
IMPROVED: TakeProfits and Stoplosses, when set, will be applied to any hedge orders that are opened by Swiss Army
CHANGED: TakeProfits and Stoplosses, when set, will be in relation to the order's open price, NOT the current price (as in v1.5)
NEW FEATURE: RequireAllConditions when selected, will require that all selected conditions be met before actions will occur. For example, if a drawdown of 1% and Time_Activation at 12:30 are selected, actions will occur if at 12:30, if there is a drawdown of 1% or more.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Questions and Answers for v1.51 (First time users should read this part):

How does it work? Is it going to start trading by itself?
Swiss Army DOES NOT trade. It does not place any order according to any strategy, nor does it use indicators for any reason. It's sole purpose is to "manage" trades that already exist on your account.

Your TrailingStop when triggered will move SL to current market price which will most of the time close the trade anyway because price will most likely move a few pips against you do to normal market fluctuation. If not, how often does TS keep moving SL? or does it move it anymore?
The trailing stop is always X pips BEHIND the current price, X being the number that you specify.

BreakevenAt=10 when triggered will move SL to trade open price, then when you hit another 10 (20 pip profit) will it move up another ten or is that what BreakevenSlide does? once BreakevenAT is triggered thats it for BEA and BreakevenSlide=2 takes over and will keep moving SL 2 pips every +2pip more in profit price moves, correct?
This is not how the Breakeven feature works. The Breakeven feature can only be activated once, and after that, it will no longer modify the stops.

What do the settings BreakEvenAt, BreakEvenSlide and TrailingStop mean? For example, what does this setting do?

BreakEvenAt = 10
BreakEvenSlide = 20
TrailingStop = 10
Breakevens and TrailingStops are two different methods for managing the orders' stoplosses.

Because "BreakEvenAt" is at 10, when an order is profitable by 10 pips, its stoploss will be set to the open price (which will make it "breakeven") The "BreakEvenSlide" at 20 will move the "breakeven" point 20 pips higher than the order's open price, which, in this case, is not possible; therefore the "BreakEvenSlide" input must always be less than the "BreakEvenAt" input.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

KNOWN BUGS for v1.51:

"Largest Recorded" statistics are not calculated.
Actions not fully executing for some conditions (due to time lag)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

WISH LIST (whenever I get around to them):

Day of Week selectable for Time_Activation
Specific Orders selectable as an "Order Type"
Margin Statistics on screen
Live Help
Reply With Quote
The Following User Says Thank You to Tavoul For This Useful Post:
Blazer (06-15-2009)
  post #2  
Old 09-08-2012, 11:48 PM
Jason Jason is offline
Junior Member
Join Date: Jun 2012
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Jason is on a distinguished road

Thanks for that info
Live Help
Reply With Quote

Thread Tools
Display Modes

Posting Rules
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
HTML code is Off

Forum Jump

View My Stats