Camarilla Pivot Points for ThinkOrSwim

zeek

Active member
2019 Donor
I use the default Woodie Pivot script in TOS and really like it. So i was wondering if someone could create the Camarilla Pivot script for TOS as well? This pivot is calculated the same way as Woodie but the main difference is that it calculates for 8 main levels (4 support and 4 resistance) compared to only 6 levels in Woodie.

I think it would be really useful to have that extra 4th support & resistance level on the chart so if anyone could help me create this or maybe modify the default Woodie script i would appreciate it very much.

Some more info about the pivots can be found here: https://www.babypips.com/learn/forex/other-pivot-point-calculation-methods
 

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
Did you check ThinkorSwim studies? There is already a default CamarillaPoints in there.
 

zeek

Active member
2019 Donor
Ok, i must have missed it. I searched for pivot(s) but did not get any search results so just assumed it wasn't available.

Edit: Yes, found it. Thanks @BenTen
 

bjjspiderguard

New member
Hi community. I have been trading with the Camarilla Pivot Points and I was wondering if there was a way to create a pre market scan lets say, that would indicate which stocks are between R4 and R5 and L4 and L5 respectively, during the pre market hours. It would be amazing if someone could create a pre market scanner like that since stocks opening between these price ranges offer great probability entries!

Thank you very much!
 

BenTen

Administrative
Staff member
Staff
VIP
Lifetime
@bjjspiderguard Do you have an example? If so, please post a screenshot of it.

Keep in mind, you will have to run this scanner during pre-market hours.
 

XeoNoX

Well-known member
VIP
Hi community. I have been trading with the Camarilla Pivot Points and I was wondering if there was a way to create a pre market scan lets say, that would indicate which stocks are between R4 and R5 and L4 and L5 respectively, during the pre market hours. It would be amazing if someone could create a pre market scanner like that since stocks opening between these price ranges offer great probability entries!

Thank you very much!


The study uses DAY aggregation at the smallest data increment, therefore you cant scan intraday (premarket) with it since the scanner will return a aggregation error message.
 
Last edited:

bjjspiderguard

New member
@bjjspiderguard Do you have an example? If so, please post a screenshot of it.

Keep in mind, you will have to run this scanner during pre-market hours.
Hi Ben, thank you for the response. Here are a couple of images. I have the Camarilla pivot points setup like this, so that the aggregation period and the length is 1.

Here a couple of examples of what I would be looking at pre-market. So basically a scanner that would allow me to know which stocks are moving within those levels being R4 and R5 and L4 and L5 based on the Camarilla calculations.

Again, thank you so much for your help!
 
Last edited by a moderator:

Optionsguy

New member
I’ve seen there are ways to make studies that show quarterly and yearly central pivot ranges in TOS (instead of just day, week, month), but can it be done for the Camarilla points?

Any help would be greatly appreciated!
 

madpuri

Member
So, thinkorswim has the Camarillo pivots but the aggregation only goes to monthly. Is there any Way to change the code to include a quarterly and yearly aggregation? I can post the code here if needed as I believe it can be modified.
 

madpuri

Member
So, thinkorswim has the Camarillo pivots but the aggregation only goes to monthly. Is there any Way to change the code to include a quarterly and yearly aggregation? I can post the code here if needed as I believe it can be modified.
Why did this get moved to weekly monthly. My question has nothing to do with this thread. It is asking about quarterly and yearly Camarillo pivots
 

prince

New member
This is my first post. Apologies for any cosmetic related issues.

Somewhat not allowing to insert the image

Code:
# Camarilla pivots Support and resistance lines
# Strategy designed by Prince
# Prince - v1  - 2021/03/24
# Plots Resistance "H" and Support "L" lines based previous day High, Low, Close.
# Bull zone and Bear zones are highlighted in green and red respectively
# Plots dynamic support and resistance lines with EMA 50 & 200
# Need to evaluate for Futures and already labeled with other exchange timings.
# This code is still under back testing. Appreciate your help to enhance for better results


def prevdayhi =HighestAll(high(period = AggregationPeriod.DAY)[1]);
def prevdaylo= LowestAll(low(period = AggregationPeriod.DAY)[1]);
def prevdayclose= close(period = AggregationPeriod.DAY)[1];

