Hey guys..
I'm trying to learn this programming.. but i keep getting an "invalid stops" error..
Could someone please tell me what's wrong cause i can't seem to figure it out..
Thanks in advance..
I'm trying to learn this programming.. but i keep getting an "invalid stops" error..
Could someone please tell me what's wrong cause i can't seem to figure it out..
Thanks in advance..
Inserted Code
int start()
{
double High1;
double Low1;
int TP = 50;
int SL = 50;
int Lots = (((AccountBalance()/15)/50)/10);
//----
{
High1 = iHigh(NULL, PERIOD_D1, 0);
Low1 = iLow(NULL, PERIOD_D1, 0);
Print(High1);
Print(Low1);
}
//----
{
OrderSend(Symbol(),OP_BUYSTOP,Lots,High1,NULL,Ask-SL*Point,Ask+TP*Point);
OrderSend(Symbol(),OP_SELLSTOP,Lots,Low1,NULL,Bid+SL*Point,Bid-TP*Point);
Alert (GetLastError());
}
//----
return(0);
}