Calculate price that is 90% greater than previous close


Category:
0
0

Hello Pete,

I wanted to know how to create a watchlist column that calculates the price that is 90% greater than the previous days close.

 

I know this will work in the platform, but I will also use it on my mobile watchlist.

 

Best

 

Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on May 6, 2021 8:57 am
82 views
0
Private answer

Since you have requested a custom watchlist column I have moved your post out of the "Chart Studies" topic and into the "Watch Lists" topic.

The simplest way to compute this is to set the custom column to the daily time frame. In this way we only need to reference the previous bar. So this code will compute the value that is 90% above the close of the previous bar (as apposed to only the previous day), regardless what time frame you select for the custom column.

input percentChange = 90.0;
plot data = close[1] * (1 + percentChange * 0.01);

I have included a user input to adjust the percent change each user might want to display.

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on May 6, 2021 10:15 am
0
Extremely impressed, ty
( at May 6, 2021 6:11 pm)