I'm curious as to why harvesting signals from HGI with hgi_lib is a bad idea. Let me explain.
I get HGI constantly updates itself, which is awesome. It makes HGI what it is. BUT, if my strategy calls for bar1 and older and I call hgi_lib for bar1 or older, won't those signals be valid at Time[0]?
I get that these signals will not be updated (unless the lib is called every tick) but if my strategy says:
Code: Select all
if(time0 != Time[0]) {
bar1_signal = getHGISignal(Symbol(), Period(), 1);
if(bar1_signal != 0) {
doStuff();
}
}If this is true, and my account still exists, and you're still reading this, does the same apply to any calls to
Code: Select all
getHGISignal(Symbol(), Period(), 0);I'm certain I'm missing something about the way the tester actually works. But I'm not sure what it is. I get the strategy tester is a joke for a whole host of reasons but what is it specifically about the strategy tester and/or HGI, in this situation, that makes the above proposal a bad idea.
Looking forward to posting again some day
BobbyT