Basic arrow indicator help

 

hello

 currently i'm learning mql4 , i would like have an example indicator to plot arrow when conditions met  and a horizontal line at exact price level 

 if(true)

{

  when current price higher from previous candle low uparrow and horizontal line in exact price met first time in that candle

   or lower than previous candle high downarrow and horizontal line in exact price met first time in that candle 

}

 http://gyazo.com/d760e306028547eba2186b74ec07fdfb

 

http://gyazo.com/8987982b31350424876674924aa27e75

 

my problem is basic mql4 functions  , 

 

can you anyone give me entire sample code for this indicator  

Screenshot by Gyazo
Screenshot by Gyazo
  • gyazo.com
Gyazo lets you instantly grab the screen and upload the image to the web.
Reason: