Forum

Easiest way to draw simple arrow

My EA identieifes certain trigger bars, I want a very simple arrow to be drawn above these bars. The code for arrows used in indicators seem quite complicated, is there not an easier way? E.g. if previous bar close higher than bar before that I want to draw an arrow if (NEWBAR) if iClose(NULL,0,1) >

Alert per bar not tick

Total newbie here, I'm teaching myself to program using the MQL4 book. I've coded the following to give alerts when stochastics cross back from overbought/oversold levels. How can I adjust the program to only get an alert at the end of the bar and not per tick? Any help will be appreciated

Beginner programmer help please

I'm teaching myself to program using the MQL4 book on this site. I'm stuck on the following: I have coded the very simple stochastics cross alert program from the book. See code below. I'm not sure if I should compile the program as a script or an EA? I have tried both, compiled this code as script