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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

EA to Set SL & TP of Open Trades Automatically 13 replies

Need EA robot which automatically set SL please 3 replies

Max. Leverage Amounts and Withdrawal Limits? 3 replies

EA to set TP automatically 3 replies

Can anyone edit this EA to automatically set a SL? 3 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 2
Attachments: Set SL and TP automatically in dollar amounts?
Exit Attachments

Set SL and TP automatically in dollar amounts?

  • Post #1
  • Quote
  • First Post: Edited at 7:25pm Mar 19, 2014 6:14pm | Edited at 7:25pm
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Hello,

It takes me too long to figure out pips for SL and TP. So i am looking for a script or a plugin for MT4 610 which would allow me when opening an order to set my Stop Loss and Take Profit in dollars and save it and later apply automatically to all orders. Thanks and let me know if you have something in mind!
  • Post #2
  • Quote
  • Mar 19, 2014 7:11pm Mar 19, 2014 7:11pm
  •  emmanuel7788
  • Joined Nov 2008 | Status: Member | 37,474 Posts
Quoting masterok
Disliked
Hello, It takes me to long to figure out pips for SL and TP. So i am looking for a script or a plugin for MT4 610 which would allow me when opening an order to set my Stop Loss and Take Profit in dollars and save it and later apply automatically to all orders. Thanks and let me know if you have something in mind!
Ignored

look at these, maybe they are what you want.

http://codebase.mql4.com/8127

http://codebase.mql4.com/7877
Honesty is a very expensive gift. You wont find it in cheap people.WBuffett
 
 
  • Post #3
  • Quote
  • Edited at 7:59pm Mar 19, 2014 7:27pm | Edited at 7:59pm
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Really appreciate your help Emmanuel, but those nice tools do not help resolve my issue. I hope someone knows of a plugin which can set SL or TP for me automatically and would be nice if I can set them in dollars.

This is the only one I have found through Google search but it does not work. I just tried it and it doesnt close trades. It appears on graph, says what TP and SL ammount are but when price reaches either one does not close the trade. May be someone can take a look at it and see if it could be fixed?

http://codebase.mql4.com/6121
 
 
  • Post #4
  • Quote
  • Mar 20, 2014 1:42am Mar 20, 2014 1:42am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting masterok
Disliked
Hello, It takes me too long to figure out pips for SL and TP. So i am looking for a script or a plugin for MT4 610 which would allow me when opening an order to set my Stop Loss and Take Profit in dollars and save it and later apply automatically to all orders. Thanks and let me know if you have something in mind!
Ignored
Please try this script (test it on demo)
Remember that it will modify the SL and TP of all open trades (not pending)
Attached File
File Type: mq4 SLandTP_in_Currency.mq4   3 KB | 2,017 downloads
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #5
  • Quote
  • Mar 20, 2014 8:13am Mar 20, 2014 8:13am
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Tried to load in on the chart with a trade. Popup appears to ask for TP and SL, once I enter them and press OK it just disappears without setting limits. Tried several times.
 
 
  • Post #6
  • Quote
  • Mar 20, 2014 8:24am Mar 20, 2014 8:24am
  •  fxdaytrader_
  • Joined Jan 2011 | Status: UberTroll | 1,847 Posts
since Gumrai uses the new mql4 syntax and I did not already learned it I cannot help with that ea.
But what you could do: Show into your journal/experts-tab and check if there are some (error)messages. If so, please post them here
PM me with coding requests and I'll probably put you on my ignore list
 
 
  • Post #7
  • Quote
  • Mar 20, 2014 8:57am Mar 20, 2014 8:57am
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Thanks for reply fxdaytrader, no errors. As per journal i opened an order and then I loaded script several times and it always says loaded successfully, then, since it wouldnt work I removed it then again loaded successfully. Nothing else there.
 
 
  • Post #8
  • Quote
  • Mar 20, 2014 9:03am Mar 20, 2014 9:03am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting masterok
Disliked
Tried to load in on the chart with a trade. Popup appears to ask for TP and SL, once I enter them and press OK it just disappears without setting limits. Tried several times.
Ignored
What values are you entering for SL and TP?
Maybe you could show what trade you have open? ie pair and lot size?
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #9
  • Quote
  • Mar 20, 2014 9:05am Mar 20, 2014 9:05am
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Are you checking the "Allow live trading" box?
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #10
  • Quote
  • Mar 20, 2014 5:35pm Mar 20, 2014 5:35pm
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Wow I already recorded the screencast to post here and before pressing Reply button seen your comment, Gumrai. I checked Allow Live Trading and it started to work. Amazing. Thank you so much for your help.

Is there a way to limit it to specific order only or chart? I mean only work for orders opened on the particular chart.
 
 
  • Post #11
  • Quote
  • Mar 20, 2014 6:21pm Mar 20, 2014 6:21pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting masterok
