I cannot seem to correctly put together a gap check code between two moving averages.
For example, if the SMA on the 10 day is 2.00 and the SMA on the 21 day is 1.00. I want to trigger if the gap is at least .50 between the two.
Any chance anyone can help?
Thank you in advance!
For example, if the SMA on the 10 day is 2.00 and the SMA on the 21 day is 1.00. I want to trigger if the gap is at least .50 between the two.
Any chance anyone can help?
Thank you in advance!