Is there a way to only activate buy signal when the close is a certain pipsize above ema? This is what i tried – buydistance = 5 c2 = ExponentialAverage[20](close) if close> c2+buydistance*pointsize and not onmarket then BUY 1 Contract AT Market SET TARGET pPROFIT 10 SET STOP pLOSS 10 endif