Separating Lines, a two-candlestick pattern, signifies trend continuation based on the heights and arrangement of the candles, predicting either a bullish or bearish trend continuation.
Method
tm.ta.cdlseparatinglines(source_open, source_high, source_low, source_close)
Parameter Argument type Description Default Value source_open pd.Series Open prices series - source_high pd.Series High prices series - source_low pd.Series Low prices series - source_close pd.Series Close prices series -
Outputs
Output Type cdlseparatinglines np.ndarray
Example usage
def my_strategy (config: tm.TradomateConfig, data: tm.TradomateData):
cdlseparatinglines = tm.ta.cdlseparatinglines(data.open, data.high, data.low, data.close)
# Get the last value and print
last_value = cdlseparatinglines.iloc[ - 1 ]
tm.log( f "Last value of is { last_value } " )
# Plot the values of cdlseparatinglines
tm.plot(cdlseparatinglines, title = "" , overlay = False )