False Signals

Pietrarie

New member
Is there any way to minimize the false signals? I'm using one of the original supertrend indicator by Mobius.
I'm day trading using 1, 3 and 5 min candle charts. For day trading I think 3min chart will give the best input and will reduce the amount of noise that a 1min chart will give.
5min chart sell signal could be very delayed from the previous Hi stock value and because of that you can give back $$. My frustration is after I buy the Buy signal goes away sometimes. I know I should wait for the candle to close but still I was wondering if there is any set up to minimize these false signals.
Thanks.
 
Is there any way to minimize the false signals? I'm using one of the original supertrend indicator by Mobius.
I'm day trading using 1, 3 and 5 min candle charts. For day trading I think 3min chart will give the best input and will reduce the amount of noise that a 1min chart will give.
5min chart sell signal could be very delayed from the previous Hi stock value and because of that you can give back $$. My frustration is after I buy the Buy signal goes away sometimes. I know I should wait for the candle to close but still I was wondering if there is any set up to minimize these false signals.
Thanks.

The script has been modified (in bold font) to include additional logic to smooth out false signals.

# Mobius
# SuperTrend - "Strategy" A Very simple SuperTrend Strategy
# Chat Room Request
# V03.10.2015
#Hint:Supertrend Indicator: shows trend direction and gives buy or sell signals according to that.
input AtrMult = .70;
input nATR = 4;
input AvgType = AverageType.HULL;
input PaintBars = yes;
input BubbleOn = yes;
input ShowLabel = yes;
def h = high;
def l = low;
def c = close;
def ATR = MovingAverage(AvgType, TrueRange(h, c, l), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if c < ST[1]
then UP
else DN;
plot SuperTrend = ST;
SuperTrend.AssignValueColor(if c < ST then Color.RED else Color.GREEN);
SuperTrend.SetPaintingStrategy(PaintingStrategy.LINE);
AssignPriceColor(if PaintBars and c < ST then Color.RED else if PaintBars and c > ST then Color.GREEN else Color.CURRENT);
input useOriginal = No;
AddOrder(OrderType.BUY_AUTO, useOriginal and HL2 crosses above ST, price = open[-1], tickcolor = Color.BLACK, arrowcolor = Color.BLACK, name = "B");
AddOrder(OrderType.SELL_AUTO, useOriginal and HL2 crosses below ST, price = open[-1], tickcolor = Color.BLACK, arrowcolor = Color.BLACK, name = "S");
input usePriceFilter = yes;
def priceup = if HL2 crosses above ST then c else priceup[1];
def pricedn = if HL2 crosses below ST then c else pricedn[1];
def sell = Average(priceup, nATR / 2) crosses above Average(pricedn, nATR / 3);
def buy = Average(pricedn, nATR / 2) crosses below Average(priceup, nATR / 3);
AddOrder(OrderType.BUY_AUTO, usePriceFilter and buy, price = open[-1], tickcolor = Color.CYAN, arrowcolor = Color.CYAN, name = "B");
AddOrder(OrderType.SELL_AUTO, usePriceFilter and sell, price = open[-1], tickcolor = Color.CYAN, arrowcolor = Color.CYAN, name = "S");

#END of strategy

The script now includes a price filter feature, which uses two moving averages (Average) to smooth out the price data and reduce false signals. The moving averages are calculated using the priceup and pricedn definitions, which are based on the high-low (HL2) crossing above/below the short-term (ST) moving average.
The buy and sell signals are generated when the averaged priceup/pricedn crosses above/below each other.
Overall, this modification introduces an additional layer of filtering to the trading strategy, which can help improve its performance by reducing whipsaws and false signals.
 
The script has been modified (in bold font) to include additional logic to smooth out false signals.

# Mobius
# SuperTrend - "Strategy" A Very simple SuperTrend Strategy
# Chat Room Request
# V03.10.2015
#Hint:Supertrend Indicator: shows trend direction and gives buy or sell signals according to that.
input AtrMult = .70;
input nATR = 4;
input AvgType = AverageType.HULL;
input PaintBars = yes;
input BubbleOn = yes;
input ShowLabel = yes;
def h = high;
def l = low;
def c = close;
def ATR = MovingAverage(AvgType, TrueRange(h, c, l), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if c < ST[1]
then UP
else DN;
plot SuperTrend = ST;
SuperTrend.AssignValueColor(if c < ST then Color.RED else Color.GREEN);
SuperTrend.SetPaintingStrategy(PaintingStrategy.LINE);
AssignPriceColor(if PaintBars and c < ST then Color.RED else if PaintBars and c > ST then Color.GREEN else Color.CURRENT);
input useOriginal = No;
AddOrder(OrderType.BUY_AUTO, useOriginal and HL2 crosses above ST, price = open[-1], tickcolor = Color.BLACK, arrowcolor = Color.BLACK, name = "B");
AddOrder(OrderType.SELL_AUTO, useOriginal and HL2 crosses below ST, price = open[-1], tickcolor = Color.BLACK, arrowcolor = Color.BLACK, name = "S");
input usePriceFilter = yes;
def priceup = if HL2 crosses above ST then c else priceup[1];
def pricedn = if HL2 crosses below ST then c else pricedn[1];
def sell = Average(priceup, nATR / 2) crosses above Average(pricedn, nATR / 3);
def buy = Average(pricedn, nATR / 2) crosses below Average(priceup, nATR / 3);
AddOrder(OrderType.BUY_AUTO, usePriceFilter and buy, price = open[-1], tickcolor = Color.CYAN, arrowcolor = Color.CYAN, name = "B");
AddOrder(OrderType.SELL_AUTO, usePriceFilter and sell, price = open[-1], tickcolor = Color.CYAN, arrowcolor = Color.CYAN, name = "S");

#END of strategy

The script now includes a price filter feature, which uses two moving averages (Average) to smooth out the price data and reduce false signals. The moving averages are calculated using the priceup and pricedn definitions, which are based on the high-low (HL2) crossing above/below the short-term (ST) moving average.
The buy and sell signals are generated when the averaged priceup/pricedn crosses above/below each other.
Overall, this modification introduces an additional layer of filtering to the trading strategy, which can help improve its performance by reducing whipsaws and false signals.
Hi. How are you? I I brought the script into my chart and I can't see any indicators or any other information. All I have is the blue line graph of the stock I have selected. How can I fix this?

1723480882743.png


Hello. This is what I see after I brought the above script into my chart. In the top is the original Supertrend script I'm using and in the bottom is the one I just created. Both of them are in the same timeframe 3min. Is this what I was supposed to see. Is this correct? How can I get rid of that double line?
Thanks.
 
Last edited by a moderator:
Hi. How are you? I I brought the script into my chart and I can't see any indicators or any other information. All I have is the blue line graph of the stock I have selected. How can I fix this?

View attachment 22594

Hello. This is what I see after I brought the above script into my chart. In the top is the original Supertrend script I'm using and in the bottom is the one I just created. Both of them are in the same timeframe 3min. Is this what I was supposed to see. Is this correct? How can I get rid of that double line?
Thanks.

It appears that you are having issues, cutting and pasting the script into your STRATEGY tab?
Here is a shared chart link with the STRATEGY already applied.
The indicator will appear in the shared chart and will be saved under your STRATEGY tab.

shared chart link: http://tos.mx/!SOfesqdX MUST follow these instructions for loading shared links.
rKvmQTN.png
 

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

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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