Condition for LTP > SMA Close

Hi,
I am not able to satisfy the below condition, it is not executing my position, if I remove the last condition it is executing, so the error is in the last condition. Any suggestion is appreciated.

Change the condition of current week to current month. You are basically checking a condition on Nifty Futures and there is no weekly futures.