song_song:
This one work fine as EA:
but below dont fine as an Indi:
Hi song_song,
ChartOpen() and ChartClose() function is part of chart operation. Please click this online doc https://www.mql5.com/en/docs/chart_operations. According to that, "All chart operations are allowed in Expert Advisors and scripts only.". So it's not a bug.

onewithzachy:
well, thanks onewithzachy
Hi song_song,
ChartOpen() and ChartClose() function is part of chart operation. Please click this online doc https://www.mql5.com/en/docs/chart_operations. According to that, "All chart operations are allowed in Expert Advisors and scripts only.". So it's not a bug.
song_song:
my suggestion for mql5 guide:
list of function availability
function | availability | ||
---|---|---|---|
EA | Indi | Script | |
ChartOpen() | V | X | V |
ChartClose() | V | X | V |
... | ... | ... | ... |
Hi song_song,
Mmm ... I don't understand :(.

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
This one work fine as EA:
but below dont fine as an Indi: