The code below simply stalls out (with the statement 'loading data...') almost every time I load it. Several times I've gotten all lines showing (after about 4 minutes). And I've tried using a 6 month time template pre loaded in an advanced chart before loading the formula.
Ultimately I wouldn't be displaying the lines...but looking for the value of the series for 0 (latest) with every new bar (for whatever interval the chart is showing). I would be comparing the value from the series (MA) against it's 'switch'...or MA of the same length but with a different offset. The combination of ma's determine (for me) trend on the micro, med and macro.
Ideally I would have wanted to be able to put such an indicator (giving me the current trend on the micro, medium and macro levels of several different timeframes) on several screens.
***I KNOW THIS SOUNDS ABSURDLY INTENSIVE...but you don't know unless you try it and so I was wondering if there were anyway I could edit the structure or syntax of the code to make it's execution possible...ideally simple.
So I've tried it and it does indeed freeze up my system but was wondering if anyone had any ideas that would make it efficient enough to use on a RT basis for day trading.
Any help is much appreciated,
g
Ultimately I wouldn't be displaying the lines...but looking for the value of the series for 0 (latest) with every new bar (for whatever interval the chart is showing). I would be comparing the value from the series (MA) against it's 'switch'...or MA of the same length but with a different offset. The combination of ma's determine (for me) trend on the micro, med and macro.
Ideally I would have wanted to be able to put such an indicator (giving me the current trend on the micro, medium and macro levels of several different timeframes) on several screens.
***I KNOW THIS SOUNDS ABSURDLY INTENSIVE...but you don't know unless you try it and so I was wondering if there were anyway I could edit the structure or syntax of the code to make it's execution possible...ideally simple.
So I've tried it and it does indeed freeze up my system but was wondering if anyone had any ideas that would make it efficient enough to use on a RT basis for day trading.
Any help is much appreciated,
g
Comment