Script to modify lot size of pending order
Results 1 to 3 of 33

Thread: Script to modify lot size of pending order

  1. #1
    Hello dear programmers/guests,

    I understand there's comparable thread/script described but there's a lot threads and that I ´m confused to find it. It would be great if someone could make me script or just post here .

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

    actual example:
    account balance: 5000
    risk percentage%: 2 percent
    prevent loss: 15 pips (150 points)
    pair: EUR/USD

    result: 0.827 lot

    Thank you if someone answer

  2. #2
    Quote Originally Posted by ;
    As far as I know, you can't alter the magnitude of an existing pending order It would have to be replaced by a new order
    thanks for reply,

    yes I was afraid of the situation, I composed it not quite clear because of my bad english, I will try to write it more clearly

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


    see these differences between lot dimensions per trade? And this I want to automate and loe any script onto it

    If not clear let me know I will try more

    EDITI start new trade only by pending orders

  3. #3
    As far as I know, you can't Alter the Magnitude of the Existent pending order
    It'd Need to be Substituted by a new order

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.