
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
what is OTCurrentTick ???
what is MaxOrders ???
Do you know that you won't close any trade as long OTCurrentTick is not equal to MaxOrders... although LastOrderProfit might be >= 0
what is OTCurrentTick ???
what is MaxOrders ???
Do you know that you won't close any trade as long OTCurrentTick is not equal to MaxOrders... although LastOrderProfit might be >= 0
Hi again deVries,
In code below you can see what OTCurrentTick is:
In other parts of the code I have other function call to close all the orders that are less than the MaxOrders.
One of the reasons that I need to identify the profit of the last order that is open have to try to close the last order that equals the MaxOrders setting as soon it reaches profit 0, I mean as soon the profit of the order pays the commission.
Luis
Help Me Warning, return value of 'OrderSelect' should be checked
"I want check OrderLot and Lot Buy/Sell"
void CheckLOT()
Please use the </> button to insert your above code.
Can you read?
https://www.mql5.com/en/forum/143829/page2#comment_7968243
EDIT I have removed the copy and pasted post that the poster again did not bother to post the code correctly. Keith.
General rules and best pratices of the Forum. - General - MQL5 programming forum
Messages Editor
What are Function return values ? How do I use them ? - MQL4 and MetaTrader 4 - MQL4 programming forum
Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
Only those functions that return a value (e.g. iClose, MarketInfo, etc.) must you call ResetLastError before in order to check after.
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles
Symbol Doesn't equal Ordersymbol when another currency is added to another seperate chart . - MQL4 and MetaTrader 4 - MQL4 programming forum
MagicNumber: "Magic" Identifier of the Order - MQL4 Articles