//+------------------------------------------------------------------+ //| multi-pair-alert.mq4 | //| Copyright © 2008, forexlion | //| preet.anchorfx@yahoo.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2008, forexlion" #property link "preet.anchorfx@yahoo.com" #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { //---- indicators //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator deinitialization function | //+------------------------------------------------------------------+ int deinit() { //---- //---- return(0); } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int start() { int counted_bars=IndicatorCounted(); //---- ObjectsDeleteAll(); string lbl[8], lbl2[8]; int n=30; lbl[0] = "GBPUSD"; lbl2[0] = signal("GBPUSD"); for (int u=0;u h1 && Bid > h4) {sig = "BUY "+sm;} if (Ask < h1 && Ask < h4) {sig = "SELL "+sm;} return(sig); }