Watchlist and Levels – thinkorswim

  • Home
  • /
  • Watchlist and Levels – thinkorswim

Watchlist and Levels for thinkorswim

The Custom Study Code – last updated: 2021-05-21 09:31:35

# ©2021 Edumomo LLC. All rights reserved.
# Permission is hereby granted to any person obtaining this software and associated documenentation (the "Software") through authorized channels to use the software and modified for personal use only. The software may not be modified for any other purpose. The software may not be copied, shared, or redistributed without written authorization.
# THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# HOW TO SETUP https://youtu.be/NmrVME8LBBg
declare hide_on_daily;
declare once_per_bar;
def buffer = 0.001;
def iws;
plot previous_close = close(period = AggregationPeriod.DAY)[1];
previous_close.SetDefaultColor(Color.YELLOW);
def level1;
def condition1;
def level2;
def condition2;
def level3;
def condition3;
def level4;
def condition4;
def level5;
def condition5;
def level6;
def condition6;
def level7;
def condition7;
def level8;
def condition8;
def level9;
def condition9;
def level10;
def condition10;
if GetSymbol() equals "AMD" {
iws=1;
level1 = 71;
level2 = 73;
level3 = 75.25;
level4 = 77.60;
level5 = 79.50;
level6 = 84;
level7 = 92;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "AMZN" {
iws=1;
level1 = 3160;
level2 = 3200;
level3 = 3240;
level4 = 3270;
level5 = 3288;
level6 = 3325;
level7 = 0;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "BA" {
iws=1;
level1 = 216;
level2 = 220;
level3 = 223;
level4 = 225;
level5 = 228;
level6 = 232.50;
level7 = 237;
level8 = 243;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "BIDU" {
iws=1;
level1 = 182;
level2 = 187;
level3 = 189;
level4 = 192;
level5 = 194;
level6 = 195.30;
level7 = 210.50;
level8 = 206;
level9 = 218;
level10 = 0;
}
else
if GetSymbol() equals "GOOGL" {
iws=1;
level1 = 2245;
level2 = 2270;
level3 = 2290;
level4 = 2301;
level5 = 2318;
level6 = 2328;
level7 = 2362;
level8 = 2388;
level9 = 2430;
level10 = 0;
}
else
if GetSymbol() equals "NVDA" {
iws=1;
level1 = 530;
level2 = 544;
level3 = 553.50;
level4 = 560;
level5 = 570;
level6 = 578;
level7 = 591;
level8 = 605;
level9 = 615;
level10 = 630;
}
else
if GetSymbol() equals "RIOT" {
iws=1;
level1 = 19;
level2 = 21.30;
level3 = 23;
level4 = 23.80;
level5 = 25.95;
level6 = 26.95;
level7 = 31;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "SE" {
iws=1;
level1 = 211;
level2 = 223.50;
level3 = 227;
level4 = 233;
level5 = 240;
level6 = 242;
level7 = 255;
level8 = 265;
level9 = 285;
level10 = 0;
}
else
if GetSymbol() equals "SHOP" {
iws=1;
level1 = 1100;
level2 = 1140;
level3 = 1170;
level4 = 1202;
level5 = 1237;
level6 = 1252;
level7 = 1259;
level8 = 1308;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "SPCE" {
iws=1;
level1 = 16.50;
level2 = 17.80;
level3 = 18.20;
level4 = 20;
level5 = 20.80;
level6 = 22.80;
level7 = 26.40;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "SPY" {
iws=1;
level1 = 405;
level2 = 410.80;
level3 = 413.80;
level4 = 414.80;
level5 = 416.60;
level6 = 417.50;
level7 = 418.80;
level8 = 422;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "TGT" {
iws=1;
level1 = 212;
level2 = 216;
level3 = 220;
level4 = 223;
level5 = 224;
level6 = 226.50;
level7 = 232.50;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "TSLA" {
iws=1;
level1 = 550;
level2 = 570;
level3 = 580;
level4 = 595;
level5 = 608;
level6 = 640;
level7 = 0;
level8 = 0;
level9 = 0;
level10 = 0;
}
else
if GetSymbol() equals "UPST" {
iws=1;
level1 = 113;
level2 = 117;
level3 = 119;
level4 = 124.60;
level5 = 141;
level6 = 155;
level7 = 0;
level8 = 0;
level9 = 0;
level10 = 0;
}
else {
iws=0;
level1=0;
level2=0;
level3=0;
level4=0;
level5=0;
level6=0;
level7=0;
level8=0;
level9=0;
level10=0;
}
plot pLevel1 = level1;
if pLevel1>0 {
condition1 = Crosses(close, (pLevel1+(buffer*pLevel1)),CrossingDirection.ANY) OR Crosses(close, (pLevel1-(buffer*pLevel1)),CrossingDirection.ANY);
} else {
condition1 =0;
}
pLevel1.SetStyle(Curve.SHORT_DASH);
pLevel1.SetDefaultColor(Color.YELLOW);
pLevel1.setHiding(level1 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel2 = level2;
if pLevel2>0 {
condition2 = Crosses(close, (pLevel2+(buffer*pLevel2)),CrossingDirection.ANY) OR Crosses(close, (pLevel2-(buffer*pLevel2)),CrossingDirection.ANY);
} else {
condition2 =0;
}
pLevel2.SetStyle(Curve.SHORT_DASH);
pLevel2.SetDefaultColor(Color.YELLOW);
pLevel2.setHiding(level2 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel3 = level3;
if pLevel3>0 {
condition3 = Crosses(close, (pLevel3+(buffer*pLevel3)),CrossingDirection.ANY) OR Crosses(close, (pLevel3-(buffer*pLevel3)),CrossingDirection.ANY);
} else {
condition3 =0;
}
pLevel3.SetStyle(Curve.SHORT_DASH);
pLevel3.SetDefaultColor(Color.YELLOW);
pLevel3.setHiding(level3 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel4 = level4;
if pLevel4>0 {
condition4 = Crosses(close, (pLevel4+(buffer*pLevel4)),CrossingDirection.ANY) OR Crosses(close, (pLevel4-(buffer*pLevel4)),CrossingDirection.ANY);
} else {
condition4 =0;
}
pLevel4.SetStyle(Curve.SHORT_DASH);
pLevel4.SetDefaultColor(Color.YELLOW);
pLevel4.setHiding(level4 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel5 = level5;
if pLevel5>0 {
condition5 = Crosses(close, (pLevel5+(buffer*pLevel5)),CrossingDirection.ANY) OR Crosses(close, (pLevel5-(buffer*pLevel5)),CrossingDirection.ANY);
} else {
condition5 =0;
}
pLevel5.SetStyle(Curve.SHORT_DASH);
pLevel5.SetDefaultColor(Color.YELLOW);
pLevel5.setHiding(level5 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel6 = level6;
if pLevel6>0 {
condition6 = Crosses(close, (pLevel6+(buffer*pLevel6)),CrossingDirection.ANY) OR Crosses(close, (pLevel6-(buffer*pLevel6)),CrossingDirection.ANY);
} else {
condition6 =0;
}
pLevel6.SetStyle(Curve.SHORT_DASH);
pLevel6.SetDefaultColor(Color.YELLOW);
pLevel6.setHiding(level6 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel7 = level7;
if pLevel7>0 {
condition7 = Crosses(close, (pLevel7+(buffer*pLevel7)),CrossingDirection.ANY) OR Crosses(close, (pLevel7-(buffer*pLevel7)),CrossingDirection.ANY);
} else {
condition7 =0;
}
pLevel7.SetStyle(Curve.SHORT_DASH);
pLevel7.SetDefaultColor(Color.YELLOW);
pLevel7.setHiding(level7 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel8 = level8;
if pLevel8>0 {
condition8 = Crosses(close, (pLevel8+(buffer*pLevel8)),CrossingDirection.ANY) OR Crosses(close, (pLevel8-(buffer*pLevel8)),CrossingDirection.ANY);
} else {
condition8 =0;
}
pLevel8.SetStyle(Curve.SHORT_DASH);
pLevel8.SetDefaultColor(Color.YELLOW);
pLevel8.setHiding(level8 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel9 = level9;
if pLevel9>0 {
condition9 = Crosses(close, (pLevel9+(buffer*pLevel9)),CrossingDirection.ANY) OR Crosses(close, (pLevel9-(buffer*pLevel9)),CrossingDirection.ANY);
} else {
condition9 =0;
}
pLevel9.SetStyle(Curve.SHORT_DASH);
pLevel9.SetDefaultColor(Color.YELLOW);
pLevel9.setHiding(level9 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot pLevel10 = level10;
if pLevel10>0 {
condition10 = Crosses(close, (pLevel10+(buffer*pLevel10)),CrossingDirection.ANY) OR Crosses(close, (pLevel10-(buffer*pLevel10)),CrossingDirection.ANY);
} else {
condition10 =0;
}
pLevel10.SetStyle(Curve.SHORT_DASH);
pLevel10.SetDefaultColor(Color.YELLOW);
pLevel10.setHiding(level10 equals 0 or getAggregationPeriod()>AggregationPeriod.WEEK);
plot watchlistSymbol = iws;
watchlistSymbol.setHiding(1);
plot breakout = if condition1 or condition2 or condition3 or condition4 or condition5 or condition6 or condition7 or condition8 or condition9 then 1 else 0;
breakout.setHiding(1);
AddLabel(GetSymbol() equals "AMD"," watching dips for 80c for June", Color.YELLOW);
AddLabel(GetSymbol() equals "AMZN"," comparitvely weak to other tech. will be my goto short if market craps", Color.YELLOW);
AddLabel(GetSymbol() equals "BA"," restarted deliveries. Plans to increase 737 output news", Color.YELLOW);
AddLabel(GetSymbol() equals "BIDU"," watch for trend", Color.YELLOW);
AddLabel(GetSymbol() equals "GOOGL"," nice recovery off 50dma, if breaks out, can really get going to upside", Color.YELLOW);
AddLabel(GetSymbol() equals "NVDA"," watching trend may get some profit taking", Color.YELLOW);
AddLabel(GetSymbol() equals "RIOT"," nice rally off levels yesterday and 200dma on daily.", Color.YELLOW);
AddLabel(GetSymbol() equals "SE"," watch for trend", Color.YELLOW);
AddLabel(GetSymbol() equals "SHOP"," what a rally. if 1230 clears thinking this could see 1250s", Color.YELLOW);
AddLabel(GetSymbol() equals "SPCE"," upgrades with 36 target and nice reovery from yesterday", Color.YELLOW);
AddLabel(GetSymbol() equals "SPY"," wow 15min chart looks like nice v shape. In theory we couild see 420s today/ next week", Color.YELLOW);
AddLabel(GetSymbol() equals "TGT"," nice PT upgrade, watching dips", Color.YELLOW);
AddLabel(GetSymbol() equals "TSLA"," nice gap up, thinking we get some profit taking at open, but this 595-605 area has been troublesome, ideally dips and rip over 608, for possible run higher on reclaim over 200dma", Color.YELLOW);
AddLabel(GetSymbol() equals "UPST"," watch for trend", Color.YELLOW);
Alert(condition1 or condition2 or condition3 or condition4 or condition5 or condition6 or condition7 or condition8 or condition9 or condition10 , GetSymbol() +" Key Level Crossed!", Alert.ONCE,Sound.Ding);
Easy Video Reviews

{{startingCount}}
{{time(finishingCount)}}
{{trans(`You have no camera installed on your device or the device is currently being used by other application`)}}
{{trans(`Please try visiting this page with a valid SSL certificate`)}}
{{trans(`You can record up to %s minutes, don't worry you will review your video before sending`, time(preference.limits))}}
{{trans('Seconds')}}
{{trans(`You can record up to %s minutes, don't worry you will review your video before sending`, time(preference.limits))}}
{{trans('Uploading video...')}}
{{send.message}}

{{trans('Upload video')}}

{{trans('Drag your files here or click in this area')}}
{{uploader.file}} {{uploader.size}} x
>