Forums ProRealTime English forum ProOrder support premarket open price breakout strategy idea Reply To: premarket open price breakout strategy idea

#67781

Thanks again Roberto and all

For the last few days I wrote the basic test code but it is still not finished.

  1. I am still not sure how to cancel all positions and orders – is there a command (like QUIT but only for a single day) or do I need to manually SELL AT MARKET even when I didn’t buy yet
  2. I am also not sure if all the code is run for each bar again and again (I am guessing the answer is yes)
  3. if the bar is a 3 minute bar does it wait till close to run the code is it not in “real time” tick for tick
  4. if I want to look back and backtest the data from the last 12 month can I do it on a 3 min bar? it seems I have very limited access to the data on a 3 min bar

Any help would be greatly appreciated

Thanks

Alan