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

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Which would you prefer: increasing lot size or TP size? 21 replies

EA/Script for Multiple Pending BL/BS/SL/SS with lot size 28 replies

At what lot size/account size do you have scale issues? 35 replies

MT4 Order Pending Order/Order Modify Issue 1 reply

Lot size, contract size, max position ? 1 reply

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe

Script to modify lot size of pending order

  • Post #1
  • Quote
  • First Post: Dec 10, 2014 8:29am Dec 10, 2014 8:29am
  •  masofras
  • | Joined May 2014 | Status: Member | 50 Posts
Hello dear programmers/guests,

I know there is similar thread/script described but there is a lot threads and I´m confused to find it. It would be great if someone could make me one script or just post here .

How should it work: when set any pending order then order adjust to "x" % (for example 2% and with stop loss 15pips) of balance account

real example:
account balance: 5000
risk ratio % : 2%
stop loss: 15 pips (150 points)
pair: EUR/USD

result: 0.827 lot

Thank you if someone response
  • Post #2
  • Quote
  • Dec 11, 2014 4:07am Dec 11, 2014 4:07am
  •  iwjw
  • | Joined Mar 2011 | Status: Member | 464 Posts
As far as I know, you can't modify the size of an existing pending order
It would have to be replaced by a new order
 
 
  • Post #3
  • Quote
  • Last Post: Dec 11, 2014 7:29am Dec 11, 2014 7:29am
  •  masofras
  • | Joined May 2014 | Status: Member | 50 Posts
Quoting iwjw
Disliked
As far as I know, you can't modify the size of an existing pending order It would have to be replaced by a new order
Ignored
thanks for response,

yes I was afraid of this situation, I wrote it not very clear because of my bad english, I will try to write it more clearly

imagine this situation, pair EUR/USD: you have 5000€ balance, 1% stop loss(SL=12pips=0.517 lots), but we win= profit 1% of balance (50€) (R:R=1:1)
2nd trade: now our balance is 5050€ 1% stop loss (SL=12pips=0.522 lots) again win and we earn 50.50€
3rd trade: balance 5100.50€ stop loss 1% stop loss (SL=12pips=0.527 lots)


see these differences between lot sizes per trade? and this I want to automate and find any script on it

If still not clear let me know I will try more

EDIT: I open new trade only by pending orders
 
 
  • Platform Tech
  • /
  • Script to modify lot size of pending order
  • 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