Hello PRT community,
I would very much appreciate some assistance with coding in PRT for a simple breakout screener. I have tried many ways to do this without success.
I would like to code the following for a Daily System:
For a long position:
- The Supertrend(5,15) to be above the high of the previous 7 days and
- The Supertrend (5,15) to be the same for the previous seven days; and
- The supertrend (5,15) of the current day is below the low of the current day; and
- The close of the current day is greater that the Supertrend(5,15) of the previous 7 days; and
- The close of the current day is greater than the open of the current day.
The long position looks to identify the candle identified by the arrow in the chart below:
The Short position is essentially the opposite of the Long position:
- The Supertrend(5,15) to be below the low of the previous 7 days and
- The Supertrend (5,15) to be the same for the previous seven days; and
- The supertrend (5,15) of the current day is above the high of the current day; and
- The close of the current day is less that the Supertrend(5,15) of the previous 7 days; and
- The close of the current day is less than the open of the current day.
Thank you for your time and assistance.