Inside and Up/Down box

conmayne

Member
def insideBar = close < close[1] and close > open[1] or close < open[1] and close > close[1];
def InsideUp = insideBar[1] and close > high[1] ;
def InsideDown = insideBar[1] and close < low[1] ;

I'm trying to get TOS to plot a green box over any inside and ups that extends all the way to the right. vice versa for the inside and downs with a red highlighted box. Can anyone help me with that real quick? I want it to look like mobius pivot lines indicator boxes.
 
Solution
i am not sure of your inside bar formula. ( maybe it's too late)
i left it in , but disabled it, so you could re-enable it if you want to.
i added my own inside bar formula.

patched code from post#2

i loaded my code from post2 and noticed sometimes there were lines at 0 during the first few bars.
i added a check , if barnumber 1 then na


Code:
# inside_updown_box_mod01b

# https://usethinkscript.com/threads/inside-and-up-down-box.11130/
# Inside and Up/Down box


input candle_levels = {default "wick" , "body" };
input show_big_bar_level_lines = yes;

def bn = barnumber();
def na = double.nan;

# choose price levels for inside bar , wicks or body
def highx;
def lowx;
def t;
switch (candle_levels) {
case "wick":
  highx = high...
Can someone convert this form @halcyonguy
https://usethinkscript.com/threads/inside-and-up-down-box.11130/#post-109057
using the rules in the following link? https://usethinkscript.com/threads/...n-using-body-of-mother-candle-not-wick.14205/. The link just identifies the inside pattern with arrows and wedges, I would like the lines and clouds like this study has. Thanks. I'd like the lines on the high and low of the first candle of the pattern.

reply to original post...
i'll try to make sense of this new post tomorrow

you post a question about inside candle and a link to another post.
that other post asks to modify some unknown previous post (1 of the 18 posts), using the rules in another post.
the rules in other post talk about a 3 bar pattern.....

no , sorry, i can not follow this, so i can not do anything. i'm not going to read pages of posts and guess at what you want. there are no clouds in 'this' study.

just try to describe what you want.
look up the pattern , if it exists , and talk about the candle names. or say bar1 does this. this has to happen for bar2 to exist. bar3,...
do you want a modified inside pattern?
talk about mother bar, inside bar, and from what price level and what candle, you want something to be drawn.
https://priceaction.com/price-action-university/strategies/inside-bar/
 

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

reply to original post...
i'll try to make sense of this new post tomorrow

you post a question about inside candle and a link to another post.
that other post asks to modify some unknown previous post (1 of the 18 posts), using the rules in another post.
the rules in other post talk about a 3 bar pattern.....

no , sorry, i can not follow this, so i can not do anything. i'm not going to read pages of posts and guess at what you want. there are no clouds in 'this' study.

just try to describe what you want.
look up the pattern , if it exists , and talk about the candle names. or say bar1 does this. this has to happen for bar2 to exist. bar3,...
do you want a modified inside pattern?
talk about mother bar, inside bar, and from what price level and what candle, you want something to be drawn.
https://priceaction.com/price-action-university/strategies/inside-bar/
Sorry for confusion. I mentioned both links because the inside and up down box link had the clouds drawn the way I wanted them but the mother candle thread had the set-up I wanted. So basically I want the inside candle identified when it is within the body of the candle before it not the wicks. The "mother candle" thread did this but instead of identifying it with wedge icons I would like lines drawn at the high and low of the "mother" candle (the candle before the inside candle) and then I would like in-between those lines to be colored with a red cloud if the candle formation breaks to the downside on the third Candle (inside and down) or colored with a green cloud if the third candle breaks to upside (inside and up. The inside and up-down box thread had the example of this. Thanks.
 
Sorry for confusion. I mentioned both links because the inside and up down box link had the clouds drawn the way I wanted them but the mother candle thread had the set-up I wanted. So basically I want the inside candle identified when it is within the body of the candle before it not the wicks. The "mother candle" thread did this but instead of identifying it with wedge icons I would like lines drawn at the high and low of the "mother" candle (the candle before the inside candle) and then I would like in-between those lines to be colored with a red cloud if the candle formation breaks to the downside on the third Candle (inside and down) or colored with a green cloud if the third candle breaks to upside (inside and up. The inside and up-down box thread had the example of this. Thanks.

thanks for explaing, that makes sense.
do you want the lines and cloud to extend to the right until the next inside bar?
 
thanks for explaing, that makes sense.
do you want the lines and cloud to extend to the right until the next inside bar?
I'm looking for the same thing. If you could help with it, that would be great. If you've already posted it and I missed it, please point me in the right direction. Thanks for your help with this.
 

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
521 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