Forums › ProRealTime English forum › ProOrder support › ORB 15M error with buy limit MultiTimeFrame › Reply To: ORB 15M error with buy limit MultiTimeFrame
09/24/2018 at 12:30 AM
#81142
Your strategy works fine as you asked it to do!
As from the attached screenshot you can see that at 9:55 it enters a trade because the conditions were true in the setup bar at 9:50. Condition you asked to be met were that the previous candle (at 09:45) had crossed over RES, which it did!
Lines 19-20 can be written
1 2 |
longok=(close[1]crosses over res)// AND (close[1]> res) shortok= (close[1] crosses under supp)// and (close[1]<supp) |
since for a crossover/under to be true CLOSE must be above/under RES or SUPP.
The problem is, I guess, that you are referencing the previous candle ([1]) instead of the current one.