- [ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3.
- OrderModify issues
- Need help buy & sell but not buy when 1 lot is sold need help ordersTotal thank you
Forum on trading, automated trading systems and testing trading strategies
BUYSTOP, SELLSTOP orders getting Ordersend error 130
Alain Verleyen, 2023.03.14 22:31
Please start to post in the correct section if you need help.
There is an MT4/mql4 section at the bottom of the forum.
-
Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. -
double CalculateLotSize() { <<<<<<<<<<<<< Opening brace. double AccountBalance = AccountBalance(); double TradeRisk = AccountBalance * (RiskPercentage / 100.0); double PipValue = MarketInfo(Symbol(), MODE_TICKVALUE); double LotSize = TradeRisk / (PipValue * StopLoss); LotSize = NormalizeDouble(LotSize, 2); LotSize = MathMax(MinLotSize, LotSize); LotSize = MathMin(MaxLotSize, LotSize); return LotSize; <<<<<<<<<<<<< Where is the closing brace? // Declare function to check news events bool CheckNewsFilter() {
Don't post code that will not even compile.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register