• LarkBars plot lines _in real time_. These can be used as current turning points when they trigger (should be combine with other indicators), or show past areas of support / resistance.
• LarkValue attempts to show value ares of price movement, marked in green. This can be used as a trigger to get into something, or hold off. Overlaid are two STO lengths, which can be used to watch divergence, or otherwise.
These two scripts are currently private, reworking some of the code.
i am curious: how do you handle previous high/low values? i mean, how do you keep track that a high has been reached, and later, even though the price falls from there, you keep plotting those circles (that, i understand how to do--something along these lines?:
acc = cond ? 1 : na(acc) ? 0 : acc ? s < s : 0
but then how does the script know when to stop plotting circles?
what's really puzzling is that sometimes it goes plotting circles for many bars and sometimes for very few bars.
do you do a simple diff with some preset distance from the circle to the close? for ex, am looking at the left side of your chart where there is a long green line. this line stops after the price keeps moving up further. is that achieved by coding something like this:
if price > 50 pips then stop plotting circles ?
but if so, then why does the script keep plotting circles when the price keeps plunging all the way to 28? there is now way of knowing at that point the script will go back up.
also, how do you handle programmatically switching to a different securities that is being quoted with 5 decimals instead of 2? i tried but couldn't. i think it is still not possible at the moment, or am i missing something?
The bars or dots here, start plotting when an condition is met, the value is then held until the condition is met again.
So something like
cond1 = blah ? 1 : 0
holder = cond1 ? high : holder
With a value holding over like this you can then more easily call upon it and compare it with other things