Yaser Rahmati | یاسر رحمتی
Last updated 5 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")