Am I doing something wrong...??
Hi Guys,
can someone please point out what am I doing wrong here
//////////// Logic for determinate Momentum Break \\\\\\\\\\\\\\\\\\\\\
P = (LastHigh + LastLow + Close[i+1]) / 3; // Logic for determinating pivot
B1 = P + 20*Point; // Logic to determinate Buy Area (Can be change as you analize)
J1 = P - 20*Point; // Logic to determinate Sell Area (Can be change as you analize)
B2 = P + 40*Point; // Logic to determinate High Break Area (Can be change as you analize)
J2 = P - 40*Point; // Logic to determinate Low Break Area (Can be change as you analize)
B3 = P + 55*Point; // Logic to determinate High Target Area (Can be change as you analize)
J3 = P - 55*Point; // Logic to determinate Low Target Area (Can be change as you analize)
if(EntryLevel==0) EntryLevel = Bid;
BuyLevel = EntryLevel + Distance*Point;
SellLevel = EntryLevel - Distance*Point;
ticket = OrderSend(Symbol(),OP_SELLLIMIT,Lots,SellLevel,Sli ppage,SellLevel+StopLoss*Point,SellLevel-TakeProfit*Point,TicketComment,MagicNumber,0,Red);
ticket = OrderSend(Symbol(),OP_BUYLIMIT,Lots,BuyLevel,Slipp age,BuyLevel-StopLoss*Point,BuyLevel+TakeProfit*Point,TicketCom ment,MagicNumber,0,Green);
EntryAllow = false;
return(0);
I want entrylevel = to P....how can i do that please???
Thanks
Last edited by babarmughal; 11-16-2006 at 09:34 PM.
|