
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
Last deal Move Vertical line
version "1.004"
Now the line is moved according to the requirements.
After removing the indicator from the chart, the chart comment is cleared and the line is deleted.
Last deal Move Vertical line
version "1.004"
Now the line is moved according to the requirements.
After removing the indicator from the chart, the chart comment is cleared and the line is deleted.
Great!
Only, as I understand it, there is an inaccuracy in the definition of the required time, namely the shift is added to the current time, while it should be added to the closing time of the last trade.
As a result, the line may end up in the future as well as in the past:
- in the future. For example, the last trade was 10 minutes ago with negative results for the trade itself and for the day as a whole - the line has shifted by 23 hours 50 minutes relative to the current time.
- in the past. For example, the last deal was last night at 8:00 pm, as a result plus on the deal and plus on the day - the line was drawn on yesterday's bar corresponding to the time 21:00
Great!
But, as far as I see, there is an inaccuracy in specification of the required time, namely, the shift is added to the current time while the shift should be added to the time of closing of the last trade.
As a result, the line may end up in the future as well as in the past:
- in the future. For example, the last trade was 10 minutes ago with negative results for the trade itself and for the day as a whole - the line shifted by 23 hours 50 minutes relative to the current time.
- in the past. For example, the last deal was last night at 8:00 pm, as a result plus on the deal and plus on the day - the line was drawn on yesterday's bar corresponding to the time 21:00
It's not the time that is defined inaccurately, it's the Terms of Reference that keeps getting refined :)
So, we need to modify the LastProfitForPeriod function and add a third argument to it - the time of the last trade. But I will do this at lunchtime.
It's not the time that is defined inaccurately, it's the Terms of Reference that keeps getting refined :)
So, we need to modify the LastProfitForPeriod function and add a third argument to it - the time of the last trade. But I will do it at lunchtime.
Vladimir, I will definitely take into account the inaccuracy of the requirement specification in the future!
My last trade was 19 hours ago, i.e. within +-24 hours of current time
Just in case - between last deal yesterday and current time there was ACID_NW broker's operation - commission, as I understand. And who knows - maybe it somehow "broke" the algorithm of calculation
I will not change anything, as there are more and more subtleties depending on the type of account: netting or hedging.
I will not change anything, because there are more and more nuances depending on the account type: netting or hedging.
I will not change anything, as there are more and more subtleties depending on the type of account: netting or hedging.
The rest is up to you.
Ok.
Thank you very much for your help, Vladimir!