Phantom_503
New member
Hello everyone, I'm a newbie and started to code thinkscript, and recently a have a headache with this code:
I came up with this custom indicator which I'm testing, and I'm trying to build a scanner but I couldn't find the right way to do that
This is the code:
input n = 0;
def indicator1 = close[n-1] > close[n-3] and close[n-1] <= low[n-1] + 0.25 * (high[n-1] - low[n-1]);
plot results1 = indicator1;
sellsignal2.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
sellsignal2.AssignValueColor(Color.BLUE);
The Indicator works on the chart, but it does nothing when I put it on the scanner or I put an alert on it and I don't know why?
I came up with this custom indicator which I'm testing, and I'm trying to build a scanner but I couldn't find the right way to do that
This is the code:
input n = 0;
def indicator1 = close[n-1] > close[n-3] and close[n-1] <= low[n-1] + 0.25 * (high[n-1] - low[n-1]);
plot results1 = indicator1;
sellsignal2.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
sellsignal2.AssignValueColor(Color.BLUE);
The Indicator works on the chart, but it does nothing when I put it on the scanner or I put an alert on it and I don't know why?