plot H6 = (prevdayhi/(prevdayhi-prevdaylo))*prevdayclose;
plot H5 = (prevdayhi/prevdaylo)*prevdayclose;
plot H4 = 0.55*(prevdayhi - prevdaylo) + prevdayclose;
plot H3 = 0.275*(prevdayhi - prevdaylo) + prevdayclose;
plot H2 = 0.183*(prevdayhi - prevdaylo) + prevdayclose;
plot H1 = 0.0916*(prevdayhi - prevdaylo) + prevdayclose;


plot L1 = prevdayclose - 0.0916*(prevdayhi - prevdaylo);
plot L2 = prevdayclose - 0.183*(prevdayhi - prevdaylo);
plot L3 = prevdayclose - 0.275*(prevdayhi - prevdaylo);
plot L4 = prevdayclose - 0.55*(prevdayhi - prevdaylo);
plot L5 = (prevdayclose - (H5 - prevdayclose));
plot L6 = (prevdayclose - (H6 - prevdayclose));

plot HSL = (L3+L4)/2;
plot LSL = (H3+H4)/2;

def na = Double.NaN;
def bno = BarNumber();
def h  = high;
def l  = low;
def cb   = HighestAll(if !IsNaN(h) then bno else na);

def barnumber = barNumber();
def day = getDay();
def month = getMonth();
def year = getYear();
def lastDay = getLastDay();
def lastmonth = getLastMonth();
def lastyear = getLastYear();
def isToday = if(day == lastDay and month == lastmonth and year == lastyear, 1, 0);
def istodaybarnumber = HighestAll(if isToday then barnumber else double.nan);


AddChartBubble((barnumber == istodaybarnumber), H5, "H5:Long Target "+round(H5), Color.GREEN);
AddChartBubble((barnumber == istodaybarnumber), H4, "H4:Go Long above "+round(H4), Color.GREEN);
AddChartBubble((barnumber == istodaybarnumber), H3, "H3:Go Short below "+round(H3), Color.orange);
AddChartBubble((barnumber == istodaybarnumber), H2, "H2", Color.GREEN);
AddChartBubble((barnumber == istodaybarnumber), H1, "H1", Color.GREEN);

AddChartBubble((barnumber == istodaybarnumber), L1, "L1", Color.ORANGE);
AddChartBubble((barnumber == istodaybarnumber), L2, "L2", Color.ORANGE);
AddChartBubble(barnumber == istodaybarnumber, L3, "L3:Go Long above "+round(L3), Color.green);
AddChartBubble((barnumber == istodaybarnumber), L4, "L4:Go Short below "+round(L4), Color.ORANGE);
AddChartBubble((barnumber == istodaybarnumber), L5, "L5:Short Target "+round(L5), Color.ORANGE);

#AddChartBubble((barnumber == istodaybarnumber), HSL, "[email protected]"+round(HSL), Color.red);
#AddChartBubble((barnumber == istodaybarnumber), LSL, "Stop"+round(LSL), Color.red);


#H1.Hide();
#L1.Hide();

H6.SetDefaultColor(GetColor(5));
H5.SetDefaultColor(GetColor(5));
H4.SetDefaultColor(GetColor(5));
H3.SetDefaultColor(GetColor(5));
H2.SetDefaultColor(GetColor(5));
H1.SetDefaultColor(GetColor(5));
L1.SetDefaultColor(GetColor(6));
L2.SetDefaultColor(GetColor(6));
L3.SetDefaultColor(GetColor(6));
L4.SetDefaultColor(GetColor(6));
L5.SetDefaultColor(GetColor(6));
L6.SetDefaultColor(GetColor(6));

def paintingStrategy = PaintingStrategY.DASHES;

H6.SetPaintingStrategy(paintingStrategy);
H5.SetPaintingStrategy(paintingStrategy);
H4.SetPaintingStrategy(paintingStrategy);
H3.SetPaintingStrategy(paintingStrategy);
H2.SetPaintingStrategy(paintingStrategy);
H1.SetPaintingStrategy(paintingStrategy);
L1.SetPaintingStrategy(paintingStrategy);
L2.SetPaintingStrategy(paintingStrategy);
L3.SetPaintingStrategy(paintingStrategy);
L4.SetPaintingStrategy(paintingStrategy);
L5.SetPaintingStrategy(paintingStrategy);
L6.SetPaintingStrategy(paintingStrategy);

