I am trying to develop a simple strategy in the wizard: Not so simple once I'm in the wizard. If N consecutive bars up (bar close higher than bar open), go long. If N consecutive bars down (bar close lower than bar open), go short. Only if market position = flat. I get the market position entry. I also get entering a stop loss and profit target per the Youtube video. However, I don't know how to get 3, 4, 5, N number of "consecutive" bars up or down. I would like to use this information in the Optimizer. So I assume I need to create a User Input. Please help. Thanks.
Todd
Comment