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
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