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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

MT4 Order Pending Order/Order Modify Issue 1 reply

Modify tp/sl for multiple open and pending orders 19 replies

Script to modify lot size of pending order 2 replies

Modify Pending Order EA 0 replies

Can set HotKey for Close Order and Modify Order? 9 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Modify Pending Order Price

  • Post #1
  • Quote
  • First Post: Mar 16, 2010 9:15pm Mar 16, 2010 9:15pm
  •  rapidfx
  • | Joined Nov 2006 | Status: Member | 58 Posts
I'm looking script or ea that could modify entry price for pending order based on pair i've attached. let say at first i put buy stop for gu 1.5000 with tp and sl with 50 post trade. Then i want to change entry pending order to 1.5100. If 50 post pending order I've to modify back one by one..The custom input is:


Type order : Buy/Sell
Pending order price:
Lot Size:
TP: ( in pips )
SL: (in pips )

Hope someone expert & generous could do it for this....
  • Post #2
  • Quote
  • Mar 21, 2010 11:48pm Mar 21, 2010 11:48pm
  •  rapidfx
  • | Joined Nov 2006 | Status: Member | 58 Posts
bump....anybody creat it? waiting for someone to post it..
 
 
  • Post #3
  • Quote
  • Last Post: Mar 22, 2010 12:03am Mar 22, 2010 12:03am
  •  MarketPips
  • | Additional Username | Joined Mar 2010 | 203 Posts
Maybe this can help you, not sure what exactly you need. Just use OP_BUYSTOP instead of OP_BUY
for(int b=0;b<OrdersTotal();b++)
{
if(OrderSelect(b,0,0))
if(OrderSymbol()==Symbol())
{
if(OrderType()==OP_BUY)
if(Bid-OrderOpenPrice()>=Point*TrailingStop)
if(OrderStopLoss()<Bid-Point*TrailingStop)
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Yellow);
if(OrderType()==OP_SELL)
if(OrderOpenPrice()-Ask>=Point*TrailingStop)
if(OrderStopLoss()>Ask+Point*TrailingStop)
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Yellow);
}
}
 
 
  • Platform Tech
  • /
  • Modify Pending Order Price
  • Reply to Thread
0 traders 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