
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
\o/ You have the part of the code where the drawing starting point is done. Have you seen any bug on it? Because I've already done dozens of indicators and always used that same structure and it always worked as I wanted :| I can't see any bugs on it. With that in mind, I thank you for your tip, but it is already 'used' so to speak: I already used the minimalistic amount of candlesticks for my indicator to function.
You'll be surprise if you trace it with a simple
But my code doesn't consider older candles, it won't give a damn for repainted older candles. Haven't you read my code? And recent calls of OnCalculate due to new ticks been formed are necessary since inbetween a new object may have been drawn, but that doesn't even seems to be what you are talking about.
Read the code I posted in the OP and you will find out I don't consider any more candles and ticks updates then what I need.
No, the freeze don't require any drawing to happen. Just run it and wait, that's how is happening here with me.
That doesn't make sense. If I run the posted code on a chart without objects, the ObjectFind() is not even called. You must missed something, as for sure I can't reproduce your issue.
But my code doesn't consider older candles, it won't give a damn for repainted older candles. Haven't you read my code? And recent calls of OnCalculate due to new ticks been formed are necessary since inbetween a new object may have been drawn, but that doesn't even seems to be what you are talking about.
Read the code I posted in the OP and you will find out I don't consider any more candles and ticks updates then what I need.
Good luck and enjoy your bug hunting ;)
That doesn't make sense. If I run the posted code on a chart without objects, the ObjectFind() is not even called. You must missed something, as for sure I can't reproduce your issue.
Heheh here I must ask you to forgive me: I was doing these tests in a graph where one of my EAs was charged and it automatically plots some objects on the graph, they just don't appear in the common Object List dialog box (moreover there are some previous buy and sell operations in that graph from previous tests):
As you may see in the image above, the object list dialog is empty, but the ObjectFind() returned a lot of objects which came from previous operations test in this demo account plus some objects drawn by the EA that is loaded.
Don't lost your time with this guy, it's his usual troll behaviour. He obviously didn't even checked or understood your code.
Well I can totaly agree with that! ^.^
Well, it seems I managed to avoid the bug which was leading to the freeze: in the previous posted code, I was doing a whole object reading after each new tick which was, at the end, quite a lot of unacessary processing. So I divided the object processing into 5 groups and added a counter from 0 to 100 so now only once after each 20 ticks a processing is done and for only one group of objects.
After that, no more freezing happened. This seems to suggest there is something to be fixed here, but nothing that can't be circumvented.