Hello Steak Tech Team,
I have an annual subscription to Streak. I created an indicator in pinescript to calculate the angle of price, MA or any other indicator. You can’t pay for both tools. Currently blocked.
//@version=5
indicator('Angle Oscillator', overlay=false)
src = close
price2bar_ratio = input(title="Price To Bar Ratio", defval=6.3985)
get_degrees(src, price2bar_ratio) =>
180.0 / (22.0 / 7.0) * math.atan(ta.change(src) / price2bar_ratio)
plot(get_degrees(src, price2bar_ratio))
Could you write a streak equivalent to this? I tried, but couldn’t get this to work.
@Streak Can you help me?
hi @vk1
Requirements cannot be created with the available features of Streak at this time.
The angles plotted against price or moving averages may change and may change depending on the scale and level of zoom on the chart. Therefore, it does not have a dedicated function specialized for angle measurement. To illustrate this, consider the following two images.
In the first image, a line is drawn to determine the trend angle. But when you zoom out to get a wider field of view, the previously obtained angles no longer have the same meaning. See second image for a magnified view of the chart.
Therefore, for the above reasons, this feature is not built into Streak as it can cause problems while validating backtesting results and live alerts. However, we have noted your requirement as feedback for future implementation and have forwarded it to the concerned team for further discussion and consideration.
Currently, you can use the Period Min/Period Max functions to create up/down conditions and determine trend lines. See the link for more details – Create (Advanced) – Streak Help
Hope this clarifies.
Vas Patel, thank you for your reply.
The Trading View platform uses price2bar_ratio to solve the problem described in the picture.
I’m currently using PeriodMin. It can identify rising states, but cannot distinguish between barely rising and truly rising. Periodmin will also return true if it is rising at an angle of 0.1. I couldn’t resolve this, so I thought I’d ask for help. It really causes a lot of false alarms.