//+------------------------------------------------------------------+
//| price.mq4 |
//| Copyright © 2010, andy |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, andy"
#property link ""
#property indicator_chart_window
extern color col = Black;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
ObjectsDeleteAll();
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
ObjectDelete("label");
ObjectCreate("label", OBJ_ARROW, 0,Time[0], Bid);
ObjectSet("label",OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE);
ObjectSet("label",OBJPROP_COLOR,col);
//----
//----
return(0);
}
//+------------------------------------------------------------------+
Comments