I'm currently looking at the 50/200 Golden Cross breakout indicator. If I want to catch the upward movements from the beginning of any stock, does anyone think it's a good idea? Or at least can tell me what parameters I need to set in a stock scanner to catch such cases? And how can I put this as an alert? Whenever there is such a thing, I want to be immediately be notified by email.
input fastLength = 50; input slowLength = 200; input averageType = AverageType.SIMPLE; plot FastMA = MovingAverage(averageType, close, fastLength); plot SlowMA = MovingAverage(averageType, close, slowLength); FastMA.SetDefaultColor(GetColor(1)); SlowMA.SetDefaultColor(GetColor(2)); AddOrder(OrderType.BUY_AUTO, FastMA crosses above SlowMA, tickColor = GetColor(1), arrowColor = GetColor(1), name = "GoldenCrossBreakoutsLE"); AddOrder(OrderType.SELL_TO_CLOSE, low crosses below FastMA, tickColor = GetColor(2), arrowColor = GetColor(2), name = "GoldenCrossBreakoutsLX");