Calculates P/E Ratio and shows Earnings (TTM) as hisogram. Works only on 3M period.
Inspired by @LazyBear's/@timwest's script: Usage: support and resistance levels based on averaging price around earnings and quarterly opens. What it is plotting: 1. A horizontal level whenever earnings occur. If actual earnings is higher than estimated, the line turns green, else red. 2. A horizontal level every quarterly open, colored black. 3. An...
Strategy with simple stop-loss and take-profit in percentage. If last trade was a successful one then repeat it. If not successful - do a reversal trade.
I am proposing an alternative to the percent change. An alternative that is symmetrical to both positive and negative change, unlike percentage change. The simple idea is to have a positive number if the reference value (called val in the script) is lower than the stock value and needs to be multiplied; a negative number instead if the reference number is...
Following Preston Pysh's "Bitcoin Mayer Multiple" study, I made this simple script to plot the Mayer multiple by calculating the ratio between bitcoin price and its 200-day moving average. It also plots the moving average of ratio itself.
Following Preston Pysh's "Bitcoin Mayer Multiple" study, I made this simple script to plot the recommended buy price based on the calculated 2.4x ratio between bitcoin price and its 200-day moving average. The ratio and SMA length have default values of 2.4 and 200 and can be adjusted.
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!