Tampa + FL/USA
Posts: 1 since Jun 2019
Thanks Given: 0
Thanks Received: 0
|
Hi, I am looking at setting up an alert for MACD crossover, then moving average crossover in the next 4 bars and angle between moving average lines at the crossover (short one above the long one) greater than 40 degrees on a 5 minute chart setup. I have the code below for the first 2 studies. I would appreciate if I can get code to include the 3rd requirement on 40 degrees angle also.
Thanks,
MACDHistogramCrossover("crossing type" = "Negative to Positive") is true and MovingAvgCrossover("length1" = 5, "length2" = 20, "average type1" = "EXPONENTIAL", "average type2" = "EXPONENTIAL") is true within 4 bars
|