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
Dear developers, please comment.
Either there is an error in logic or it is a strong fit. True, the negative area on the chart is not clear. So the third option is also possible.
Testing was performed on the watch. The history is from 12.03.2004. The Expert Advisor has traded pending orders in both directions. The orders that do not trigger are deleted. New pending orders create a pyramid. Open positions are closed when the profit exceeds 200 pips.
it is not clear why the indicator used on a smaller tf is constantly deleted and added again, maybe the time is just spent on its recalculation?
Model 2, build 182, WinXP SP2
At the right edge of the chart you have "fixed it" - got it all in Balance.
Fixing of profit and reopening in the same direction is the task of MTS.
Good luck,
Micky Mogol.
Thank you.
i got it wrong in parameter passing: i mixed up the sequence of two parameters for custom indicators (first like int, second like double), i asked a question "what will happen if the number of passed parameters is more or less?
PS. in addition I have found some slowness (see next thread) related to the combination of check for a new bar by time and call for indicators in the code
Fixing of profit and reopening in the same direction is also the task of MTS.
I don't understand this statement, especially the real account part. Please, tell me more about Balance, Equity, Profit and Margin to cover positions.
To clarify, my understanding of Equity = Balance + Profit (current Profit may be negative).
Also Equity=Margin+Free Margin+Swaps (swaps may be negative).
Also, there is Margin Leverage=Equity/Margin and Margin Leverage cannot be below Margin Call, which at Alpari is at 20% (0.20).
How can we get a negative Balance with this system of equations?
Maybe there is something I do not understand?
To clarify, my understanding of Equity=Balance+Profit (current Profit may be negative).
Also Equity=Margin+Free Margin+Swaps (swaps can also be negative).
Also, there is Margin Leverage=Equity/Margin and Margin Leverage cannot be below Margin Call which at Alpari is at 20% (0.20).
How can we get a negative Balance with this system of equations?
Maybe there is something I do not understand?
Indeed, I would like to know quite definitely how all these account indicators interact with each other. Theoretically, it is clear that at "under the sky" eqiti, the los poses will suck the money out of the balance. And if the balance is much smaller than the equities, it can become negative. In this case the brokerage company always has an opportunity to slam open positions to "replenish" the balance, so that the account would not fall below the conditions for a stake.