Please covert this code into streak

Please conver code attached

@Streak
@Krishnendu
@nashtrik

Hi @Abhinav_M

Kindly note that we have shared conditions as per your requirements based on our understanding. Refer to the image below:

Note: There might be differences in the results generated as different platforms use different sets of libraries to calculate the indicator values.

Hope this helps.