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
Your code is correct! Do you think that is not working someway?
Thank you for confirming. I wasnt sure if this was the problem or something else.