This indicator plots any two securities as a spread ratio using either +,-,/, or *. It also allows you to use a simple moving average of length 1 to n for your spread ratio. If you know what you want to do but don't know how to code it, we can work it out, you can float me some cheese on paypal and I'll do a nice job. This indicator is yours for free. Tarzan =...
These levels are based on price around earnings day. I have implemented support for 2 calculation modes: Mode 1: Level = (low of 1 day prior to earnings + high of 1 day after earnings) / 2.0 Mode 2: Level = (hl2 of 1 day prior to earnings + hl2 of 1 day after earnings + close from earnings day) / 3.0 Chart above shows "Mode 1". Mode can be changed via options...
A method how you can access Earnings in your Pine Script code. Enjoy!
This indicator shows the ratio between the DJIA and the price of gold. When the ratio is below 5 it is generally accepted that a rotation from commodities to equities should be investigated. When the ratio is above 30 it is, likewise, advised to consider rotating from equities to commodities. This is a modest improvement of the script to mark the key thresholds...