Help - Money Management on script
Results 1 to 7 of 7

Thread: Help - Money Management on script

  1. #1

  2. #2
    No one as here, when I ask for some aid that the sole are people who u ask money through PM.

    Oh, it's great!!

    Damn!!

  3. #3
    I am too new to help, however:

    - folks that don't read russian may have a harder time figuring out what is going in that script.

    - my own guess is that it looks like you need to set a lot of global variables yourself before running the buy or sell script, or there are more scripts which are a part of the system you did not include. These scripts may be a place.

  4. #4
    Quote Originally Posted by ;
    I am too new to help, but:

    - folks that don't read russian might have a harder time figuring out what's happening in that script.

    - my own guess is that it seems like you have to decide on a lot of global variables yourself before running the buy or sell script, or there are more scripts that are a part of the system you didn't include. Those scripts might be a much better place to bring some other MM logic.
    Those scripts work with each other, pipsing setup script sets up the variables that the others 2 broadcasts utilize, but the calculation code is on buy and sell scripts.
    What I would like to know is just how and where to put easy cash management like this:
    Inserted Code //Money Management sequence if (MoneyManagement) Riskgt;100) Opinion(Invalid Risk Value.) ; return(0); else Lots=MathFloor((AccountFreeMargin()*AccountLeverag e()*Risk*Point*BrokerMultiplier*100)/(Ask*MarketInfo(Symbol(),MODE_LOTSIZE)*MarketInfo( Symbol(),MODE_MINLOT)))*MarketInfo(Symbol(),MODE_M INLOT);

  5. #5
    Alright, here's a stab at doing what you would like. Regrettably, I'm unable to test them today, so while I could say that they compile, I can't guarantee they operate.

    The basic changes are:3 new factors. See Setup_mm. Mq4 to get a tiny bit of excuse there both buy and sell scripts today call a moneyManagement function early on this can alter the Lot worth for a transaction if MoneyManagement is permitted. That's it.
    https://www.forexforum.co.za/attachm...1295601695.mq4
    https://www.forexforum.co.za/attachm...1901229592.mq4
    https://www.forexforum.co.za/attachm...1787269591.mq4

  6. #6
    I love your help.

    I will try it and let you know.

    Lubo.

  7. #7
    Quote Originally Posted by ;
    Thanks, I appreciate your help.

    I'll try it and let you know.

    Lubo.
    It appears to me the script work fine. .
    Really thanks.

    Lubo.

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.