Create An Anti-Climax indicator?

HushPuppy

New member
VIP
Good day everyone I'm looking to see if anyone can assist to have this indicator created in TOS. Below I've tried to provide the best description I've been able to put together and the samples for visual assistance. Any help is greatly appreciated and glad to be NEW addition to the useThinkscript team.

Indicator: "The Anti" (Anti-Climax) - Its a Linda Raschke indicator for exhaustion
( Removed and Please see below for actual proper Post )

Hush
 
Last edited:
Solution
Signal triggers on open of bar after trigger bar.
Assume Day time frame due to 2 day rule.
Haven't had time to error check.

Cfh42W6.png


Ruby:
#BUY
Def BAnti1 = if (low[5]-low[4])>0 then (low[5]-low[4]) else 0;
Def BAnti2 = if (low[4]-low[3])>0 then (low[4]-low[3]) else 0;
Def BAnti3 = if (low[3]-low[2])>0 then (low[3]-low[2]) else 0;
Def BAnti4 = low[5] > low[4] and low[4] > low[3] and low[3] > low[2] and low[1] > low[2] and open[1] < close[1];
Def BAntiHigh = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then high[1]+ticksize() else double.nan;
Def BAntiLow = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then low[1]-ticksize() else double.nan;

def BAntiHighLine = if...
Good day everyone I'm looking to see if anyone can assist to have this indicator created in TOS. Below I've tried to provide the best description I've been able to put together and the samples for visual assistance. Any help is greatly appreciated and glad to be NEW addition to the useThinkscript team.

Indicator: "The Anti" (Anti-Climax) - Its a Linda Raschke indicator for exhaustion

Indicator definition:
- Bullish : 3 progressively lower low candles where the distance between lows of the bars (1st to 2nd to 3rd) is always increasing (accelerating).

- Bearish : 3 progressively higher high candles the distance between the highs of the bars (1st to 2nd to 3rd) always increasing (accelerating).

Indicator signal : Could it be a DOT just like example

Attached is how this indicator should look:

Any help would be greatly appreciated.

Thanks
Hush


@BenTen
Mr. Ben any suggestions on this above indicator?

you are missing a lot of words in your write up. ( have more words in pics)
start over and write out all the rules for bullish.
bearish rules are optionable, can usually just reverse the bullish rules.

what defines a setup candle/price?
why is the bullish candle called a bullish candle?
within how many candles does the bullish candle have to appear after the 3 down candles? 1 , 5, 20?
within how many bars does a buy candle have to happen? 5?, 10? , 40?
after how many candles of no buy signal, do you give up and reset?

there was a wick that went above the bullish candle, so your statement saying none of them is wrong. rewrite to be what you mean. during the current candle, close can be the same as high (wick price levels) after that candle closes, open and close are different than high.

post a link that talk about this strategy
 
you are missing a lot of words in your write up. ( have more words in pics)
start over and write out all the rules for bullish.
bearish rules are optionable, can usually just reverse the bullish rules.

what defines a setup candle/price?
why is the bullish candle called a bullish candle?
within how many candles does the bullish candle have to appear after the 3 down candles? 1 , 5, 20?
within how many bars does a buy candle have to happen? 5?, 10? , 40?
after how many candles of no buy signal, do you give up and reset?

there was a wick that went above the bullish candle, so your statement saying none of them is wrong. rewrite to be what you mean. during the current candle, close can be the same as high (wick price levels) after that candle closes, open and close are different than high.

post a link that talk about this strategy
Removed
 
Last edited:
@halcyonguy

Halcyonguy good evening I've addressed all your requested questions (without drinking coffee this time) to see if I make better sense now and we can have this indicator created. = Hope So !!


"The Anti" (Anti-Climax) - Its a Linda Raschke indicator for exhaustion

Bullish Rules:
Bullish Pattern
: Set of 3 candles where the distance between the lows of the candles red or green (body or wick) are accelerating/increasing is distance from each other. (Ex. Below)

1724300543413.png


Bearish rules are optionable, can usually just reverse the bullish rules.
Reverse the bullish rules

