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
with this code I get total_profit. The total_profit is summarizing the profit of closed trades.
The chart draw depend on how I get total_profit? Gooly, with Alert() I see the right profit calculation, and everything is working fine. Except this chart draw code.
Try replacing all ChartID() with 0.
with this code I get total_profit. The total_profit is summarizing the profit of closed trades.
The chart draw depend on how I get total_profit? Gooly, with Alert() I see the right profit calculation, and everything is working fine. Except this chart draw code.
When (where) do you calculate total_profit?
Try replacing all ChartID() with 0.
I calculate after trade close from the history list. Thats working. I have checked with Alert() and Print().
Well, doesn't that mean total_profit is zero until the next trade close?
Sorry but I don't understand why is important to know what value got total_profit.
Please check this code, compile and put on a chart and during running change please timeframe, and you will see what about I am talking.
Sorry but I don't understand why is important to know what value got total_profit.
Please check this code, compile and put on a chart and during running change please timeframe, and you will see what about I am talking.