[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 375
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Time[number_bar];
Thank you! I'll try to prescribe it :)
Have you considered the price at which your orders are opened (Ask or Bid)?
I told you to open the order at the same price, but it is opened 1-2 pips later.
I'm telling you, I prescribe an order to be opened at the same price and it opens 1-2 pips later.
Yes, some brokerage companies may use positions with slippage. I did not believe in it myself until I saw it with my own eyes. At that time my friend and I were scalping in one of brokerage companies. The deal lasted in the market for no more than a minute and was immediately closed. Since the vast majority of transactions were closed in the plus, it was not profitable for brokerage companies. This brokerage company paid us what we earned and introduced slippage on pending orders and slippage on triggering of stop-orders that killed all our trades. That's how it happens. So, contact your brokerage company and ask them why you do not open orders at the price at which they are set.
Good afternoon!
Back to a question I couldn't figure out on my own. How can I programmatically determine deposits/withdrawals for a specific period?
That is, if you take the trading period of November 25 and go through all the orders for that time, you can determine deposits/withdrawals for that period. And here's the question: how do you calculate?
Good afternoon!
Back to a question I couldn't figure out on my own. How can I programmatically determine deposits/withdrawals for a specific period?
That is, if you take the trading period of November 25 and go through all the orders for that time, you can determine deposits/withdrawals for that period. And here's the question: how do you calculate?
If OrderProfit() is greater than zero - add, less - withdraw
If OrderProfit() is greater than zero - fill, less - withdrawal
Thank you! I.e. it is possible to determine which fills and withdrawals were separate?!
Why does the maximum lot calculation function return "0" for instrument #DD ? This does not always happen.
Thank you! I.e. it is possible to identify which refills and removals were individually!
Why does the errork output that the function return has a null result, what is the error???