msloane23423
New member
Hi all, blown away by this resource and that there are so many pieces of code. Great work all. I am a relatively simple trader and like everyone else I use a few key metrics to determine trends in the market on both minute scale and longer scale.
What I am trying to do is extremely simple for any basic level coder so looking for some help.
I am looking to create a lower chart, that encapsulates one line, which represents a summation of many evaluations, one based on momentum, one based on price.
For example, if the prices is ABOVE the SMA 20, that would be 1. If the SMA 20 is greater than the last bar, that would be 1. Together this would score as 2.
How do i code that in thinkscript? If i get that snippet i can fold in the rest of my metrics... thank you all.
My guess on how to do thois was to declare lower, then declare variables for each metric.... var 1= PRice vs SMA20, var 2 = SMAvsXBarsAgo, etc...
then at the end plot the summation of all of those variables...
THank you...
What I am trying to do is extremely simple for any basic level coder so looking for some help.
I am looking to create a lower chart, that encapsulates one line, which represents a summation of many evaluations, one based on momentum, one based on price.
For example, if the prices is ABOVE the SMA 20, that would be 1. If the SMA 20 is greater than the last bar, that would be 1. Together this would score as 2.
How do i code that in thinkscript? If i get that snippet i can fold in the rest of my metrics... thank you all.
My guess on how to do thois was to declare lower, then declare variables for each metric.... var 1= PRice vs SMA20, var 2 = SMAvsXBarsAgo, etc...
then at the end plot the summation of all of those variables...
THank you...