HELP WITH ICHIMOKU Senkou Span A or Senkou Span B

 

Hi All, 

I hope you are all well safe...

I am currently trying to put together an EA that is only allowed to take LONG/BUY positions above the Senkou Span A and only allowed to take SHORT/SELL positions below the Senkou Span B.

So for example, say the price crossed the lower bollinger band and i wanted to buy back up to the 20MA(MEAN) , whilst the bands above the Senkou Span A (the cloud). How would one go about coding this?

I would highly appreciate any input.

Thank you!

- Kam

Reason: