I Can`t Create A Simple (Free Hand) Trendline Alert !!!

 

Hello MT Experts,

I Can`t Create A Simple (Free Hand) Trendline Alert !!!

Is This Possible At All ???

Does Anyone Has An Alert Yet ??? 

Thanks ahead

 

Yes, using the scripting functions included with MT4.

 
phy:

Yes, using the scripting functions included with MT4.

I am getting a good Indicator - try the Chin Breakout Alert V.1.2s.mq4 ...

But it only works with 2 trend lines (One Blue Recistand Line & One Red Sopport Line) !!!

Can Anyone Overwriting Me This Indicator For More Than 2 Trend Lines ???

 

Save as TrendlineAlertScript.mq4 in the experts/scripts folder.

Compile.

Attach to chart.

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start(){

   while (!IsStopped()){

      Comment("\n\n TrendLineAlert running ", TimeToStr(TimeLocal(), TIME_DATE|TIME_SECONDS));
      for(int i = ObjectsTotal()-1; i >= 0; i--){
         string name = ObjectName(i);
         if(ObjectType(name) == OBJ_TREND){
            double value = ObjectGetValueByShift(name, 0);
            if(Bid <= value + 1*Point && Bid >= value -1*Point){
               PlaySound("Alert.wav");
            }
         }
      }
      Sleep(2000);
   }
   return(0);
}
 
phy:

Save as TrendlineAlertScript.mq4 in the experts/scripts folder.

Compile.

Attach to chart.

abolutly GREAT STUFF !!!

Oh MAN - it is so easy if you know how to explain/write !!!

Thank u very much !!!

 
phy:

Save as TrendlineAlertScript.mq4 in the experts/scripts folder.

Compile.

Attach to chart.

IS IT POSSIBLE TO MAKE WITH THIS SIMPLE (FREE HANDS) TRENDL INES - THIS SCRIPT - AN EMAIL ALERT ???

Perhaps You Can Writing Me On ??? I am Always Getting A Hot Head If I am Starting With Writing A Script/Indicator By Myself !!!

Thanks Ahead - The Script Is Working very Well ...

Rookie

 
2008.08.15 18:14:28 Script 'TrendlineAlertScript' is an indicator and will not be executed
 
Mehmet:
2008.08.15 18:14:28 Script 'TrendlineAlertScript' is an indicator and will not be executed

OF COURSE !!! YOU`RE RIGHT - I AM WRONG !!! This Is An Indicator ...

Let me better explain my intensions : "I Wann Have An Alert For This Indicator - An EMail Or Sound Alert !!!"


I like this indicator very welll `cause it`s really simple !!! And easy to work with it !!!

I have also an another indicator - even with an alert and only 2 trendlines !!!

But I need even more - like in the code above ...


I am not a programmer - and don`t wanna be one !!! But I need some easy indcators/scripts/ea`s ...

HAS ANY MT EXPERT ENOUGH SKILLS TO CREATE A SIMPLE FREE HAND ALERT ???

Even With The Simple Very Useful Code Above & Perhaps With The Indicators Which I am Loading Up Right Here Right Now !!!


Thanks ahead :

Good trades  &  best regards !!!

 

Reason: