Swiss Army EA (Automatic order management) - page 30

 

any working/winning combinations?

I'm trying to run 2 or 3 instances of this to manage a trade: one to open a hedge if a stoploss is hit; one as a break even, and one as a trailing stop.

Not having much success, seeing too many big moves that I get trailed out of & on the loss side the hedge doesn't open.

Does anyone have any winning combinations of presets to share?

 

useful EA

I have finally found what i was looking for a great ea to manage my trades. However, seem to have problem understanding this break even and break even slide. Would be glad if someone could explain it. Read it somewhere here but cant get it

 

Found the answer

okehiedon:
I have finally found what i was looking for a great ea to manage my trades. However, seem to have problem understanding this break even and break even slide. Would be glad if someone could explain it. Read it somewhere here but cant get it

Ha found the answer to my question. Indeed if you seek you will find. Wonder if the ea can operate in stealth mode hiding the tp and sl.

if:

Breakevenat = 15

Breakevenslide = 10

When you have +15 pips it will move the stoploss to 10 pips level.

If you want to move thestoploss to opening price when you have 15 pips ,you have to set:

Breakevenat = 15

Breakevenslide = 0

and use the "trailing stop" to manage next pips and stop loss leve

 

Swiss Ar,my manage with decimal profit

ryanklefas:
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.

SWISS ARMY EA:

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):

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.

The trailing stop is always X pips BEHIND the current price, X being the number that you specify.

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.

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

Hi ryanklefas,

Thanks a lot for this EA, I would like to have the EA Manage EA with decimal point profit like 2.60, 2.75 USD etc, How do do it? Thanks in advance

 

Please help

ryanklefas:
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.

SWISS ARMY EA:

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):

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.

The trailing stop is always X pips BEHIND the current price, X being the number that you specify.

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.

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

Thank you ryanklefas very much for the very versatile EA! Could you please help me set up the conditions for the following case:

1. I'd like to hedge my open position immeditately (lets say my original position is a buy, it'd immediately open a sell position)

2. When the new hedging (sell) position is in profit (even +1 pip), I'd like to set a trailing stop at 30 pips (that means if the trailing stop is hit after a maximum of 1 pip gain, there would be a net loss of 29 pips in that case).

Cheers,

 

Do anyone has a "zero divide" error since updating to 222 ?

 

Hi

Can this EA handle a Chandelier Exit ?

eg. 1.6xATR(20) hanging from the bar high when going long ?

or is there another EA for this that automatically exits a trade?

 
adam777:
Hi

Can this EA handle a Chandelier Exit ?

eg. 1.6xATR(20) hanging from the bar high when going long ?

or is there another EA for this that automatically exits a trade?

SOLVED using the Guppy "Count Back Line" manually.

If anyone has the indicator or EA, please post here or PM me.

Thanks

Adam

 
adam777:
SOLVED using the Guppy "Count Back Line" manually.

If anyone has the indicator or EA, please post here or PM me.

Thanks

Adam

Chandelier exit on this post: https://www.mql5.com/en/forum/173255

 

pair

ryanklefas:
Set "ManageBy_Symbol" to true and apply it to the symbol you want it to manage, and I think it'll do what you're looking for. Also, could you post these other EAs you're talking about. I'm curious to know what they are like.

wt currency pair