The strategy is based on moving averages crossing on a 15min chart. If the cross occurs, the stochastic is checked on the 15min and 30 min chart. Based on the direction of the cross, down cross, check for overbought , up cross, check for oversold. If both 15min and 30 min chart are in agreement, then the orders are checked. If an order already the exists going in the direction of the cross no further action is taken. If an order exists going in the opposite direction of the cross, the existing order is closed and a new order is placed. If no order exists a new order is placed going in the direction of the cross, buy for up, sell for down. If orders are placed or if orders are not placed need to manage the existing orders. To manage the orders, the stop loss and take profit would be increased by 15 pips for every 15 pips of gain until 100 pips of gain. At 100 pips the order is closed and a new order is created with a lot size 1.5 times the existing order lot size. I want this process to run every 3 minutes.