I want someone to wash my car, that's all . . . are you volunteering ?
#property indicator_chart_window extern double Price = 1.42000; //+------------------------------------------------------------------+ //| 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(); //---- double PTL = Price+100*Point; double PTS = Price-100*Point; if(Bid>PT){Alertonce("BUY POSITION",1);} if(Bid<PTS){Alertonce("SELL POSITION",2);} //---- return(0); } //+------------------------------------------------------------------+ bool Alertonce(string alert_msg, int ref) { static int lastalert1 = 0; static int lastalert2 = 0; switch(ref) { case 1: if(lastalert1 == 0 || lastalert1<Bars) { Alert(alert_msg); lastalert1= Bars; return(1); } break; case 2: if(lastalert2==0 || lastalert2<Bars) { Alert(alert_msg); lastalert2= Bars; return(1); } break; } }mite work... if it alerts at 10pips...just adjust the 100 in the code to 1000

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hello i want a script who say:
if price up of 100 pip, buy position
If price down of 100 pip, sell position.
it's all
if it's possible i take this.
thanks