CAN ANYBODY WRITE A SIMPLE EA BASE ON CCI(14) AND RSI(14) - page 2

 
19730719:

just a suggestion: no need to use heaps of oscillators. one should do the trick.


It look good on GU & EJ but can you add in take profit of 15pips, and stop lose of 40pips
 
lansera:

It look good on GU & EJ but can you add in take profit of 15pips, and stop lose of 40pips

//---- buy conditions
   if(mom_curr > 100 && mom_prev <= 100)  
     {
      res=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,0,0,"Volume: "+Volume[0]+"Time: "+TimeCurrent(),BuyOrder,0,Green);
      //---- SL & TP
      if (res > 0)
         {
         OrderModify(res,OrderOpenPrice(),Bid-400*Point,Ask+150*Point,0,Green);
         }
      return;
     }
//---- sell conditions
   if(mom_curr < 100 && mom_prev >= 100)  
     {
      res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,0,0,"Volume: "+Volume[0]+"Time: "+TimeCurrent(),SellOrder,0,Red);
      //---- SL & TP
      if (res > 0)
         {
         OrderModify(res,OrderOpenPrice(),Ask-400*Point,Bid+150*Point,0,Red);
         }
      return;
     }
//----
 
qjol:


Thanks
 
19730719:


Thanks for the code.

 Can anyone help adding auto trailing stop for trades opened by this EA and also How is it possible

to close all trades once certain profit is achieved per day?

 

Thanks.