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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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