def buy = (close crosses above L3 ) or
           (close crosses above L5 ) or
          (close crosses above H4 );

def sell = (close crosses below H3 ) or
            (close crosses below H5 ) or
           (close crosses below L4 );

#addchartbubble(buy,low,"L",color.green);
#addchartbubble(sell,high,"S",color.orange);

plot ema200 = ExpAverage(close, 200);
ema200.SetDefaultColor(color.red);
ema200.SetPaintingStrategy(paintingStrategy = PaintingStrategy.DASHES);
ema200.setLineWeight(2);
AddChartBubble((cb == bno), ema200, "EMA200 "+round(ema200), Color.lighT_RED);
input paintbars = no;
AssignPriceColor(if paintbars and close <= ema200 then Color.RED else Color.GREEN);

AddCloud(H5, H4, Color.GREEN);
AddCloud(L4, L5, Color.red);

plot ema50 = ExpAverage(close, 50);
ema50.SetDefaultColor(color.lime);
ema50.SetPaintingStrategy(paintingStrategy = PaintingStrategy.DASHES);
ema50.setLineWeight(1);
AddChartBubble((cb == bno), ema50, "EMA50 "+round(ema50), Color.lime,no);

addchartBubble(SecondsTillTime(1900)==0,highestAll(high),"Sydney Open",color.white);
addchartBubble(SecondsTillTime(2000)==0,highestAll(high),"Tokyo Open",color.white);
addchartBubble(SecondsTillTime(2130)==0,highestAll(high),"Hong kong Open",color.white);
addchartBubble(SecondsTillTime(300)==0,highestAll(high),"Frankfurt Open",color.white);
addchartBubble(SecondsTillTime(400)==0,highestAll(high),"London Open",color.white);
addchartBubble(SecondsTillTime(0930)==0,highestAll(high),"NYSE Open",color.white);
 

iAskQs

Member
Thanks for putting this together. I'm experiencing some bugs on ES. Most noticeably, it's painting candles even with that option off.
 
Last edited:

SleepyZ

Well-known member
VIP
Lifetime
I’ve seen there are ways to make studies that show quarterly and yearly central pivot ranges in TOS (instead of just day, week, month), but can it be done for the Camarilla points?

Any help would be greatly appreciated!

Try this
Code:
# Camarillo Pivots Modified

# Sleepyz - usethinkscript request to add quarter and year options
#
# TD Ameritrade IP Company, Inc. (c) 2013-2021
#

input aggregationPeriod = {default "DAY", "WEEK", "MONTH", "QUARTER", "YEAR"};
input length = 1;

Assert(length > 0, "'length' should be positive: " + length);

def yyyymmdd = GetYYYYMMDD();
def month = GetYear() * 12 + GetMonth();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
def period;
switch (aggregationPeriod) {
case DAY:
    period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1;
case WEEK:
    period = Floor(day_number / 7);
case MONTH:
    period = Floor(month - First(month));
case QUARTER:
    period = getmonth() % 3;
case YEAR:
    period = getmonth() % 12;
}
def count = CompoundValue(1, if period != period[1] then (count[1] + period - period[1]) % length else count[1], 0);
def start =  CompoundValue(1, count < count[1] + period - period[1], yes);
def highValue = if start then Highest(high(period = aggregationPeriod), length)[1] else if highValue[1] != 0 then highValue[1] else Double.NaN;
def lowValue = if start then Lowest(low(period = aggregationPeriod), length)[1] else if lowValue[1] != 0 then lowValue[1] else Double.NaN;
def closeValue = if start then close(period = aggregationPeriod)[1] else closeValue[1];
def range = highValue - lowValue;

plot R5 = (highValue / lowValue) * closeValue;
plot R4 = closeValue + range * (1.1) / 2;
plot R3 = closeValue + range * (1.1) / 4;
plot R2 = closeValue + range * (1.1) / 6;
plot R1 = closeValue + range * (1.1) / 12;
plot S1 = closeValue - range * (1.1) / 12;
plot S2 = closeValue - range * (1.1) / 6;
plot S3 = closeValue - range * (1.1) / 4;
plot S4 = closeValue - range * (1.1) / 2;
plot S5 = (closeValue - (R5 - closeValue));

