Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by roman ( 14 years ago )
extern int count_bar = 60;
extern int right_bar = 1;

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

double current_ask_price=Ask;
double current_bid_price=Bid;
   
double high = High[iHighest(NULL,0,MODE_HIGH,count_bar,right_bar)];
double low = Low[iLowest(NULL,0,MODE_LOW,count_bar,right_bar)];

if(current_ask_price>=high)
{
   Alert("Cena prekrocila high!");
}
if(current_bid_price<=low)
{
   Alert&#40;"Cena prekrocila low!"&#41;;
}

//----
   return(0);
}

 

Revise this Paste

Your Name: Code Language: