Got RAR it opened!Simple - Just Google "Download RAR" and follow the trail. I kind of guessed this was going to be the follow up question. Now how did I know? Because I'm a mind reader
Got RAR it opened!Simple - Just Google "Download RAR" and follow the trail. I kind of guessed this was going to be the follow up question. Now how did I know? Because I'm a mind reader
@Playstation Where is that? Now I'm real curious. Sounds like you're one of them.
Singapore dude! I'm certainly not one of them, if not I won't be trading middle working class slogging away for my higher ups! oh i feel so lucky.
Okay I'll bear that in mind for the future. You're way too kind. Thinkscript is actually quite straightforward once you have gone through the tutorials and either studied or done lots of examples. Even an artist, a mechanic or a painter can pick it up quick easily. I spent a few years in the ThinkScript lounge, been "trained" by Mobius and other great contributors there. Anything you need, just tag me on a message and I'll do what I can to assist. Stay safe.
Thanks! I'm learning bit by bit, but as I trade, I realize no matter what variables you input in, it always "lags" in the sense that price, volume, or something else needs to move first before the indicator settles at candle close. Something is missing in my trading system, that can predict what's the future movement will be like, except fibo but that's a drawing tool. After watching and reading so much, I think I need to go back to basics, support resistance, and candlesticks.
It catches some nice trends on the 5 min as well, not bad cheers@Trading51 Im using it on 5 Min for futures its works well
Thanks youOkay I'll bear that in mind for the future. You're way too kind. Thinkscript is actually quite straightforward once you have gone through the tutorials and either studied or done lots of examples. Even an artist, a mechanic or a painter can pick it up quick easily. I spent a few years in the ThinkScript lounge, been "trained" by Mobius and other great contributors there. Anything you need, just tag me on a message and I'll do what I can to assist. Stay safe.
@Playstation It's pretty hard to predict future movement. However whatever you do, pay attention to market internals especially if you are a day trader. If you are not already familiar with this topic, have a look through the following link which may help somewhat.
https://usethinkscript.com/threads/three-different-adspd-adv-dec-codes-to-try-out.1328/#post-12579
Keep an eye out on the volatility futures in a backwardation state. In 2018 for instance the volatility futures were in a massive backwardation state for 16 weeks while in 2019, it only happened for 2 weeks. For 2020 - it's anyone's guess but I'm certainly keeping a watchful eye. You might also like to play with the following study, which I updated for a requestor about a month ago. Best of luck!
https://usethinkscript.com/threads/vx-futures-contango-indicator-for-thinkorswim.1177/#post-11256
Today's question (ha ha)... What's the code to have a text box in the top left of the chart that shows the direction of the last BDog arrow? I've discovered AddLabel but am unable to get it to work correctly. As always, thank you.
Today's question (ha ha)... What's the code to have a text box in the top left of the chart that shows the direction of the last BDog arrow? I've discovered AddLabel but am unable to get it to work correctly. As always, thank you.
Can anyone help when I add this to the study for an label I get an error (AddLabel(BD, concat("BD:", if UpCross then "UP" else if DnCross then "DOWN" else "NAN"), if UpCross then color.GREEN else if DnCross then color.RED else color.WHITE)
I get an error on addable BD
# Black Dogs & SESs---For 5 minute chart ONLY
# NAMED BlackDog_SES_5min
# Originally posted by BenTen
# Modifications by tomsk, 1.10.2020
# V1.0 - 03.29.2019 - BenTen - Initial release of Black Dogs & SESs (5 Minute Aggregation) study
# V1.1 - 01.10.2020 - tomsk - Added state transition engine and label that displays direction of last BDog signal
# Here, "Black Dogs" are WHITE for use on a dark background.
input Hprice = high;
input Lprice = low;
input price = close;
input Hlength = 50;
input Llength = 50;
input Hdisplace = 0;
input Ldisplace = 0;
def StateUp = 1;
def StateDn = 2;
# High / Low Band for SES computations---------------------------
# EMA of HIGHS-----------------------------------------------------------
plot HAvg = MovAvgExponential(Hprice[-Hdisplace], Hlength);
HAvg.SetDefaultColor(Color.WHITE);
HAvg.SetLineWeight(5);
HAvg.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);
HAvg.SetStyle(Curve.FIRM);
HAvg.HideBubble();
HAvg.HideTitle();
HAvg.AssignValueColor(if HAvg< HAvg[1] then Color.VIOLET else (if HAvg == HAvg[1] then Color.YELLOW else Color.YELLOW));
# EMA of LOWS------------------------------------------------------------
plot LAvg = MovAvgExponential(Lprice[-Ldisplace], LLength);
LAvg.SetDefaultColor(Color.WHITE);
LAvg.SetLineWeight(5);
LAvg.SetPaintingStrategy(PaintingStrategy.LINE_VS_POINTS);
LAvg.SetStyle(Curve.FIRM);
LAvg.HideBubble();
LAvg.HideTitle();
LAvg.AssignValueColor(if LAvg< LAvg[1] then Color.VIOLET else (if LAvg == LAvg[1] then Color.YELLOW else Color.YELLOW));
# Crosses for SES Arrows----------------------------------------------
# SES = Standard Entry Signal
# Cross above High Average -----------------------------------------
def CrossUp = if price > HAvg AND price[1] < HAvg then 1 else 0;
Plot SESup = if CrossUp then high else double.nan;
SESup.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
SESup.SetLineWeight(3);
SESup.SetDefaultColor(color.YELLOW);
SESup.HideBubble();
SESup.HideTitle();
# Cross above Low Average --------------------------------------------
def CrossDn = if price < Lavg AND price[1] > LAvg then 1 else 0;
Plot SESdn = if CrossDn then low else double.nan;
SESdn.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
SESdn.SetLineWeight(3);
SESdn.SetDefaultColor(color.VIOLET);
SESdn.HideBubble();
SESdn.HideTitle();
# ================================================
#
# Black Dog Arrows------------------------------------------------------
# Change Aggregation Period to 20 minutes------------------------
def agg = AggregationPeriod.TWENTY_MIN;
def data = close(period = agg);
# 2 EMAs of Black Dogs--------------------------------------------------
def BDfastEMA=ExpAverage(DATA,20);
def BDslowEMA=ExpAverage(DATA,100);
# Black Dog UP for EMA20 crossing ABOVE EMA100-------------
def UpCross = if BDfastEMA > BDslowEma AND BDfastEMA[1] < BDslowEMA then 1 else 0;
Plot BDup = if UpCross then high else double.nan;
BDup.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BDup.SetLineWeight(5);
BDup.SetDefaultColor(color.WHITE);
BDup.HideBubble();
BDup.HideTitle();
# Black Dog DN for EMA20 crossing BELOW EMA100-----------
def DnCross = if BDfastEMA < BDslowEma AND BDfastEMA[1] > BDslowEMA then 1 else 0;
Plot BDdn = if DnCross then low else double.nan;
BDdn.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
BDdn.SetLineWeight(5);
BDdn.SetDefaultColor(color.WHITE);
BDdn.HideBubble();
BDdn.HideTitle();
# ================================================
#
# State Transitions------------------------------------------------------
def LastXState;
if UpCross {
LastXState = StateUp;
} else if DnCross {
LastXState = StateDn;
} else {
LastXState = LastXState[1];
}
AddLabel(1, "Last Cross Direction = " + if LastXState == StateUp then "UP" else if LastXState == StateDn then "DOWN" else "NOP",
if LastXState == StateUp then Color.Green else if LastXState == StateDn then Color.Red else Color.Yellow);
# END==========================================
# End Black Dogs & SESs---For 5 minute chart ONLY
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Start a new thread and receive assistance from our community.
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.
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.