How to know how many bars overall the SMA 200 was above the price from our current bar? New comment ArikKarish 2018.06.21 22:42 How to know how many bars overall the SMA 200 was above the price from our current bar? Very simple but yet so complicated.., i just want to know the way to know how many bars in total the SMA 200 was above the price from the current open bar... please help, thank you for your time!.. I want to know how much sma is in the price. How to know if a bar cross 200 SMA? how to get when was the last time price/bar touched an indicator kypa 2018.06.21 22:58 #1 Loop from last bar towards first comparing SMA200 and price, for example close. Nitin Raj 2018.06.21 23:04 #2 Create a timestamp at the sma cross. Now use this timestamp in the iBarShift function. Reset of timestamp would require at opposite cross or at some other criteria based on your objective. ArikKarish 2018.06.21 23:06 #3 kypa: Loop from last bar towards first comparing SMA200 and price, for example close.maybe could you show me an example please? ArikKarish 2018.06.22 06:58 #4 done!, thanks New comment
How to know how many bars overall the SMA 200 was above the price from our current bar?
Very simple but yet so complicated.., i just want to know the way to know how many bars in total the SMA 200 was above the price from the current open bar...
please help, thank you for your time!..