I am trying to set up a new custom scan and I am getting an error message that states: Invalid statement. I cant figure out what I am doing wrong. I am completely new at this. I have never set up a scan before.
Here is the code I am trying to input:
Software code for the Think-Or-Swim platform
This code is for the
Doji pattern:
Def Stoc = StochasticSlow(12, 1);
Def MinVolume = Average(Volume, 90);
Plot DojiPattern = AbsValue(Open - Close) <= (High – Low) * .1
And Close > 25 And Stoc < 20 And MinVolume > 200000;
DojiPattern.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
DojiPattern.SetDefaultColor(Color.Light_GRAY);
I am getting the error message for the last two parameters; the DojiPattern lines. The first three lines were accepted.
Any help would be greatly appreciated.