Forex Factory
  • Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • User/Email: Password:
  • 2:04pm
  • Search
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • 2:04pm
Search

Options

Search

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

Stop Loss vs. Hidden Stop Loss 26 replies

I need Script for Buy Stop and Sell Stop orders at 00 Level 2 replies

Script needed for automatic pending orders 0 replies

script to "close open orders" and "open opposite orders" 3 replies

Automatic stop loss change 8 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 5
Attachments: EA/Script for automatic stop loss on open orders
Exit Attachments

EA/Script for automatic stop loss on open orders

  • Post #1
  • Quote
  • First Post: May 7, 2015 12:57pm May 7, 2015 12:57pm
  •  sebas1987
  • | Joined Dec 2014 | Status: Member | 78 Posts
Hello,

I need an EA that put automatic Stop Loss in open orders (Only Stop Loss , no take profit)

I research but all that i find put SL and TP

Can anyone help me?

Thanks!
  • Post #2
  • Quote
  • May 8, 2015 2:10am May 8, 2015 2:10am
  •  shape
  • Joined Apr 2015 | Status: Member | 3 Posts
Try these....
Attached Files
File Type: ex4 basket_profit.ex4   13 KB | 973 downloads
File Type: ex4 Equity Sentry v1.4c.ex4   46 KB | 859 downloads
File Type: ex4 Swiss Army EA v1.51.ex4   29 KB | 871 downloads
La misura dell'intelligenza è data dalla capacità di adattamento
  • Post #3
  • Quote
  • May 9, 2015 1:44am May 9, 2015 1:44am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Hi,
please try this
You can input SL, TP and Trailing Stop in any combination
ie, if you just want the SL applied then leave the other 2 inputs at 0
It will only work for the chart symbol that the EA is attached to. If you attach it to EURUSD chart, it will modify all EURUSD trades only.
If you place a trade with a SL or TP, it will not be modified, but if you have opted to use the trailing stop, it will kick in when the level for that trade is reached.
It will automatically calculate for 4 or 5 digit brokers, but for other instruments you will need to input pip decimal
ie
Gold you may consider 1 pip to be 0.1
Attached File
File Type: ex4 Auto SL and TS.ex4   9 KB | 3,084 downloads
Please Do Not PM Me With Coding Enquiries
1
  • Post #4
  • Quote
  • Aug 24, 2015 3:08pm Aug 24, 2015 3:08pm
  •  tylerbose
  • Joined Oct 2011 | Status: don't trade like i do | 475 Posts
Quoting Gumrai
Disliked
Hi, please try this You can input SL, TP and Trailing Stop in any combination ie, if you just want the SL applied then leave the other 2 inputs at 0 It will only work for the chart symbol that the EA is attached to. If you attach it to EURUSD chart, it will modify all EURUSD trades only. If you place a trade with a SL or TP, it will not be modified, but if you have opted to use the trailing stop, it will kick in when the level for that trade is reached. It will automatically calculate for 4 or 5 digit brokers, but for other instruments you will...
Ignored
thanks Gumrai
can we have the mql4, please ?
i lose money for a living
  • Post #5
  • Quote
  • Aug 24, 2015 7:37pm Aug 24, 2015 7:37pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Sorry, I don't often release the source code.
Please Do Not PM Me With Coding Enquiries
  • Post #6
  • Quote
  • Mar 24, 2016 6:46am Mar 24, 2016 6:46am
  •  fxmelle
  • | Joined Nov 2014 | Status: Member | 22 Posts
Hi does it work for pending order or just instant execution? thanks
  • Post #7
  • Quote
  • Mar 24, 2016 6:55am Mar 24, 2016 6:55am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting fxmelle
Disliked
Hi does it work for pending order or just instant execution? thanks
Ignored
If you are talking about my EA, then yes, it will work for pending orders.
Please Do Not PM Me With Coding Enquiries
  • Post #8
  • Quote
  • Mar 24, 2016 8:14am Mar 24, 2016 8:14am
  •  fxmelle
  • | Joined Nov 2014 | Status: Member | 22 Posts
THanks! Works perfectly!
  • Post #9
  • Quote
  • Nov 24, 2016 4:21am Nov 24, 2016 4:21am
  •  slc12312
  • | Joined Feb 2007 | Status: Member | 157 Posts
Well, either I am doing something wrong, or it isn't working for me. Should I see the stop loss and take profit in the trade bar at the bottom of the screen?
  • Post #10
  • Quote
  • Dec 20, 2016 5:08pm Dec 20, 2016 5:08pm
  •  candyman752
  • Joined Mar 2013 | Status: Member | 1,250 Posts