R1.Hide();
S1.Hide();

R5.SetDefaultColor(GetColor(5));
R4.SetDefaultColor(GetColor(5));
R3.SetDefaultColor(GetColor(5));
R2.SetDefaultColor(GetColor(5));
R1.SetDefaultColor(GetColor(5));
S1.SetDefaultColor(GetColor(6));
S2.SetDefaultColor(GetColor(6));
S3.SetDefaultColor(GetColor(6));
S4.SetDefaultColor(GetColor(6));
S5.SetDefaultColor(GetColor(6));

def paintingStrategy = if aggregationPeriod == aggregationPeriod.DAY then PaintingStrategy.POINTS else if aggregationPeriod == aggregationPeriod.WEEK then PaintingStrategy.TRIANGLES else PaintingStrategy.SQUARES;

R5.SetPaintingStrategy(paintingStrategy);
R4.SetPaintingStrategy(paintingStrategy);
R3.SetPaintingStrategy(paintingStrategy);
R2.SetPaintingStrategy(paintingStrategy);
R1.SetPaintingStrategy(paintingStrategy);
S1.SetPaintingStrategy(paintingStrategy);
S2.SetPaintingStrategy(paintingStrategy);
S3.SetPaintingStrategy(paintingStrategy);
S4.SetPaintingStrategy(paintingStrategy);
S5.SetPaintingStrategy(paintingStrategy);
Capture.jpg
 
Last edited:

1morerep

New member
VIP
I can't seem to get the TOS-made Camarilla points to calculate correctly so I redid it. I removed the aggregation periods and now it only uses the previous day data. I have scripted the actual formula but need some help aligning the calculated points (on left axis) with the actual price (on right axis). Wonder if anyone can help me fix the code so it aligns correctly.




declare hide_on_daily;

input aggregationPeriod = AggregationPeriod.DAY;
input length = 1;
input displace = -1;
input showOnlyLastPeriod = no;

def PH = high(period = aggregationPeriod)[1];
def PL = low(period = aggregationPeriod)[1];
def PC = close(period = aggregationPeriod)[1];

plot R5;
plot R4;
plot R3;
plot R2;
plot R1;
plot S1;
plot S2;
plot S3;
plot S4;
plot S5;


R1 = PC + (PH-PL)*1.1/12;
R2 = PC + (PH-PL)*1.1/6;
R3 = PC + (PH-PL)*1.1/4;
R4 = PC + (PH-PL)*1.1/2;
R5 = R4+1.168*(R4-R3);
S1 = PC - (PH-PL)*1.1/12;
S2 = PC - (PH-PL)*1.1/6;
S3 = PC - (PH-PL)*1.1/4;
S4 = PC - (PH-PL)*1.1/2;
S5 = S4+1.168*(s3-s4);

R5.SetDefaultColor(GetColor(5));
R4.SetDefaultColor(GetColor(5));
R3.SetDefaultColor(GetColor(5));
R2.SetDefaultColor(GetColor(5));
R1.SetDefaultColor(GetColor(5));
S1.SetDefaultColor(GetColor(6));
S2.SetDefaultColor(GetColor(6));
S3.SetDefaultColor(GetColor(6));
S4.SetDefaultColor(GetColor(6));
S5.SetDefaultColor(GetColor(6));

R5.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
R4.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
R3.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
R2.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
R1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
S1.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
S2.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
S3.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
S4.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
s5.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);

R5.SetStyle(Curve.SHORT_DASH);
R4.SetStyle(Curve.SHORT_DASH);
R3.SetStyle(Curve.SHORT_DASH);
R2.SetStyle(Curve.SHORT_DASH);
R1.SetStyle(Curve.SHORT_DASH);
S1.SetStyle(Curve.SHORT_DASH);
S2.SetStyle(Curve.SHORT_DASH);
S3.SetStyle(Curve.SHORT_DASH);
S4.SetStyle(Curve.SHORT_DASH);
S5.SetStyle(Curve.SHORT_DASH);
 

