
// Just a sample of how to use the indicator for an EA.

// NOT TO BE USED LIVE TRADING

// NOT TO BE USED LIVE TRADING

// NOT TO BE USED LIVE TRADING

int start()
	{
		if(Period()>PERIOD_H4)
			{
				Print("Timeframe too high!");
				return(0);
			}
		if(OrdersTotal()==0)
			{
				if(Ask>=dMIO(0))
					{
						OrderSend(Symbol(),OP_BUY,1.0,Ask,3,dMIO(1),dMIO(2),NULL,0,0,CLR_NONE);
					}
				if(Bid<=dMIO(3))
					{
						OrderSend(Symbol(),OP_SELL,1.0,Bid,3,dMIO(4),dMIO(5),NULL,0,0,CLR_NONE);
					}
			}
	}

double dMIO(int iIndex)
	{
		return(iCustom(NULL,0,"mio GBPJPY Daily Pips",23,57,67,iIndex,0));
	}