Chart plots and the position of (arrows, triangles, etc.)

jrandydavis

New member
Plus
So I'm still learning about Chart plots, and I'm wondering how much freedom/liberty we have when it comes to where the arrows, triangles, etc. are actually plotted/positioned on the chart. So for example, I have a simple pullback plot that I'm using:

Plot PBSMALL = If Close[2] >= open[2] * 1.065 AND close[1] >= open[1] AND Close[1] >= Close[2] AND (close[1] – open[1]) <= (0.15 * (close[2] – open[2])) then (open * 0.85) else Double.NaN;
PBSMALL.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
PBSMALL.SetLineWeight(5);
PBSMALL.SetDefaultColor(Color.MAGENTA);

This plots a magenta arrow on the chart at 85% of the value of the open of the current bar [0] when the previous two bars/candles meet the above criteria. I use 85% so that there is some space between the plotted arrow and the current running bar/candle.

This is OK, but what I'd really like to be able to do is "back plot" the arrow so that it appears under candle [1] rather than under the present candle[0]. I tried doing: "...then (open[1] * 0.85) else Double.NaN;" but this only adjusts the height of the position where the arrow is plotted (i.e. it vertically offsets it 85% from open[1] rather than from open[0]), and does not change the candle under which it appears (i.e. still @ [0] and not @ [1]).

Is there any way around this, or a clever trick to get the arrow to offset to the desired location/candle, once the "if" the criteria are met?

Thank you,
JRD
 

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
608 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