a1cturner
Well-known member
I noticed something today when looking at my flexible grid. I noticed that the curve of the 34/50 EMA cloud looked very similar on all stocks that trended up all day vs. a spike in the morning and flatten out. I would love to add this to my study as another possible confirmation of entry. Does anyone know how I could define the curve so I could tweak it to my liking?
For reference, the blue line on the bottom cloud is the 34 EMA and the yellow line on the bottom cloud is the 50 EMA. Pink markings are what I am looking for vs. Red markings.
This is what I tried so far but it doesn't really capture what I am looking for.
I tried EMASlow1Prior [10], EMASlow1Prior [20], EMASlow1Prior [30], EMASlow1Prior [50], and EMASlow1Prior [5].
This is the code I am currently working on: https://usethinkscript.com/threads/where-have-i-gone-wrong-sell-bar-not-displaying-properly.10596/
Obviously no-one knows how the curve will turn out but I would say if it's forming between 9:30-11:30 CST it's probably a good signal.
I am no geometry wiz (or math or coding wiz) but maybe something that would calculate the curve angle and the signal could be adjusted from the study inputs and options window to meet user preferences?!
I would also want something that works on downtrending stocks as well.
Am I over my head?
For reference, the blue line on the bottom cloud is the 34 EMA and the yellow line on the bottom cloud is the 50 EMA. Pink markings are what I am looking for vs. Red markings.
This is what I tried so far but it doesn't really capture what I am looking for.
Code:
#def EMASlow1Prior = EMASlow1;
#def EMASlow2Now = EMASlow2;
#def EMAMoMo = EMASlow2Now crosses above EMASlow1Prior[5];
#AddChartBubble(EMABull and EMAMoMo, low, "Call", color.dark_green, no);
I tried EMASlow1Prior [10], EMASlow1Prior [20], EMASlow1Prior [30], EMASlow1Prior [50], and EMASlow1Prior [5].
This is the code I am currently working on: https://usethinkscript.com/threads/where-have-i-gone-wrong-sell-bar-not-displaying-properly.10596/
Obviously no-one knows how the curve will turn out but I would say if it's forming between 9:30-11:30 CST it's probably a good signal.
I am no geometry wiz (or math or coding wiz) but maybe something that would calculate the curve angle and the signal could be adjusted from the study inputs and options window to meet user preferences?!
I would also want something that works on downtrending stocks as well.
Am I over my head?