Volume ROC and 2nd Derivative by ianhThe purpose of this code is to graph a volume simple moving average (sma) and it's first and second derivatives to provide traders with additional information that might determine if volume is converging or diverging with price. The yellow line represents the volume sma, the red line represents the first derivative or the rate of change of the volume and the green line represents the second derivative or acceleration of volume. For long term trading, if the yellow line is "trending" upwards with higher highs and higher lows it means that volume is supporting the over all long term price trend. If the volume is decreasing over the long term then it is not supporting the current price trend. The first and second derivatives may help short term weekly traders confirm price movements. There are several different conditions to look for:
First (Red) ++ Second (Green) --, Trading volume at the current price has "peaked" and the price may reverse soon.
First (Red) -- Second (Green) ++, Trading volume at the current price has "troughed" and the price may reverse soon.
First (Red) + Second (Green) +, Trading volume is not only increasing but it's accelerating which might confirm a large price movement.
First (Red) - Second (Green) -, Trading volume is not only decreasing but it's decelerating which might indicate little to no price movement.
Derivativestrategy
Barholle eMA and RSI Movement TestThis is a test that offers insight into whether and asset is heading into bullish or bearish territory.
This indicator/test offers insight into the Exponential Moving Average's velocity and acceleration as well as the Stochastic RSI's velocity, acceleration and jerk. Included is a 'Stochastic Difference' and 'Stochastic Growth' indicators (commented out) that measure the difference between K and D in the Stoch RSI as well as the rate of it's change. This test is all about crossovers - the best leading indicator is a downward cross of the eMA velocity over the eMA acceleration, indicating a drop in price in the current or next bar.
The lines or importance have been set to -2 and 5, but these should be adjusted to suit your preferences. These numbers were chosen in order to try and create some kind of threshold after which action might be suggested. Backtesting is highly recommended so you can see how the test does and does not work. It is super powerful, but it is not omniscient - its an RSI and eMA derivative, past success does not necessarily dictate future success.
Please look at the code for several more plots you can use of derivatives and other ideas explore but commented out for greater legibility of the graph. Commenting and commenting (or uncommenting all and just disabling some in the settings) and comparing the graphs and crossovers is a useful exercise. To that end, one last concept - the MARSI - a combined moving averages and RSI measurement - was abandoned because it didn't appear to indicate anything of use, however you may find crossovers or patterns with it comparing it to other graphs, so it was left in but commented.
Please take a look at the comments and all the math and indicators 'left on the cutting room floor' in the script. Maybe you'll find a gem in the redux version of this script.
Outreach regarding the script, patterns noticed and full-on stealing of the script are all permitted. Many elements of this script were nabbed from other scripts - thank you to a community of coders who put it all out there.