The issue I'm facing is that when the state of indicators changes from bullish to bearish or vice versa on the HTF, all closed bars of the current HTF bar on the LFT will change (repaint).
The question is how can I prevent all closed bars on the LTF from current HTF bar from repainting when the HTF bar changes state except the currently un-closed bar ?
How do I go about it ? please share any code examples/snippets.
It is a martingale that when the price goes up it opens Sells and when price goes down it opens Buys. I would like it to do the opposite. That is Buy when price goes up and Sells when price goes down.
Would greatly appreciate it if anyone is able to do this.
Thank you and Best rgds
- (18.19 KiB) Downloaded 12 times