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
Move the call to Display_Vlines() from the OnChartEvent() to OnCalculate()
Or click on the chart whenever you want to refresh it :) As simple click on the chart will do the way your code is written. But you have more issues with that code (starting from the fact that your Current_Time is fixed to the time when indicator is attached or reloaded)
Move the call to Display_Vlines() from the OnChartEvent() to OnCalculate()
Or click on the chart whenever you want to refresh it :) As simple click on the chart will do the way your code is written. But you have more issues with that code (starting from the fact that your Current_Time is fixed to the time when indicator is attached or reloaded)
Hello mladen,
Already tried, but didn't work.
When a new bar comes (tested on M1), the Vlines stay in place et do not refresh and replace on their new bar.
I have to change the time frame...
Any idea why ?
Hello mladen,
Already tried, but didn't work.
When a new bar comes (tested on M1), the Vlines stay in place et do not refresh and replace on their new bar.
I have to change the time frame...
Any idea why ?
Adjust time for existing objects. ObjectCreate() does not adjust time component for objects already existing
And what can adjust the time please ?
And what can adjust the time please ?
Move the call to Display_Vlines() from the OnChartEvent() to OnCalculate()
Or click on the chart whenever you want to refresh it :) As simple click on the chart will do the way your code is written. But you have more issues with that code (starting from the fact that your Current_Time is fixed to the time when indicator is attached or reloaded)
Hello,
I have tried again and it's ok now...maybe it was to late for me yesterday.
thank you.