//+------------------------------------------------------------------+ //| Chart_on_other_chart.mq4 | //| Copyright © 2011, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2011, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_chart_window #property indicator_buffers 3 extern string cPair = "USDJPY"; extern color bar_color = Yellow; int counted_bars,wbpc,wfvb,r_bar,i; double maxP,minP,scale; double highP[],lowP[]; string obj_name[]; //+------------------------------------------------------------------+ int init() { SetIndexBuffer(0,highP); SetIndexBuffer(1,lowP); SetIndexBuffer(2,obj_name); return(0); } //+------------------------------------------------------------------+ int deinit() { for(i=r_bar; i