How do i store the value of the last up and down fractals

 

Hi everyone,

I am relatively new to ea programming.

I am trying to store the values of the latest up fractal and down fractals and then use them while modifying my stop losses.

any help would be greatly appreciated

 

thanks