
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
Hello!
While developing an expert advisor that is becoming quite complex, I thought it was a good idea to plot the profit of the positions in percent of the free margin.
This indicator would help to understand visually what's happening in specific cases. It is intended to work in indicator_separate_window mode.
For now, my OnCalculate function looks like this:
Here is the OnInit function:
I get no errors, but nothing is displayed when used in a ea.
Any ideas on what I'm doing wrong?