This script can be used on the Forex Majors. When you apply it to the chart open the properties box and click the 'recalculate after update' box. It open only long positions when the conditions are met.
This is my very first attempt so dont crit me too much.