Well, first, if(adviseLong(PATTERN+FAST+2+RETURNS,0, <<<---- the "2" defines that you have two pattern groups

price(2)>price(1) && price(1)<priceClose(1))) <<<---- "&&" connects your two statements, so you do not have two pattern groups

if(adviseLong(PATTERN+FAST+2+RETURNS,0,
bla,bla,bla,
bla,bla,bla,
bla,bla,bla,
bla,bla,bla,) > 50) <<<---- replace? you did also remove the condition what to do with the prediction result
enterLong();


And at last, the PATTERN function searches in historic data for patterns, defined by characteristics, so you don't feed a pattern, you define the characteristics you want it to "search" for patterns.

This:
price(2)>price(1) && price(1)<priceClose(1) <<<---- you try to feed it with a pattern.

I would strongly advise you, to read all the TFH, buy the black book, go from there.
BTW, the black book is probably the fastest way to get you up and running.

Last edited by danatrader; 12/27/20 11:56.