Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hi Guys,
can someone please point out what am I doing wrong here
//////////// Logic for determinate Momentum Break \\\\\\\\\\\\\\\\\\\\\
P = (LastHigh + LastLow + Close) / 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,Slippage,SellLevel+StopLoss*Point,SellLevel-TakeProfit*Point,TicketComment,MagicNumber,0,Red);
ticket = OrderSend(Symbol(),OP_BUYLIMIT,Lots,BuyLevel,Slippage,BuyLevel-StopLoss*Point,BuyLevel+TakeProfit*Point,TicketComment,MagicNumber,0,Green);
EntryAllow = false;
return(0);
I want entrylevel = to P....how can i do that please???
Thanks