Flag on multiple indcations within recent history

 

I would like to write a simple indicator (UP or DOWN arrow) that would display based on something like the following:

For UP arrow:

Williams%R (9) crossing from below -80 to above within last 2 candles

AND

Slow Stochastic (10.9.6) %K crossing above %D within the last 2 candles

AND

Last candle CLOSE above 9 EMA.


Suggestions on how to go about this?


Thank you.

 
MiamiTom:

I would like to write a simple indicator

Suggestions on how to go about this?

Find an indicator in the code base that does similar what you want. Download and rename. Replace price logic with your logic using William%R