Quoting sebas1987
Disliked
Hello, I need an EA that put automatic Stop Loss in open orders (Only Stop Loss , no take profit) I research but all that i find put SL and TP Can anyone help me? Thanks!
Ignored
 
#8d34c9
  • Post #11
  • Quote
  • Dec 20, 2016 6:24pm Dec 20, 2016 6:24pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting candyman752
Disliked
{quote} Â
Ignored
is "Â" meant to mean something?
Please Do Not PM Me With Coding Enquiries
  • Post #12
  • Quote
  • Dec 25, 2016 8:13am Dec 25, 2016 8:13am
  •  acelfx
  • | Joined Nov 2016 | Status: Member | 26 Posts
how it can put SL ??is that SL will be more perfect?
  • Post #13
  • Quote
  • Dec 26, 2016 10:39am Dec 26, 2016 10:39am
  •  sebas1987
  • | Joined Dec 2014 | Status: Member | 78 Posts
Quoting Gumrai
Disliked
{quote} is "" meant to mean something?
Ignored
lol...
  • Post #14
  • Quote
  • Jan 13, 2017 4:02am Jan 13, 2017 4:02am
  •  slowpork
  • | Joined Nov 2009 | Status: Member | 39 Posts
Hello Gumrai,

First of all, thanks for sharing your EA. I tested and have 2 questions.

1. TP and SL works ok. How do I to apply trailing stop? Trailing SL doesn't seem to work for me. My settings are below.

Take Profit : 10
Stop Loss: 0
Trailing Stop: 5
Pip Decimal: 0

2. Can't make it work with 6-digit broker.
  • Post #15
  • Quote
  • Jan 14, 2017 8:33am Jan 14, 2017 8:33am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting slowpork
Disliked
Hello Gumrai, First of all, thanks for sharing your EA. I tested and have 2 questions. 1. TP and SL works ok. How do I to apply trailing stop? Trailing SL doesn't seem to work for me. My settings are below. Take Profit : 10 Stop Loss: 0 Trailing Stop: 5 Pip Decimal: 0 2. Can't make it work with 6-digit broker.
Ignored
Quote
Disliked
You can input SL, TP and Trailing Stop in any combination
ie, if you just want the SL applied then leave the other 2 inputs at 0
It will only work for the chart symbol that the EA is attached to. If you attach it to EURUSD chart, it will modify all EURUSD trades only.
If you place a trade with a SL or TP, it will not be modified, but if you have opted to use the trailing stop, it will kick in when the level for that trade is reached.
It will automatically calculate for 4 or 5 digit brokers, but for other instruments you will need to input pip decimal
ie
Gold...
If you have a 6 digit broker you will need to input the pip decimal
Please Do Not PM Me With Coding Enquiries
  • Post #16
  • Quote
  • Mar 21, 2017 7:17pm Mar 21, 2017 7:17pm
  •  fxmazing
  • | Joined Aug 2016 | Status: Member | 20 Posts
No matter what I do, I get this error.
What am I doing wrong?
Attached Image (click to enlarge)
Click to Enlarge

Name: Screen Shot 2017-03-22 at 00.16.46.png
Size: 56 KB
  • Post #17
  • Quote
  • Last Post: Dec 5, 2018 4:05am Dec 5, 2018 4:05am
  •  kalahari
  • Joined May 2013 | Status: Member | 15 Posts
Quoting Gumrai
Disliked
Hi, please try this You can input SL, TP and Trailing Stop in any combination ie, if you just want the SL applied then leave the other 2 inputs at 0 It will only work for the chart symbol that the EA is attached to. If you attach it to EURUSD chart, it will modify all EURUSD trades only. If you place a trade with a SL or TP, it will not be modified, but if you have opted to use the trailing stop, it will kick in when the level for that trade is reached. It will automatically calculate for 4 or 5 digit brokers, but for other instruments you will...
Ignored
Hi Gumrai
Thanks for this EA. I like the fact that it's clean and simple; no complicated settings. Seems to be working fine.
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • EA/Script for automatic stop loss on open orders
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
FF Website
  • Homepage
  • Search
  • Members
  • User Guide
  • Report a Bug
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
About FF
  • Mission
  • Products
  • Media Kit
  • Blog
  • Contact
Follow FF
  • Facebook
  • Twitter

Other Markets:

  • Crypto Craft
  • Energy EXCH
  • Metals Mine

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

Terms of Service / ©2019