Chart Studies (873)

Votes
Answers
Views
Question
1
vote
1
answer
72
views
asked 6 years ago by
Category: Chart Studies
Hi Peter, Quick question. I want PersonPivot points displayed in a label. If I use this statement, the label prints to 4 decimal places when I only want it to 2 decimal places. How do I change the output from say from 99.1234 to 99.12? Thanks in adva...
0
votes
1
answer
72
views
asked 6 years ago by
Category: Chart Studies
I'm setting up a script that displays a buy when the heikin ashi candle is green if the previous is red. And then to sell at the first red candle. However, at the beginning of let's say a 1 year daily chart that starts with a green candle, I will get...
0
votes
1
answer
72
views
asked 5 years ago by
Category: Chart Studies
Hi there, I was interested in sourcing the highest MACD value, since the signal line crosses the zero line.  My approach was to count the number of bars since the value was over zero, then use the highest function, with the count as the length.  Whil...
0
votes
1
answer
72
views
asked 4 years ago by
Category: Chart Studies
Hi Pete,  Is there a feature or can you please make a code to go back to a certain date and time on live chart similar to onDemand? Does OnDemand have regular issues loading charts and mismatch in between current price display on active ladder a...
0
votes
1
answer
72
views
asked 4 years ago by
Category: Chart Studies
I am making a study to compare lows so far I have Def swinglow = if low < low[1] and low < low[2] and low < low[-1] and low < low[-2] then 1 else 0; plot sl = if swinglow then low else double.nan; I want to be able to measure differences ...
0
votes
1
answer
72
views
asked 3 years ago by
Category: Chart Studies
Hey Pete!  Hopefully, you've not answered this question before.  What I'm trying to make is an indicator that shows an arrow under the candle for when a two-bar pattern occurs.  I'm basically looking for an inside bar and outside bar.  My kicker is t...
0
votes
1
answer
72
views
asked 3 years ago by
Category: Chart Studies
Pete Hope you can help turn my chart label into lower study.....If label would be green..make a green dot on the row...same for red/grey labels...   input length = 14; input averageType = AverageType.WILDERS; DefineGlobalColor("DI+", color.green...
0
votes
1
answer
72
views
asked 3 years ago by
Category: Chart Studies
Looking for an example of a way to show a lower study as a simple horizontal bar that would be different colors based on the status of the indicator. Attaching a jpg for the idea. Any guidance appreciated. Thank you!
0
votes
1
answer
72
views
asked 3 years ago by
Category: Chart Studies
Would it be possible to script an indicator to start at a specified time?  For instance, the bollinger bands carry the effect of prior expansion, and lag to show a full squeeze as it forms.  But is it possible to add options to the code to force it t...
0
votes
1
answer
72
views
asked 1 year ago by
Category: Chart Studies
Hello, I am trying to add a simple label to my chart showing the ATR coming into today. In other words the ATR from one bar ago. This is what I have so far but it's not accepting the code. input length = 14; input averageType = AverageType.WILDERS; p...