Code นี้ ฉบับเต็มเลยครับท่าน Admin...ก็ยังงงๆ อยู่ครับ เพราะหาตัวแปรไม่เจอนี้แหล่ะครับ...
รบกวนด้วยนะครับ...ขอบคุณครับ...
//+------------------------------------------------------------------+
//| Price Monitor-v2.mq4 |
//| Damian Burrowes |
//|
www.enhance-media.com |
//+------------------------------------------------------------------+
#property copyright "Damian Burrowes"
#property link "
www.enhance-media.com"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
if(ObjectFind("pricemonitor")<0)ObjectCreate("pricemonitor",OBJ_ARROW,0,Time[0]+(Time[1]-Time[2]), Bid);
else {ObjectSet("pricemonitor",1,Bid); ObjectSet("pricemonitor",0,Time[0]+(Time[1]-Time[2]));ObjectSet("pricemonitor",14,6);ObjectSet("pricemonitor",8,3);}
//if(ObjectFind("pricemonitora")<0)ObjectCreate("pricemonitora",OBJ_ARROW,0,Time[0]+(Time[1]-Time[2]), Bid);
//else {ObjectSet("pricemonitora",1,Bid); ObjectSet("pricemonitora",0,Time[0]+(Time[1]-Time[2]));ObjectSet("pricemonitora",5,3);ObjectSet("pricemonitora",5,3);}
//----
return(0);
}
//+------------------------------------------------------------------+