One Day Reversal

BannonMan85

New member
I have created the candlestick pattern for this but I was wondering how can a buy or sell signal be created to include volume increase of this strategy. The rules for the strategy are as follows:

The One-Day Reversal Patterns


The one-day reversal pattern was considered a significant signal by Jesse Livermore. There are the bullish and bearish reversals:


□ Timeframe: Daily chart
□ Confirmation: Volume


(A) One-Day Bullish Reversal:
Conditions:

(i) The close of the daily candle is higher than the close of the previous candle

(ii) the intraday low of the daily candle is lower than the intraday low of the previous candle

(iii) the volume of the signal candle is higher than the volume of the previous candle

This pattern produces a short-term buying signal.

(B) One-Day Bearish Reversal:
Conditions:

(i) The close of the daily candle is lower than the close of the previous candle

(ii) the intraday low of the daily candle is higher than the intraday low of the previous candle

(iii) the volume of the signal candle is higher than the volume of the previous candle

This pattern produces a short-term selling signal.
 
Solution
I have created the candlestick pattern for this but I was wondering how can a buy or sell signal be created to include volume increase of this strategy. The rules for the strategy are as follows:

The One-Day Reversal Patterns


The one-day reversal pattern was considered a significant signal by Jesse Livermore. There are the bullish and bearish reversals:


□ Timeframe: Daily chart
□ Confirmation: Volume


(A) One-Day Bullish Reversal:
Conditions:

(i) The close of the daily candle is higher than the close of the previous candle

(ii) the intraday low of the daily candle is lower than the intraday low of the previous candle

(iii) the volume of the signal candle is higher than the volume of the previous candle...
I have created the candlestick pattern for this but I was wondering how can a buy or sell signal be created to include volume increase of this strategy. The rules for the strategy are as follows:

The One-Day Reversal Patterns


The one-day reversal pattern was considered a significant signal by Jesse Livermore. There are the bullish and bearish reversals:


□ Timeframe: Daily chart
□ Confirmation: Volume


(A) One-Day Bullish Reversal:
Conditions:

(i) The close of the daily candle is higher than the close of the previous candle

(ii) the intraday low of the daily candle is lower than the intraday low of the previous candle

(iii) the volume of the signal candle is higher than the volume of the previous candle

This pattern produces a short-term buying signal.

(B) One-Day Bearish Reversal:
Conditions:

(i) The close of the daily candle is lower than the close of the previous candle

(ii) the intraday low of the daily candle is higher than the intraday low of the previous candle

(iii) the volume of the signal candle is higher than the volume of the previous candle

This pattern produces a short-term selling signal.

I'm new, so go easy if this is not what you wanted. :)

Code:
# One-Day Reversal Pattern
# Defined by Jesse Livermore

def LongReversal = Low < Low[1] and Close > Close[1] and Volume > Volume[1];
def ShortReversal = High > High[1] and Close < Close[1] and Volume > Volume[1];

plot UpArrow = if LongReversal then low - .75 else Double.NaN;
UpArrow.SetDefaultColor(Color.GREEN);
UpArrow.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

plot DnArrow = if ShortReversal then high + .75 else Double.NaN;
DnArrow.SetDefaultColor(Color.RED);
DnArrow.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);

# end
 
Solution
I'm new, so go easy if this is not what you wanted. :)

Code:
# One-Day Reversal Pattern
# Defined by Jesse Livermore

def LongReversal = Low < Low[1] and Close > Close[1] and Volume > Volume[1];
def ShortReversal = High > High[1] and Close < Close[1] and Volume > Volume[1];

plot UpArrow = if LongReversal then low - .75 else Double.NaN;
UpArrow.SetDefaultColor(Color.GREEN);
UpArrow.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

plot DnArrow = if ShortReversal then high + .75 else Double.NaN;
DnArrow.SetDefaultColor(Color.RED);
DnArrow.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);

# end
lol!!! I can't code so talking trash about whether you did it right or wrong would be stupid on my part. I will check it out when I get off work. Thank you for the effort
 
hello what would be the line of code to change background color when the arrows occur thanks

the line of code when the arrows appear and to change background when the signal appears and stay that way till next signal thank you
 
Last edited by a moderator:
@Piper2808t please try this. I only added the last line to the original code.

Code:
# One-Day Reversal Pattern
# Defined by Jesse Livermore

def LongReversal = Low < Low[1] and Close > Close[1] and Volume > Volume[1];
def ShortReversal = High > High[1] and Close < Close[1] and Volume > Volume[1];
 
plot UpArrow = if LongReversal then low - .75 else Double.NaN;
UpArrow.SetDefaultColor(Color.GREEN);
UpArrow.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

plot DnArrow = if ShortReversal then high + .75 else Double.NaN;
DnArrow.SetDefaultColor(Color.RED);
DnArrow.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);

AssignBackgroundColor(if LongReversal then Color.LIGHT_GREEN else if ShortReversal then Color.LIGHT_RED else Color.CURRENT);

# end
 
@Piper2808t please try this. I only added the last line to the original code.

Code:
# One-Day Reversal Pattern
# Defined by Jesse Livermore

def LongReversal = Low < Low[1] and Close > Close[1] and Volume > Volume[1];
def ShortReversal = High > High[1] and Close < Close[1] and Volume > Volume[1];
 
plot UpArrow = if LongReversal then low - .75 else Double.NaN;
UpArrow.SetDefaultColor(Color.GREEN);
UpArrow.SetPaintingStrategy(PaintingStrategy.ARROW_UP);

plot DnArrow = if ShortReversal then high + .75 else Double.NaN;
DnArrow.SetDefaultColor(Color.RED);
DnArrow.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);

AssignBackgroundColor(if LongReversal then Color.LIGHT_GREEN else if ShortReversal then Color.LIGHT_RED else Color.CURRENT);

# end
thank you
 

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