SleepyZ

Well-known member
VIP
Lifetime
I can't seem to get the TOS-made Camarilla points to calculate correctly so I redid it. I removed the aggregation periods and now it only uses the previous day data. I have scripted the actual formula but need some help aligning the calculated points (on left axis) with the actual price (on right axis). Wonder if anyone can help me fix the code so it aligns correctly.

You appear to have the 'left axis' enabled. Please uncheck/disable it at the 'inputs and options' settings at the 'gear' for the indicator. It is not meant to be used for this type of upper panel indicator. It is used primarily for lower panel indicators to be displayed 'proportionally' on the upper panel.
 
Last edited:

jrayden

New member
I noticed that Camarilla Pivot Points from Das Trader and IB are different from TOS and I can't put my finger on why. I really like the DAS pivot points, they seems to be more respected for intraday trading.
 

svencool

Member
Try this
Code:
# Camarillo Pivots Modified

# Sleepyz - usethinkscript request to add quarter and year options
#
# TD Ameritrade IP Company, Inc. (c) 2013-2021
#

input aggregationPeriod = {default "DAY", "WEEK", "MONTH", "QUARTER", "YEAR"};
input length = 1;

Assert(length > 0, "'length' should be positive: " + length);

def yyyymmdd = GetYYYYMMDD();
def month = GetYear() * 12 + GetMonth();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
def period;
switch (aggregationPeriod) {
case DAY:
    period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1;
case WEEK:
    period = Floor(day_number / 7);
case MONTH:
    period = Floor(month - First(month));
case QUARTER:
    period = getmonth() % 3;
case YEAR:
    period = getmonth() % 12;
}
def count = CompoundValue(1, if period != period[1] then (count[1] + period - period[1]) % length else count[1], 0);
def start =  CompoundValue(1, count < count[1] + period - period[1], yes);
def highValue = if start then Highest(high(period = aggregationPeriod), length)[1] else if highValue[1] != 0 then highValue[1] else Double.NaN;
def lowValue = if start then Lowest(low(period = aggregationPeriod), length)[1] else if lowValue[1] != 0 then lowValue[1] else Double.NaN;
def closeValue = if start then close(period = aggregationPeriod)[1] else closeValue[1];
def range = highValue - lowValue;

plot R5 = (highValue / lowValue) * closeValue;
plot R4 = closeValue + range * (1.1) / 2;
plot R3 = closeValue + range * (1.1) / 4;
plot R2 = closeValue + range * (1.1) / 6;
plot R1 = closeValue + range * (1.1) / 12;
plot S1 = closeValue - range * (1.1) / 12;
plot S2 = closeValue - range * (1.1) / 6;
plot S3 = closeValue - range * (1.1) / 4;
plot S4 = closeValue - range * (1.1) / 2;
plot S5 = (closeValue - (R5 - closeValue));

R1.Hide();
S1.Hide();

R5.SetDefaultColor(GetColor(5));
R4.SetDefaultColor(GetColor(5));
R3.SetDefaultColor(GetColor(5));
R2.SetDefaultColor(GetColor(5));
R1.SetDefaultColor(GetColor(5));
S1.SetDefaultColor(GetColor(6));
S2.SetDefaultColor(GetColor(6));
S3.SetDefaultColor(GetColor(6));
S4.SetDefaultColor(GetColor(6));
S5.SetDefaultColor(GetColor(6));

def paintingStrategy = if aggregationPeriod == aggregationPeriod.DAY then PaintingStrategy.POINTS else if aggregationPeriod == aggregationPeriod.WEEK then PaintingStrategy.TRIANGLES else PaintingStrategy.SQUARES;

R5.SetPaintingStrategy(paintingStrategy);
R4.SetPaintingStrategy(paintingStrategy);
R3.SetPaintingStrategy(paintingStrategy);
R2.SetPaintingStrategy(paintingStrategy);
R1.SetPaintingStrategy(paintingStrategy);
S1.SetPaintingStrategy(paintingStrategy);
S2.SetPaintingStrategy(paintingStrategy);
S3.SetPaintingStrategy(paintingStrategy);
S4.SetPaintingStrategy(paintingStrategy);
S5.SetPaintingStrategy(paintingStrategy);
Capture.jpg
I've plotted that and mine look like dots but a line is selected and they are very close together. Had the chart set to daily like yours. Does it matter if its stocks or futures? Going to try to load /ES
qqYdCvh.png
 
