input length = 20;
input Std_Deviation = 2.0;
input crossingType = {default above, below};
input averageType = AverageType.SIMPLE;
def bollingerHigh = BollingerBands(length = length, Num_Dev_Dn = -Std_Deviation, Num_Dev_up = Std_Deviation, averageType = averageType).UpperBand;
def bollingerLow = BollingerBands(length = length, Num_Dev_Dn = -Std_Deviation, Num_Dev_up = Std_Deviation, averageType = averageType).LowerBand;
plot signalHigh = Crosses(low, bollingerHigh...
input length = 20;
input Std_Deviation = 2.0;
input crossingType = {default above, below};
input averageType = AverageType.SIMPLE;
def bollingerHigh = BollingerBands(length = length, Num_Dev_Dn = -Std_Deviation, Num_Dev_up = Std_Deviation, averageType = averageType).UpperBand;
def bollingerLow = BollingerBands(length = length, Num_Dev_Dn = -Std_Deviation, Num_Dev_up = Std_Deviation, averageType = averageType).LowerBand;
plot signalHigh = Crosses(low, bollingerHigh, crossingType == CrossingType.above);
signalHigh.DefineColor("Above", GetColor(1));
signalHigh.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
plot signalLow = Crosses(high, bollingerLow, crossingType == CrossingType.below);
signalLow.DefineColor("Below", GetColor(2));
signalLow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
plot signalHigh = low > bollingerHigh;
signalHigh.DefineColor("Above", GetColor(1));
signalHigh.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
plot signalLow = high < bollingerLow;
signalLow.DefineColor("Below", GetColor(2));
signalLow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
input length = 5;
plot ema = ExpAverage(close, length);
AssignPriceColor(if low > ema then getColor(6) else if high < ema then getColor(5) else getColor(7));
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
vertical signal lines full chart | Questions | 3 | ||
trouble with plot going across full day | Questions | 1 | ||
MTF Stochastic Full Cross? | Questions | 3 | ||
B | I am trying to create a nearly full green bar study | Questions | 5 | |
C | Pivot points only showing 1 dot instead of a full line across the day? | Questions | 1 |
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.