Can any one tell me how to code to achieve the following :
Today's close is less than last highest close by 8%.
eg.
Day-1 Close = 80
Day-2 Close = 95
Day-3 Close = 100
Day-4 Close = 95
Day-5 Close = 98
Day-6 Close = 90 (Want to Sell Here since the close is more than 8% less than Day 3)
Thanks
AK