Calculate on bar close true or false.
1 - If its set to true it only plots, say a hammer, when the bar closes ;
2 - If its set to false it plots as soon as a candle have a hammer "shape" .
Let's assume I have a 5 min chart. The problem with the option 2 is that if a bar at sencond 10 have the shape of a hammer, it will stay as a hammer until the close of that bar and forever, even if the bar closes as an engolfing.
How is it possible to have that indicator, or any other, updating every tick, so that at second 10 when the bar is a hammer it shows "hammer" and then at second 11 if the bar changes to something that is not a hammer anymore, it does not show, and if next tick it goes back to the hammer shape it shows again?
If a moving average does that why other indicators that have text or shapes don't?
Do I have to change the code?
I'm comming from another platform and trying to rewrite my custom indicators in ninja.
Thanks for your help.
Comment