BookmarkSubscribeRSS Feed
LauChiFung
Calcite | Level 5

dataline;

input date open high low close dailysignal;   

1 116.6875 116.875 112.625 116 Dl

2 116 116.75 114.1875 116 Kk

....;

 

How can I find  the following bullish patterns and Bullish patterns, for example,

The Hammer                         downtrend          
The Hanging Man                 uptrend
The Bullish Engulfing            downtrend
The Bearish Engulfing          uptrend
The Piercing Lines                downtrend
Dark Cloud Cover                 uptrend
The Bullish Harami                downtrend
The Bearish Harami               uptrend

 

Capture.PNG defines candlestick dailysignal. You can use or not use it.


Capture.PNG
1 REPLY 1
mkeintz
PROC Star

I do not understand this question.  You ask "how can I define bullish patterns and Bullish patterns".  (I presume you mean bullish and bearish).  You have shown some input data.  Please show what the output data would be, and the rules by which the output data is determined.

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 2288 views
  • 0 likes
  • 2 in conversation