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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Buy/Sell Pending Order on Close 3 replies

MT4 Order Pending Order/Order Modify Issue 1 reply

trailing buy/sell order example script? 0 replies

Current price different for pending order sell and buy? 7 replies

I search script - buy limit and buy sell ! pending orders... 0 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 1
Attachments: buy/sell Pending order script with TP and SL
Exit Attachments

buy/sell Pending order script with TP and SL

  • Post #1
  • Quote
  • First Post: Apr 5, 2010 10:10am Apr 5, 2010 10:10am
  •  izzanaf
  • | Joined Apr 2010 | Status: Member | 37 Posts
Hai..

I am newbie in forex exchg...and only can make profit on news time

Attached script below is useful for news trade and hedging that will place 2 pending order for buy&sell stop with TP&SL and also have adjustable distance from market price. I use it for several time but can't be used for scalping less than 2 munites . so I need somebody could modify this script as below:

let say the market price now is 1.6000 and I adjust the distance from market price is about 10pip, TP =0 and SL = 5 pip so and lot size about usd10.00

so the pending order will be:
buy stop= 1.6010 and the sell stop = 1.5990 and the SL will be 5 pip for both pending order

Let say the situation like this:

when the candle moving up during news time and touch the buy stop order, sell stop order will be close immidiately.

then at the same time, the sell limit order will be appear about 13pip from the buy stop distance (the distance of limit order should be adjustable based on buy/sell stop order according to our need).

When the market price still going up then touch the sell limit order will open with the price of usd9.99 less 1 cent than the buy stop order (hedging but have difference price 1 cent).

once the sell limit already open, the stop loss for buy order will be close immidiately, and vice versa

sory my english not so good

tq
Attached File
File Type: mq4 Set2StopOrders breaking news.mq4   4 KB | 2 downloads
  • Post #2
  • Quote
  • Sep 3, 2010 12:55am Sep 3, 2010 12:55am
  •  Piotr1
  • | Joined Dec 2008 | Status: Member | 215 Posts
Hi. Can somebody ,please , tell me, why this script not running at all. I am using it with fxdd. I think it is a very good news trading script and today is a
Non-Farm Employment Change news .n It is so bad I don't have a knowlege to fix it myself.
 
 
  • Post #3
  • Quote
  • Sep 3, 2010 4:30am Sep 3, 2010 4:30am
  •  Piotr1
  • | Joined Dec 2008 | Status: Member | 215 Posts
To make it work with 5 digits broker your settings shoud be (need extra "zero") That simple... The man Piccioli from another forum helped us.
extern int StopLoss = 150; extern int TakeProfit = 0; extern int DistanceSet = 200;
 
 
  • Post #4
  • Quote
  • Mar 25, 2011 5:25pm Mar 25, 2011 5:25pm
  •  irrumate
  • | Joined Aug 2010 | Status: Member | 33 Posts
i was wondering if it was possible to add a variable to set a trailing stop on this script that would automatically set the TS on both pending orders for the amount that i input
 
 
  • Post #5
  • Quote
  • Oct 24, 2013 4:11am Oct 24, 2013 4:11am
  •  samtouzen
  • | Joined Jul 2010 | Status: Member | 19 Posts
I need a script like that working for alpari uk, placing order buy/sell at the same time with the same SL for both
 
 
  • Post #6
  • Quote
  • Dec 18, 2013 11:58am Dec 18, 2013 11:58am
  •  dashisiong
  • | Joined May 2007 | Status: Member | 185 Posts
Anyone using this script? Wonder why it cannot close the opposite order....
Patience, let the market come to you!
 
 
  • Post #7
  • Quote
  • Jun 4, 2014 11:05pm Jun 4, 2014 11:05pm
  •  flashza
  • | Joined Jun 2014 | Status: Junior Member | 1 Post
Please add the trailing stop selection.
 
 
  • Post #8
  • Quote
  • Last Post: Jun 5, 2014 4:25am Jun 5, 2014 4:25am
  •  fxdaytrader_
  • Joined Jan 2011 | Status: UberTroll | 1,847 Posts
Quoting flashza
Disliked
Please add the trailing stop selection.
Ignored
wrong thread. for trailingstops you should use an ea (like mptm) ...
PM me with coding requests and I'll probably put you on my ignore list
 
 
  • Platform Tech
  • /
  • buy/sell Pending order script with TP and SL
  • Reply to Thread
0 traders viewing now
Top of Page
Forex Factory Blog Updated: Alerting All Members
  • 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