//+------------------------------------------------------------------+ //| UCET.mq4 | //| Copyright © 2010, MetaQuotes Software Corp. | //| http://www.metaquotes.net | //+------------------------------------------------------------------+ #property copyright "Copyright © 2010, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 MediumBlue double total[]; int init (){ SetIndexBuffer(0,total); SetIndexStyle(0,DRAW_LINE); SetIndexLabel(0,"total"); } //+------------------------------------------------------------------+ //| expert deinitialization function | //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| expert start function | //+------------------------------------------------------------------+ int start() { total[0]= AccountEquity()-AccountBalance () ; //---- } //+------------------------------------------------------------------+