TradingView
Blockhead305
22 אוג׳ 2022 22:16

Interactive trendline 

EUR/USDOANDA

תיאור

This is a concept that I have been playing with
to make a manual trend line that has more then just two connecting dots
but that has sequential data connected on every bar between the
beginning an the end point that can then be used to determine a break of trend or
a bounce.

This is added in a few simple steps
1) add the indicator to your chart
2) set the x_1 time bar
3) set the y_1 price
4) set the x_2 time bar
5) set the y_2 price
6) check the table that calculated the run value and enter that value in the settings box in the "Run" input box
תגובות
xmd1979
cool idea for trendlines setups customization but it also can be customized into a hi lo 45 angle degree line from last low or last high to close, thank you)
Blockhead305
I can't see how you are going to calculate degrees when your x-axis is in time and your y-axis is in price. If you find a way let me know.
JohnBartlesAccount
@Blockhead305,
You could multiply the run by a normalization factor and just let the User decide for themselves what the normalization factor should be. So, the user would actually be deciding what a 45 deg angle is.

[script]math.atan(rise/(run * normalizationFactor)) * (180 / math.pi)[\script]
Blockhead305
@JohnBartlesAccount, Will try that thanx
jafet20
How to set the x_1 time bar, y_1 price, x_2 time bar and y_2 price?
Blockhead305
@jafet20, you click on the bar for the x and you click on the price for the y
עוד