Candle close - Expert Advisor [REQUEST]

 
Hi,

i have a little question.

I have seen a "Candle entry EA" and now i will ask for a "Candle exit EA".

I will trade manuell with the MT4 and my strategy is very simple.

It´s a one candle trading strategy ...

On my Chart are some Indicators to determine the direction long or short!
I place a trade manuell and exit it at the startcandle or the first candle after startcandle when new candle started (H1 orH4)

My question is can somebody make an EA to exit automaticly on the Entrycandle, or on xx candles after startcandle ?
Exit by new Starting Candle for every timeframe ?

It must be only a EXIT EA not for Entry !

Thanks for your answer


Best Regards

blauhund2003


P.S.: Excuse my bad english please :)

 
bool New_Bar=false;
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
 //------------------------------------------------------------------+
  Fun_New_Bar();
  if (New_Bar == false)
     return;
 //------------------------------------------------------------------+
      {
       // 
       //Whatever Operation you want the EA to do..
       //            
      }
//----
   return(0);
  }
//+------------------------------------------------------------------+
void Fun_New_Bar()
  {
   static datetime New_Time = 0;
   New_Bar = false;
   if (New_Time!= Time[0])
      {
       New_Time = Time[0];
       New_Bar = true;
      }
  }
//-------------------------------------------------------------------+
Every tick the EA will check if the bar is new bar (Candle) and if it is EA will execute the operation.
 

Hello EuroTrader,


thanks for your great help. Close this EA the starting bar if new bar is starting ? Excuse this question please, but i´m not a good programer ...


Thanks for your answer

and

Best Regards

blauhund2003

 
PLEASE, can somebody help me to Code this Candle Exit EA ?
I´m not a programer....

Thanks
and

Best Regards

blauhund2003