I ran across an interesting situation. When I run the following script
CODE:
Please log in to see this code.
for a single equity (e.g. AAPL) in Chart Mode it never stops.
Does anyone else get the same results with this Chartscript?
Vince
Size:
Color:
Press Escape key. Now you know that AdaptiveLaguerre doesn't like recursion. :)
Size:
Color:
Eugene, you don't say! :)
More to the point, this should not happen. There is no reason why any series input to any function should cause this problem. That's what programmers get paid to prevent! ;)
Vince
Size:
Color:
Actually, this indicator code (its WL4 version) was submitted by a community member. ;)
Size:
Color:
Could you take a quick look and see if there is a reason for this problem? I looked at it but I am far from knowledgeable to see the cause of the problem.
Vince
Size:
Color:
As a workaround, choose a different period. An equal period causes the issue.
Size:
Color:
Is it related to a poor caching problem?
Vince
Size:
Color:
Caching was the first place I looked at.
Size:
Color:
Debugging shows that it's a problem with AdaptiveLaguerre's sorting algorithm being stuck in an endless loop. Sorry, can't help with fixing the logic but you've got the workaround.
btw, no other indicators seem to have a similar problem (being applied to themselves). It's AdaptiveLaguerre specific.
Size:
Color:
Size:
Color:
Bug fixed in Community Indicators v2019.04:
* Fix: AdaptiveLaguerre makes WL freeze if DataSeries has many zero bars
Size:
Color: