Yaser Rahmati | یاسر رحمتی
Last updated 4 months ago
Define entry and exit conditions.
//@version=5 strategy("Simple Strategy", overlay=true) ma = ta.sma(close, 14) if (close > ma) strategy.entry("Buy", strategy.long) else strategy.close("Buy")