Download MetaTrader 5

How to cross FiboLevel

To add comments, please log in or register
fly7680
698
fly7680  

Hi, I'm trying to write an arrow when I cross FiboLevel but I can not

if(iCustom(Symbol(),PERIOD_CURRENT,"Heiken Ashi",2,1) > iCustom(Symbol(),PERIOD_CURRENT,"Heiken Ashi",3,1) 
&& iCustom(Symbol(),PERIOD_CURRENT,"Heiken Ashi",2,1) < ObjectGetDouble(0,"Fiboo",OBJPROP_FIRSTLEVEL,0)     // Cross Fibo Level     
&& iCustom(Symbol(),PERIOD_CURRENT,"Heiken Ashi",3,1) > ObjectGetDouble(0,"Fiboo",OBJPROP_FIRSTLEVEL,0) )   // Cross Fibo Level                           
{ 
  ObjectCreate("ARROW_UP"+Up,OBJ_ARROW_UP,0,Time[1],iCustom(Symbol(),PERIOD_CURRENT,"Heiken Ashi",1,1)-50*Point);  
  ObjectSet   ("ARROW_UP"+Up,OBJPROP_COLOR,White);
  ObjectSet   ("ARROW_UP"+Up,OBJPROP_WIDTH,3);
  Up++; 
}
To add comments, please log in or register