Can I plot small 1 minute length lines above and below current price that represent 1%, 2%, 3% and so on.

Thane313

New member
I doubt this indicator exists so i'd like to ask anyone if they know if what i'm wanting is even possible. I'd like to make a color coded series of lines that maintain a 1%, 2%, 3% offset from the current price choice (last, mark, ask) with the option to display the price values beside them and the option to display the difference between it and the price. I'd like the lines to just be 1 period length and offset to the right by one (or more) so it doesn't block the view of price action. If some level 2 data can be added here in visual form, boy that would be cool too.

Also, if anyone knows, would it be possible to plot a value at the top right hand corner of a chart that is the % of the currently visible portion of the price graph compared to the price. IE, if the current chart is zoomed into between exactly $90.00 and $100.00, then 10% would be in the corner.

Thanks for any help.
 
Solution
I doubt this indicator exists so i'd like to ask anyone if they know if what i'm wanting is even possible. I'd like to make a color coded series of lines that maintain a 1%, 2%, 3% offset from the current price choice (last, mark, ask) with the option to display the price values beside them and the option to display the difference between it and the price. I'd like the lines to just be 1 period length and offset to the right by one (or more) so it doesn't block the view of price action. If some level 2 data can be added here in visual form, boy that would be cool too.

Also, if anyone knows, would it be possible to plot a value at the top right hand corner of a chart that is the % of the currently visible portion of the price graph...
I doubt this indicator exists so i'd like to ask anyone if they know if what i'm wanting is even possible. I'd like to make a color coded series of lines that maintain a 1%, 2%, 3% offset from the current price choice (last, mark, ask) with the option to display the price values beside them and the option to display the difference between it and the price. I'd like the lines to just be 1 period length and offset to the right by one (or more) so it doesn't block the view of price action. If some level 2 data can be added here in visual form, boy that would be cool too.

Also, if anyone knows, would it be possible to plot a value at the top right hand corner of a chart that is the % of the currently visible portion of the price graph compared to the price. IE, if the current chart is zoomed into between exactly $90.00 and $100.00, then 10% would be in the corner.

Thanks for any help.

We cannot determine the visible portion of the chart as you requested, but the following may help with the rest of your request.

Capture.jpg
Ruby:
input pricetype = PriceType.LAST;
input lineweight = 2;
input linemover = 2;

def c = close(pricetype = pricetype);

plot c1 = (if IsNaN(c[linemover - 1]) and !IsNaN(c[linemover]) then c[linemover] + c[linemover] * .01 else Double.NaN);
plot c2 = (if IsNaN(c[linemover - 1]) and !IsNaN(c[linemover]) then c[linemover] + c[linemover] * .02 else Double.NaN);
plot c3 = (if IsNaN(c[linemover - 1]) and !IsNaN(c[linemover]) then c[linemover] + c[linemover] * .03 else Double.NaN);

c1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
c2.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
c3.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
DefineGlobalColor("C", Color.YELLOW);
c1.SetDefaultColor(GlobalColor("C"));
c2.SetDefaultColor(GlobalColor("C"));
c3.SetDefaultColor(GlobalColor("C"));
c1.SetLineWeight(lineweight);
c2.SetLineWeight(lineweight);
c3.SetLineWeight(lineweight);

input showbubbles = yes;
input bubblemover = 2;
def bm = bubblemover;
def bm1 = bm - 1;
AddChartBubble(showbubbles and IsNaN(c1[bm]) and !IsNaN(c1[bm1]), c1[bm1], "1%", c1.TakeValueColor());
AddChartBubble(showbubbles and IsNaN(c2[bm]) and !IsNaN(c2[bm1]), c2[bm1], "2%", c1.TakeValueColor());
AddChartBubble(showbubbles and IsNaN(c3[bm]) and !IsNaN(c3[bm1]), c3[bm1], "3%", c1.TakeValueColor());
 
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
412 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top