Could you please help with code for the following

For a buy signal

Ichimoku Lagging line crosses Cloud from below (Span B from below)

For a sell signal

Ichimoku Lagging line crosses Cloud from above (Span A from above)

you can check the Ichimoku Cloud strategy from below Expert Advisor page