How do I code up a candlestick pattern? I have found the necessary CPR Tokens, but need help to identify it. In summary:
I have a Long legged Doji. I want to factor that into a signal. Something like
IF ( current candle = CPR_Long_Legged_Doji ) AND ( VB > VB.1) etc etc...
How does one call out the candle?
The token CPR can be used for the Candlestick Pattern Recognition indicator. The result of CPR will be the number of patterns identified on each bar. If you only turn one pattern on (in your case, Long Legged Doji) then CPR will give you a 1 when it finds the pattern and a 0 otherwise. So your syntax would be simply...
CPR = 1 AND VB > VB.1 AND ...