Attached you could find the rules for this EA, is based on the inside bar signal to proceed or not to the rules for opening a new order.
There are 5 rules for enter long positions and 5 rules for enter short positions.
Must include money management in order to auto calculate the risk per trade, automatic and or manually.
Attached you could find the file with the system explained
Any doubts please ask