Breakout coding

 

Hi, I am looking for a simple coded system that will enter a max of 1 long and 1 short position per daily bar (not at same time). variables would be X pips above and below the opening price, with a set stop loss and profit target. Nothing fancy.. If someone could help code this system I would really appreciate it!!