Last edited:

SleepyZ

Well-known member
VIP
Lifetime
I've plotted that and mine look like dots but a line is selected and they are very close together. Had the chart set to daily like yours. Does it matter if its stocks or futures? Going to try to load /ES
qqYdCvh.png

This was posted to add quarter and year aggregations to the camarillo. Your chart's camarillo appears to be set to 'Day' aggregation with a length of '1', causing what you see as '1' days pivots on each day. Change the aggregation to 'Quarter" or 'Year' with a length of '1' and see if that works.
 

Allen332

New member
Can someone please help me with a script for daily camarilla pivot points which include the pre and post market prices in the calculation, not just the regular hours trading?! I really appreciate it...

#
# TD Ameritrade IP Company, Inc. (c) 2013-2021
#

input aggregationPeriod = {default "DAY", "WEEK", "MONTH"};
input length = 25;

Assert(length > 0, "'length' should be positive: " + length);

def yyyymmdd = GetYYYYMMDD();
def month = GetYear() * 12 + GetMonth();
def day_number = DaysFromDate(First(yyyymmdd)) + GetDayOfWeek(First(yyyymmdd));
def period;
switch (aggregationPeriod) {
case DAY:
period = CountTradingDays(Min(First(yyyymmdd), yyyymmdd), yyyymmdd) - 1;
case WEEK:
period = Floor(day_number / 7);
case MONTH:
period = Floor(month - First(month));
}
def count = CompoundValue(1, if period != period[1] then (count[1] + period - period[1]) % length else count[1], 0);
def start = CompoundValue(1, count < count[1] + period - period[1], yes);
def highValue = if start then Highest(high(period = aggregationPeriod), length)[1] else if highValue[1] != 0 then highValue[1] else Double.NaN;
def lowValue = if start then Lowest(low(period = aggregationPeriod), length)[1] else if lowValue[1] != 0 then lowValue[1] else Double.NaN;
def closeValue = if start then close(period = aggregationPeriod)[1] else closeValue[1];
def range = highValue - lowValue;

plot R5 = (highValue / lowValue) * closeValue;
plot R4 = closeValue + range * (1.1) / 2;
plot R3 = closeValue + range * (1.1) / 4;
plot R2 = closeValue + range * (1.1) / 6;
plot R1 = closeValue + range * (1.1) / 12;
plot S1 = closeValue - range * (1.1) / 12;
plot S2 = closeValue - range * (1.1) / 6;
plot S3 = closeValue - range * (1.1) / 4;
plot S4 = closeValue - range * (1.1) / 2;
plot S5 = (closeValue - (R5 - closeValue));

R1.Hide();
S1.Hide();

R5.SetDefaultColor(GetColor(5));
R4.SetDefaultColor(GetColor(5));
R3.SetDefaultColor(GetColor(5));
R2.SetDefaultColor(GetColor(5));
R1.SetDefaultColor(GetColor(5));
S1.SetDefaultColor(GetColor(6));
S2.SetDefaultColor(GetColor(6));
S3.SetDefaultColor(GetColor(6));
S4.SetDefaultColor(GetColor(6));
S5.SetDefaultColor(GetColor(6));

def paintingStrategy = if aggregationPeriod == aggregationPeriod.DAY then PaintingStrategy.POINTS else if aggregationPeriod == aggregationPeriod.WEEK then PaintingStrategy.TRIANGLES else PaintingStrategy.SQUARES;

R5.SetPaintingStrategy(paintingStrategy);
R4.SetPaintingStrategy(paintingStrategy);
R3.SetPaintingStrategy(paintingStrategy);
R2.SetPaintingStrategy(paintingStrategy);
R1.SetPaintingStrategy(paintingStrategy);
S1.SetPaintingStrategy(paintingStrategy);
S2.SetPaintingStrategy(paintingStrategy);
S3.SetPaintingStrategy(paintingStrategy);
S4.SetPaintingStrategy(paintingStrategy);
S5.SetPaintingStrategy(paintingStrategy);
 

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.
Top