Publi
Aqui tienen el indicador, Deben agragar la linea con el nombre de Porcentaje.

//+------------------------------------------------------------------+
//| pORCETAJE.mq4 |
//| RAfA0295 |
//| |
//+------------------------------------------------------------------+
#property copyright "RAfA Roig"
#property link ""
#property version "1.1"

#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//---
Comment("");
//---
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
double Precio1,Precio2,Pct;
//---
if(ObjectFind("Porcentaje")==-1)(Comment("No existe la linea"));
else
{
Precio1=ObjectGet("Porcentaje",1);
Precio2=ObjectGet("Porcentaje",3);
Pct=((Precio2/Precio1)-1)*100;
Comment("Porcentaje=",Pct,"%");
}
//---
return(0);
}
//+------------------------------------------------------------------+
Foro de Forex Trading United