Hoping someone could help me.
Is it possible to set-up an indicator (called say CandlePattern)which uses switch for say 10 case patterns
eg
case 1
pattern = Close[1] < Open[1] && Close[0] > Open[0] && Close[0] > Open[1] && Open[0] < Close[1]
then use each case as an input (pattern) for a strategy which can then change the pattern (case 0,1,2 etc) during optimisation.
Then use pattern within an if statement which calls CandlestickPattern (pattern (case number)) to action an entry.
Hope this makes sense.
Many thanks
Comment