Can I get the information from the Account History, how much money has been withdrawn, what was the deposit and what was the profit for a certain period?
What functions or variables should I use? I can calculate the profit for a certain period with a cycle, but I don't know how to do it, what was the deposit a week ago and how much was withdrawn.
This data will also be sent by post.
To calculate how much was withdrawn/entered, look for an order with type == 6, and then already make a loop with the profit for the week and exclude/include there OrderType()==6. Then you can calculate the deposit, which was at the beginning of the week.
gi_group: HI ALL, HOW LONG CAN YOU SIT IN A TRADE ACCORDING TO TRADING RULES? IF IT'S INSTRUMENTS LIKE STOCKS (THOSE THAT DON'T HAVE TERMS LIKE FUTURES)
Tried to write my first indicator. It draws lines from when the tick came, but not for old bars. I need the indicator to be displayed throughout the whole chart, including in stand-alone mode. Gurus, please advise what is wrong?
Tried to write my first indicator. It draws lines from when the tick came, but not for old bars. I need the indicator to be displayed throughout the whole chart, including in stand-alone mode. Gurus, please advise what is wrong?
TarasBY: And a recalculation from "past to present" would also be a good idea - this is as a habit (although on this indicator the order of recalculation does not play a role).
This is my first indicator. I am not fully familiar with MQL4. I am rereading the textbook. Can I have an example, for a better understanding.
Can I get the information from the Account History, how much money has been withdrawn, what was the deposit and what was the profit for a certain period?
What functions or variables should I use? I can calculate the profit for a certain period with a cycle, but I don't know how to do it, what was the deposit a week ago and how much was withdrawn.
This data will also be sent by post.
Hello, I downloaded the EMA indicator but it is not installed on the platform, can you tell me how to do it ?
HI ALL, HOW LONG CAN YOU SIT IN A TRADE ACCORDING TO TRADING RULES? IF IT'S INSTRUMENTS LIKE STOCKS (THOSE THAT DON'T HAVE TERMS LIKE FUTURES)
What's the shouting?
Tried to write my first indicator. It draws lines from when the tick came, but not for old bars. I need the indicator to be displayed throughout the whole chart, including in stand-alone mode. Gurus, please advise what is wrong?
Tried to write my first indicator. It draws lines from when the tick came, but not for old bars. I need the indicator to be displayed throughout the whole chart, including in stand-alone mode. Gurus, please advise what is wrong?
It would be a good idea to check for zero, because division may cause an error.
It would be a good idea to check for zero, there may be an error when dividing
And a recalculation from "past to present" would also be a good idea - this is as a habit (although on this indicator the order of recalculation does not play a role).