EARTH_DUST Posted February 21, 2012 Report Posted February 21, 2012 Indo run keeps opening new orders, to save the account being blown by Draw Down, I want to limit it, when the Margin is greater than 10% of Account balance, new orders should not be sent, so I created a code but it seems to be not working , indo run disables when I put it .. can you tell me where to put this code. and is this code correct ? Thanks friends. :) if (!(AccountMargin >= (AccountBalance/10) )) { order executing code here } Quote
EARTH_DUST Posted February 21, 2012 Author Report Posted February 21, 2012 (edited) Read the rules ...no bumping. You are breaking several forum rules. Let's post responsibly new guy. Edited August 7, 2014 by FloridaTrader Quote
klod Posted March 13, 2013 Report Posted March 13, 2013 if (!(AccountFreeMargin() >= (AccountBalance()/10) )) {// very low free margin order executing code here } else { // good margin} AccountBalance() and AccountFreeMargin() are functions Quote
Guest FloridaTrader Posted August 5, 2013 Report Posted August 5, 2013 Indo run keeps opening new orders, to save the account being blown by Draw Down, I want to limit it, when the Margin is greater than 10% of Account balance, new orders should not be sent, so I created a code but it seems to be not working , indo run disables when I put it .. can you tell me where to put this code. and is this code correct ? Thanks friends. :) if (!(AccountMargin >= (AccountBalance/10) )) { order executing code here } any one ?? New guy, you don't need to bump the thread if no one replied to your thread 4 hours later. Read the rules on post inflation count and learn patience. X_X Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.