Indicator works perfectly, but when I remove the indicator from the chart and add it again, It doesn't work anymore and returns an error "Access
violation read" .
And also when I use it with strategy tester, Meta Trader crashes without logging any error.
I think the problem is with the array referencing. I attempted to try it with using struct instead of arrays, but I couldn't compile it any way
because I don't know MQL or C++ well, but I work a lot with Python,C# and Swift .
And C++ DLL Code ( I use VS2013):
Indicator works perfectly, but when I remove the indicator from the chart and add it again, It doesn't work anymore and returns an error "Access violation read" .
And also when I use it with strategy tester, Meta Trader crashes without logging any error.
I think the problem is with the array referencing. I attempted to try it with using struct instead of arrays, but I couldn't compile it any way because I don't know MQL or C++ well, but I work a lot with Python,C# and Swift .
How can I solve the problem?
Thank you