What defines a setup candle?
Bullish
= 1st green candle with a higher low after the Anti-Climax push you buy 1tick above that 1st green candle (Ex. below) and place the stop 1tick below that green candle.

1724299791798.png


Why is the bullish candle called a bullish candle?
The candle must be green and have a higher low (body or wick) than the previous candle. The candle can have a higher high than the previous candle.

Within how many candles does the bullish candle have to appear after the 3 or more candles?
Good question, as long as there’s "acceleration" lower and the candles meet the criteria (Set of 3 candles where the distance on the lows of the candles are increasing red or green (body or wick) the pattern remains in play. There might be 3,4,5 + consecutive bars and then the trigger bar “Green higher low” appears. (Ex. See below of a powerful move that triggered multiple 3 candle Anti-Climax patterns)

1724300805878.png



Within how many bars does a buy candle have to happen?
After the trigger candle (1st green higher low candle) the trade entry should be triggered within 2 days. If it does not, the trade is invalidated.

post a link that talk about this strategy: This is a 4min video detailing the strategy:

I really appreciate you guys having a look at this and assist in coding this pattern.


Kind thanks
Hush
 

Attachments

  • 1724300159784.png
    1724300159784.png
    17.2 KB · Views: 43
Just throwing some preliminary code together, something like this?
FU5IeZP.png
@Svanoy

Thank you very much for your time and work !!

The prelim code looks good, just have the (green dot) only appear on the 3rd candle.

As well, the extra detail you added on the 1st green candle with the green line at the high and the red line at the low of the candle. Is fantastic.

Please let me know if you need any further clarification from me.

Cheers
Hush
 
Signal triggers on open of bar after trigger bar.
Assume Day time frame due to 2 day rule.
Haven't had time to error check.

Cfh42W6.png


Ruby:
#BUY
Def BAnti1 = if (low[5]-low[4])>0 then (low[5]-low[4]) else 0;
Def BAnti2 = if (low[4]-low[3])>0 then (low[4]-low[3]) else 0;
Def BAnti3 = if (low[3]-low[2])>0 then (low[3]-low[2]) else 0;
Def BAnti4 = low[5] > low[4] and low[4] > low[3] and low[3] > low[2] and low[1] > low[2] and open[1] < close[1];
Def BAntiHigh = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then high[1]+ticksize() else double.nan;
Def BAntiLow = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then low[1]-ticksize() else double.nan;

def BAntiHighLine = if !IsNaN(BAntiHigh[2]) then double.nan else if !IsNan(BAntiHigh) then BAntiHigh else BAntiHighLine[1];
def BAntiLowLine = if !IsNaN(BAntiLow[2]) then double.nan else if !IsNan(BAntiLow) then BAntiLow else BAntiLowLine[1];

plot BAntiHighPlot = BAntiHighLine;
BAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiHighPlot.SetDefaultColor(color.LIGHT_GREEN);
BAntiHighPlot.SetLineWeight(1);

plot BAntiLowPlot = BAntiLowLine;
BAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiLowPlot.SetDefaultColor(color.LIGHT_RED);
BAntiLowPlot.SetLineWeight(1);

Plot AntiHighSetup = if !IsNaN(BAntiHigh[-2]) then low - ((high - low)*.25) else double.nan;
AntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
AntiHighSetup.SetDefaultColor(color.DARK_GREEN);
AntiHighSetup.SetLineWeight(5);


#SELL
Def SAnti1 = if (high[5]-high[4])<0 then (high[5]-high[4]) else 0;
Def SAnti2 = if (high[4]-high[3])<0 then (high[4]-high[3]) else 0;
Def SAnti3 = if (high[3]-high[2])<0 then (high[3]-high[2]) else 0;
Def SAnti4 = high[5] < high[4] and high[4] < high[3] and high[3] < high[2] and high[1] < high[2] and open[1] > close[1];
Def SAntiHigh = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then high[1]+ticksize() else double.nan;
Def SAntiLow = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then low[1]-ticksize() else double.nan;

def SAntiHighLine = if !IsNaN(SAntiHigh[2]) then double.nan else if !IsNan(SAntiHigh) then SAntiHigh else SAntiHighLine[1];
def SAntiLowLine = if !IsNaN(SAntiLow[2]) then double.nan else if !IsNan(SAntiLow) then SAntiLow else SAntiLowLine[1];

plot SAntiHighPlot = SAntiHighLine;
SAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiHighPlot.SetDefaultColor(color.LIGHT_RED);
SAntiHighPlot.SetLineWeight(1);

plot SAntiLowPlot = SAntiLowLine;
SAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiLowPlot.SetDefaultColor(color.LIGHT_GREEN);
SAntiLowPlot.SetLineWeight(1);

Plot SAntiHighSetup = if !IsNaN(SAntiHigh[-2]) then high + ((high - low)*.25) else double.nan;
SAntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
SAntiHighSetup.SetDefaultColor(color.DARK_RED);
SAntiHighSetup.SetLineWeight(5);
 
Solution
Signal triggers on open of bar after trigger bar.
Assume Day time frame due to 2 day rule.
Haven't had time to error check.

Cfh42W6.png


Ruby:
#BUY
Def BAnti1 = if (low[5]-low[4])>0 then (low[5]-low[4]) else 0;
Def BAnti2 = if (low[4]-low[3])>0 then (low[4]-low[3]) else 0;
Def BAnti3 = if (low[3]-low[2])>0 then (low[3]-low[2]) else 0;
Def BAnti4 = low[5] > low[4] and low[4] > low[3] and low[3] > low[2] and low[1] > low[2] and open[1] < close[1];
Def BAntiHigh = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then high[1]+ticksize() else double.nan;
Def BAntiLow = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then low[1]-ticksize() else double.nan;

def BAntiHighLine = if !IsNaN(BAntiHigh[2]) then double.nan else if !IsNan(BAntiHigh) then BAntiHigh else BAntiHighLine[1];
def BAntiLowLine = if !IsNaN(BAntiLow[2]) then double.nan else if !IsNan(BAntiLow) then BAntiLow else BAntiLowLine[1];

plot BAntiHighPlot = BAntiHighLine;
BAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiHighPlot.SetDefaultColor(color.LIGHT_GREEN);
BAntiHighPlot.SetLineWeight(1);

plot BAntiLowPlot = BAntiLowLine;
BAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiLowPlot.SetDefaultColor(color.LIGHT_RED);
BAntiLowPlot.SetLineWeight(1);

Plot AntiHighSetup = if !IsNaN(BAntiHigh[-2]) then low - ((high - low)*.25) else double.nan;
AntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
AntiHighSetup.SetDefaultColor(color.DARK_GREEN);
AntiHighSetup.SetLineWeight(5);


#SELL
Def SAnti1 = if (high[5]-high[4])<0 then (high[5]-high[4]) else 0;
Def SAnti2 = if (high[4]-high[3])<0 then (high[4]-high[3]) else 0;
Def SAnti3 = if (high[3]-high[2])<0 then (high[3]-high[2]) else 0;
Def SAnti4 = high[5] < high[4] and high[4] < high[3] and high[3] < high[2] and high[1] < high[2] and open[1] > close[1];
Def SAntiHigh = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then high[1]+ticksize() else double.nan;
Def SAntiLow = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then low[1]-ticksize() else double.nan;

def SAntiHighLine = if !IsNaN(SAntiHigh[2]) then double.nan else if !IsNan(SAntiHigh) then SAntiHigh else SAntiHighLine[1];
def SAntiLowLine = if !IsNaN(SAntiLow[2]) then double.nan else if !IsNan(SAntiLow) then SAntiLow else SAntiLowLine[1];

plot SAntiHighPlot = SAntiHighLine;
SAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiHighPlot.SetDefaultColor(color.LIGHT_RED);
SAntiHighPlot.SetLineWeight(1);

plot SAntiLowPlot = SAntiLowLine;
SAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiLowPlot.SetDefaultColor(color.LIGHT_GREEN);
SAntiLowPlot.SetLineWeight(1);

Plot SAntiHighSetup = if !IsNaN(SAntiHigh[-2]) then high + ((high - low)*.25) else double.nan;
SAntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
SAntiHighSetup.SetDefaultColor(color.DARK_RED);
SAntiHighSetup.SetLineWeight(5);
@Svanoy

Greatly appreciate your work and time. Will give it a test and confirm findings.

Cheers
Hush
 
Signal triggers on open of bar after trigger bar.
Assume Day time frame due to 2 day rule.
Haven't had time to error check.

Cfh42W6.png


Ruby:
#BUY
Def BAnti1 = if (low[5]-low[4])>0 then (low[5]-low[4]) else 0;
Def BAnti2 = if (low[4]-low[3])>0 then (low[4]-low[3]) else 0;
Def BAnti3 = if (low[3]-low[2])>0 then (low[3]-low[2]) else 0;
Def BAnti4 = low[5] > low[4] and low[4] > low[3] and low[3] > low[2] and low[1] > low[2] and open[1] < close[1];
Def BAntiHigh = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then high[1]+ticksize() else double.nan;
Def BAntiLow = if BAnti1 < BAnti2 and BAnti2 < BAnti3 and BAnti4 then low[1]-ticksize() else double.nan;

def BAntiHighLine = if !IsNaN(BAntiHigh[2]) then double.nan else if !IsNan(BAntiHigh) then BAntiHigh else BAntiHighLine[1];
def BAntiLowLine = if !IsNaN(BAntiLow[2]) then double.nan else if !IsNan(BAntiLow) then BAntiLow else BAntiLowLine[1];

plot BAntiHighPlot = BAntiHighLine;
BAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiHighPlot.SetDefaultColor(color.LIGHT_GREEN);
BAntiHighPlot.SetLineWeight(1);

plot BAntiLowPlot = BAntiLowLine;
BAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
BAntiLowPlot.SetDefaultColor(color.LIGHT_RED);
BAntiLowPlot.SetLineWeight(1);

Plot AntiHighSetup = if !IsNaN(BAntiHigh[-2]) then low - ((high - low)*.25) else double.nan;
AntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
AntiHighSetup.SetDefaultColor(color.DARK_GREEN);
AntiHighSetup.SetLineWeight(5);


#SELL
Def SAnti1 = if (high[5]-high[4])<0 then (high[5]-high[4]) else 0;
Def SAnti2 = if (high[4]-high[3])<0 then (high[4]-high[3]) else 0;
Def SAnti3 = if (high[3]-high[2])<0 then (high[3]-high[2]) else 0;
Def SAnti4 = high[5] < high[4] and high[4] < high[3] and high[3] < high[2] and high[1] < high[2] and open[1] > close[1];
Def SAntiHigh = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then high[1]+ticksize() else double.nan;
Def SAntiLow = if SAnti1 > SAnti2 and SAnti2 > SAnti3 and SAnti4 then low[1]-ticksize() else double.nan;

def SAntiHighLine = if !IsNaN(SAntiHigh[2]) then double.nan else if !IsNan(SAntiHigh) then SAntiHigh else SAntiHighLine[1];
def SAntiLowLine = if !IsNaN(SAntiLow[2]) then double.nan else if !IsNan(SAntiLow) then SAntiLow else SAntiLowLine[1];

plot SAntiHighPlot = SAntiHighLine;
SAntiHighPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiHighPlot.SetDefaultColor(color.LIGHT_RED);
SAntiHighPlot.SetLineWeight(1);

plot SAntiLowPlot = SAntiLowLine;
SAntiLowPlot.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
SAntiLowPlot.SetDefaultColor(color.LIGHT_GREEN);
SAntiLowPlot.SetLineWeight(1);

Plot SAntiHighSetup = if !IsNaN(SAntiHigh[-2]) then high + ((high - low)*.25) else double.nan;
SAntiHighSetup.SetPaintingStrategy(PaintingStrategy.POINTS);
SAntiHighSetup.SetDefaultColor(color.DARK_RED);
SAntiHighSetup.SetLineWeight(5);
@Svanoy

Tested the the script and it is working perfectly with different volatile instruments. Thank you very much for taking the time and creating this indictor for me and the community.

Cheers,
Hush
 

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
384 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