I've made a custom candlestick scan which generated this study code:
Is it possible to re-code the five mixed candles as a range of days? For example from 3-18 trading days instead of just a single integer as the TOS pattern editor allows.
Also, I'm hoping to add a volume study to the first and last candlestick on the chart to look for unusual volume (say 50% above average on the first and last stick on the scan).
Any help appreciated. I will refine this scan and if it brings a good result will post it back here.
Code:
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
IsUp[6] and
((Sum(IsUp, 5)[1] >= 0)) and
IsUp[0] and
low[6] < Lowest(low[1], 5) and
Highest(high[1], 5) < close[0] and
high[6] > close[1] and
Lowest(low[1], 5) < low[0];
Is it possible to re-code the five mixed candles as a range of days? For example from 3-18 trading days instead of just a single integer as the TOS pattern editor allows.
Also, I'm hoping to add a volume study to the first and last candlestick on the chart to look for unusual volume (say 50% above average on the first and last stick on the scan).
Any help appreciated. I will refine this scan and if it brings a good result will post it back here.