// Beneficiometro. Programando Forex. 27/05/09 #property copyright "GNU GPL v3.0 Programando Forex" #property link "http://www.programandoforex.com" // Propiedades generales #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 Lime // Buffers double ExtMapBuffer1[]; int init() { // Propiedades gráficas SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,ExtMapBuffer1); // Mostrar una linea de texto sobre el indicador string nombre = "Profit/Loss total: "; IndicatorShortName(nombre); return(0); } int start() { ExtMapBuffer1[0] = profitTotal(); return(0); } int profitTotal() { int ordenes = OrdersTotal(); int profitTotal = 0; for(int pos=0; pos