- Search Energy EXCH
- 14 Results
- David28 replied May 25, 2020
Hi Beerun, If I replace “if(OrderSymbol()==_Symbol)” instead of "if(OrderMagicNumber()==MagicNumber)" before “result++;”, will the ea stop opening additional position if another ea has opened the position on that symbol?
- David28 replied May 24, 2020
if(Bid-OrderOpenPrice()>OrderOpenPrice()-OrderStopLoss()) { if(OrderStopLoss()<Bid-MyPoint*TrailingStop) { OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+10*_Point,OrderTakeProfit(),0,Green); return(0); } Hi everyone, I would like to ...
- David28 replied May 23, 2020
if(Bid-OrderOpenPrice()>OrderOpenPrice()-OrderStopLoss()) { if(OrderStopLoss()<Bid-MyPoint*TrailingStop) { OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+10*_Point,OrderTakeProfit(),0,Green); return(0); } Hi everyone, I would like to ...
- David28 replied May 18, 2020
Will this code below just count opened order from a specific magic number? int TotalOrdersCount() { int result=0; for(int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS ,MODE_TRADES); if (OrderMagicNumber()==MagicNumber) result++; } return ...
- David28 replied May 18, 2020
Hi Beerrun, I just have another question that I would like to ask you. I know that we can use multiple ea bots on the same currency pair by attaching them to a separate chart, and we can manage them by different magic numbers. However, I wonder that ...
- David28 replied Apr 22, 2020
Hi everyone, I have a question that can we open the opposite positions on the same pair. If not, what would happened if we run two different ea bots on the same pair and they triggered opposite positions?
- David28 replied Apr 18, 2020
Hi everyone, I just recognize that the ea bot applies the SL & TP different rate at each trade even I have set the fixed points. Can someone explain why? and how to force it apply the same rate every trade?
- David28 replied Apr 15, 2020
Do you mean y2bar - 1 instead of u2bars -1
- David28 replied Apr 15, 2020
I eddit like this int range=160,highestIndex; double highestPrice=0; for(int x1=1;x1<range;x1++)if(High[x1]>highestPrice){highestPrice=High[x1];highestIndex=x1;} And it does not work
- David28 replied Apr 14, 2020
May someone help me? I want to find the position of the highest bar in the range of nearest 80 bars. I have tried to code below, however, I do not get the right result. May someone helps me with what wrong with my code and how to correct it to find ...
- David28 replied Apr 11, 2020
Hi Beerun, May you help me with this? I am creating the codes to calculate the resistance. However, I don't know how to turn the time into value for calculation, so the code is not working right. May you have a look at instruct me how to correct it? ...
- David28 replied Apr 6, 2020
Thank You Beerrun I correct it as if (OrderType()== OB_BUYLIMIT || OrderType() ==OB_BUY) And it work.
- David28 replied Apr 6, 2020
May someone help me? I dont know why my ea bot does not close order that incur loss after 3 hours that I have programmed. May you look at my code and see what wrong? if(OrderType()==OP_BUYLIMIT) { if(((TimeCurrent()- OrderOpenTime()>= ...
- David28 replied Apr 6, 2020
Hi fxdaytrader, May you help me? I dont know why my ea bot does not close order that incur loss after 3 hours that I have programmed. May you look at my code and see what wrong? if(OrderType()==OP_BUYLIMIT) { if(((TimeCurrent()- OrderOpenTime()>= ...
- Posts by Member Search: 'David28'