Dear colleagues. In connection with the development of a new trading concept, it became necessary to track the size of Equity (it is drawn in green on the charts, see the screenshot).
I don’t want to touch a working adviser. Is there a way to track the Equity size for multiple trades on the instrument? When the specified Equity level is reached, all trades should be closed and trading of the main robot should stop. At the same time, transactions on other instruments should not be closed and trading should continue.
Let me draw your attention to what to track (count?) the Equity size is only needed on one instrument.
I will be grateful for any comments, thank you all in advance!
ya_programmer
Here, from the popular
c00l777
Thanks. You don’t need to enable it.
ara66676
At the expense of ready-made options, I do not know, in my multicurrency I did so, recorded the opening price of the transaction and then if new ones were added, their opening was also recorded. Next, the profit of each trade was simply calculated and summed ( getting the total equity for all open positions, for example, one symbol). The only negative in my version is that swaps are not taken into account.
c00l777
Thank you, there is about Equity trading account. In my case, you only need to track the Equity of one instrument.
barabashkakvn
See the code: LifeHack Balance Equity