Disliked
Wow I already recorded the screencast to post here and before pressing Reply button seen your comment, Gumrai. I checked Allow Live Trading and it started to work. Amazing. Thank you so much for your help. Is there a way to limit it to specific order only or chart? I mean only work for orders opened on the particular chart.
Ignored
I have made a small modification that will allow you to select chart trades only. I have not tested it
For individual trades you can check "Ask Manual Confirmation", just below "Allow Live Trading"
Attached File
File Type: mq4 SLandTP_in_Currency2.mq4   3 KB | 1,531 downloads
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #12
  • Quote
  • Mar 20, 2014 6:26pm Mar 20, 2014 6:26pm
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Yep it worked. Thank you very very much!

Last question: Is there a way to automatically run the script once the trade is open or not?
 
 
  • Post #13
  • Quote
  • Mar 20, 2014 6:56pm Mar 20, 2014 6:56pm
  •  Gumrai
  • Joined Oct 2012 | Status: Member | 1,959 Posts
Quoting masterok
Disliked
Yep it worked. Thank you very very much! Last question: Is there a way to automatically run the script once the trade is open or not?
Ignored
That would require an EA to monitor for new trades etc.
It can be done, but I am busy with something else just now. Maybe I will look at it later.
Please Do Not PM Me With Coding Enquiries
 
 
  • Post #14
  • Quote
  • Mar 20, 2014 7:00pm Mar 20, 2014 7:00pm
  •  masterok
  • | Joined Mar 2014 | Status: Member | 38 Posts
Dont worry then. I thought may be there is an app for that As is - is fine with me! THanks again!
 
 
  • Post #15
  • Quote
  • Nov 25, 2015 5:34pm Nov 25, 2015 5:34pm
  •  sylc
  • | Joined Nov 2015 | Status: Junior Member | 2 Posts
Hello there,

I want a EA to be created. I want to test market, if we can take small profit in each trades but multiple trades.

wanted an EA with following features.

inputs
1. min lot default 0.01 changeable by user
2. Take profit (TP) default 10 pips changeable by user (You can also include above EA to make TP at 1$ least)
3. spread include in take profit : true or false. if True, take profit (TP) will be as in point 2. if false, take profit (TP) will be point 2 + spread.
4. stop loss (SL) will be default not set, but settable by user.


at the start of each bar, EA will check if there if

a. open long order for the script
b. open short order for the script

there will be 4 possible outcome.

cond 1. only long order exist.
cond 2. only short order exist.
cond 3. both long and short order exist.
cond 4. no order exist.

if cond 1.: the EA will place short order with TP & SL.
if cond 2.: the EA will place long order with TP & SL.
if cond 3.: the EA will place no order.
if cond 4.: the EA will place both long and short orders with TP & SL for each.

no force close of any order.

in short, EA will open both short and long orders at the start of the new bar / candle, with condition that no previous order exist on the same script. if any then the order type must be as defined.

thanks in advance.
 
 
  • Post #16
  • Quote
  • Jan 14, 2016 1:43am Jan 14, 2016 1:43am
  •  revotrades
  • | Joined Dec 2015 | Status: Junior Member | 1 Post
this script only works "on demand", ie only 1 time. I want same ea or script to work constantly on my mt4 chart or charts. Please reply here if you have ea or script like this.
 
 
  • Post #17
  • Quote
  • Oct 11, 2016 7:08am Oct 11, 2016 7:08am
  •  Forexpinbar
  • Joined Jul 2016 | Status: ADDICTED TO HUGE PIPS | 1,373 Posts
Quoting Gumrai
Disliked
{quote} I have made a small modification that will allow you to select chart trades only. I have not tested it For individual trades you can check "Ask Manual Confirmation", just below "Allow Live Trading" {file}
Ignored
Great script gumrai.Thanks for sharing.This tool will definitely come in handy.Can you please add trailing stop in currency to this amazing script?Can you also add hidden feature to stop loss and take profit?Thank you.
Goal of a successful trader is to make the best trades. Money is secondary
 
 
  • Post #18
  • Quote
  • Nov 8, 2019 12:40am Nov 8, 2019 12:40am
  •  ecryptom
  • | Joined Jun 2019 | Status: Member | 140 Posts
isany new version ...
Set SL and TP automatically in dollar amounts?
Everything flows. Learn to Earn.
 
1
  • Post #19
  • Quote
  • Jan 13, 2020 10:09am Jan 13, 2020 10:09am
  •  Bondone
  • | Joined Nov 2017 | Status: Member | 14 Posts
Quoting Gumrai
Disliked
{quote} I have made a small modification that will allow you to select chart trades only. I have not tested it For individual trades you can check "Ask Manual Confirmation", just below "Allow Live Trading" {file}
Ignored
Years later, Gumrai, I would like to thank you for such precise and useful tool!
 
 
  • Post #20
  • Quote
  • Last Post: Aug 2, 2022 10:02am Aug 2, 2022 10:02am
  •  farukak
  • | New Member | Status: Junior Member | 1 Post
Hi all.

I downloaded the files but it doesn't work? Anyone know why?
 
 
  • Platform Tech
  • /
  • Set SL and TP automatically in dollar amounts?
  • Reply to Thread
1 trader 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