TradingView
JayJayTrades1911
Feb 3, 2023 5:45 AM

Premium/Discount Zone Buy/Sell Indicator JMJ 

Gold/U.S. DollarFXCM

Description

This indicator calculates whether the opening price is in a premium or discount zone, based on the specified premiumThreshold and discountThreshold values. A premium zone is defined as when the difference between the high price and the opening price divided by the opening price is greater than or equal to premiumThreshold. A discount zone is defined as when the difference between the opening price and the low price divided by the opening price is less than or equal to discountThreshold. The premium and discount signals are plotted as green and red triangles, respectively.
Comments
pibrewer
Thanks for posting.... can I setup alerts as to when it enters a discount or premium zones? If so, can you leave an example? Thanks
More