Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-18-2006, 05:13 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
How To Make Trade Until The Next Bar After Closed?

Hey guys,
Can anyone help me to add the code to this EA to stop trade and wait until the next bar after closing the previous position. I've tried to disable EachTickMode but it doesn't just like i want.
PHP Code:
#property copyright "Expert Advisor Builder"
#property link      "http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/"

extern int MagicNumber 777;
extern bool SignalMail False;
extern bool EachTickMode True;
extern double Lots 0.1;
extern int Slippage 3;
extern bool StopLossMode True;
extern int StopLoss 10;
extern bool TakeProfitMode True;
extern int TakeProfit 10;
extern bool TrailingStopMode False;
extern int TrailingStop 15;
extern int EntryPoint 1;
extern int ExitPoint 2;

#define SIGNAL_NONE 0
#define SIGNAL_BUY   1
#define SIGNAL_SELL  2
#define SIGNAL_CLOSEBUY 3
#define SIGNAL_CLOSESELL 4

int BarCount;
int Current;
bool TickCheck False;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init() {
   
BarCount Bars;

   if (
EachTickModeCurrent 0; else Current 1;

   return(
0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit() {
   return(
0);
}
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start() {
   
int Order SIGNAL_NONE;
   
int TotalTicket;
   
double StopLossLevelTakeProfitLevel;



   if (
EachTickMode && Bars != BarCountTickCheck False;
   
Total OrdersTotal();
   
Order SIGNAL_NONE;

   
//+------------------------------------------------------------------+
   //| Variable Begin                                                   |
   //+------------------------------------------------------------------+

      
double Var1 iHigh(NULL,0,1);
      
double Var2 iLow(NULL,0,1);
      
double Buy1_1 Bid;
      
double Buy1_2 =  Var1+EntryPoint*Point;
      
double Sell1_1 Bid;
      
double Sell1_2 =  Var2-EntryPoint*Point;
      
double CloseBuy1_1 Bid;
      
double CloseBuy1_2 =  Var2-ExitPoint*Point;
      
double CloseSell1_1 Bid;
      
double CloseSell1_2 =  Var1+ExitPoint*Point;


   
//+------------------------------------------------------------------+
   //| Variable End                                                     |
   //+------------------------------------------------------------------+

   //Check position
   
bool IsTrade False;

   for (
int i 0Total++) {
      
OrderSelect(iSELECT_BY_POSMODE_TRADES);
      if(
OrderType() <= OP_SELL &&  OrderSymbol() == Symbol()) {
         
IsTrade True;
         if(
OrderType() == OP_BUY) {
            
//Close

            //+------------------------------------------------------------------+
            //| Signal Begin(Exit Buy)                                           |
            //+------------------------------------------------------------------+
         
            
if (CloseBuy1_1 <= CloseBuy1_2Order SIGNAL_CLOSEBUY;

            
//+------------------------------------------------------------------+
            //| Signal End(Exit Buy)                                             |
            //+------------------------------------------------------------------+

            
if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
               
OrderClose(OrderTicket(), OrderLots(), BidSlippageMediumSeaGreen);
               if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(BidDigits) + " Close Buy");
               if (!
EachTickModeBarCount Bars;
               
IsTrade False;
               continue;
            }
            
//Trailing stop
            
if(TrailingStopMode && TrailingStop 0) {                 
               if(
Bid OrderOpenPrice() > Point TrailingStop) {
                  if(
OrderStopLoss() < Bid Point TrailingStop) {
                     
OrderModify(OrderTicket(), OrderOpenPrice(), Bid Point TrailingStopOrderTakeProfit(), 0MediumSeaGreen);
                     if (!
EachTickModeBarCount Bars;
                     continue;
                  }
               }
            }
         } else {
            
//Close

            //+------------------------------------------------------------------+
            //| Signal Begin(Exit Sell)                                          |
            //+------------------------------------------------------------------+

            
if (CloseSell1_1 >= CloseSell1_2Order SIGNAL_CLOSESELL;

            
//+------------------------------------------------------------------+
            //| Signal End(Exit Sell)                                            |
            //+------------------------------------------------------------------+

            
if (Order == SIGNAL_CLOSESELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
               
OrderClose(OrderTicket(), OrderLots(), AskSlippageDarkOrange);
               if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(AskDigits) + " Close Sell");
               if (!
EachTickModeBarCount Bars;
               
IsTrade False;
               continue;
            }
            
//Trailing stop
            
if(TrailingStopMode && TrailingStop 0) {                 
               if((
OrderOpenPrice() - Ask) > (Point TrailingStop)) {
                  if((
OrderStopLoss() > (Ask Point TrailingStop)) || (OrderStopLoss() == 0)) {
                     
OrderModify(OrderTicket(), OrderOpenPrice(), Ask Point TrailingStopOrderTakeProfit(), 0DarkOrange);
                     if (!
EachTickModeBarCount Bars;
                     continue;
                  }
               }
            }
         }
      }
   }

   
//+------------------------------------------------------------------+
   //| Signal Begin(Entry)                                              |
   //+------------------------------------------------------------------+

      
if (Buy1_1 >= Buy1_2Order SIGNAL_BUY;
      if (
Sell1_1 <= Sell1_2Order SIGNAL_SELL;

   
//+------------------------------------------------------------------+
   //| Signal End                                                       |
   //+------------------------------------------------------------------+

   //Buy
   
if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
      if(!
IsTrade) {
         
//Check free margin
         
if (AccountFreeMargin() < (10 Lots)) {
            Print(
"We have no money. Free Margin = "AccountFreeMargin());
            return(
0);
         }

         if (
StopLossModeStopLossLevel Ask StopLoss Point; else StopLossLevel 0.0;
         if (
TakeProfitModeTakeProfitLevel Ask TakeProfit Point; else TakeProfitLevel 0.0;

         
Ticket OrderSend(Symbol(), OP_BUYLotsAskSlippageStopLossLevelTakeProfitLevel"Buy HL (Magic:" MagicNumber ")"MagicNumber0DodgerBlue);
         if(
Ticket 0) {
            if (
OrderSelect(TicketSELECT_BY_TICKETMODE_TRADES)) {
                Print(
"BUY order opened : "OrderOpenPrice());
                if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(AskDigits) + " Open Buy");
            } else {
                Print(
"Error opening BUY order : "GetLastError());
            }
         }
         if (
EachTickModeTickCheck True;
         if (!
EachTickModeBarCount Bars;
         return(
0);
      }
   }

   
//Sell
   
if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) {
      if(!
IsTrade) {
         
//Check free margin
         
if (AccountFreeMargin() < (10 Lots)) {
            Print(
"We have no money. Free Margin = "AccountFreeMargin());
            return(
0);
         }

         if (
StopLossModeStopLossLevel Bid StopLoss Point; else StopLossLevel 0.0;
         if (
TakeProfitModeTakeProfitLevel Bid TakeProfit Point; else TakeProfitLevel 0.0;

         
Ticket OrderSend(Symbol(), OP_SELLLotsBidSlippageStopLossLevelTakeProfitLevel"Sell HL (Magic:" MagicNumber ")"MagicNumber0DeepPink);
         if(
Ticket 0) {
            if (
OrderSelect(TicketSELECT_BY_TICKETMODE_TRADES)) {
                Print(
"SELL order opened : "OrderOpenPrice());
                if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(BidDigits) + " Open Sell");
            } else {
                Print(
"Error opening SELL order : "GetLastError());
            }
         }
         if (
EachTickModeTickCheck True;
         if (!
EachTickModeBarCount Bars;
         return(
0);
      }
   }

   if (!
EachTickModeBarCount Bars;

   return(
0);
}
//+------------------------------------------------------------------+ 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 05-18-2006, 06:54 AM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Hi, Unfortunately cant help you with code but am interested to try EA. Which timeframe do you run it on?

Best regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 05-18-2006, 07:23 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
.................................................. ................................................

Last edited by harryhid; 05-18-2006 at 07:29 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 05-18-2006, 07:26 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
Quote:
Originally Posted by hoosain
Hi, Unfortunately cant help you with code but am interested to try EA. Which timeframe do you run it on?

Best regards
I'm running it on M5, also i'll try on on bigger time frame such as H1,H4 and Daily,..i think it will be best if it can stop trade after hit SL, TP or the Closing signal rules than wait and see the next bar,..it will placing another position after the new bar that fit the rule. I hope the improvement will be like that.

thank's

Last edited by harryhid; 05-18-2006 at 07:34 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 05-18-2006, 07:33 AM
Member
 
Join Date: Dec 2005
Posts: 52
hoosain is on a distinguished road
Thanks Harry. I had put it on a 30min chart EUR/USD and just had a trade that made 10pips! I am using a stoploss of 20pips. I will ask a buddy of mine if he knows how to correct your code. If I hear from him I will post the code for you. All the best will try on 5min
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 05-18-2006, 07:44 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
...ups,..wrong reply again,..sorry...

Last edited by harryhid; 05-18-2006 at 07:46 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 05-18-2006, 07:45 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
Quote:
Originally Posted by hoosain
Thanks Harry. I had put it on a 30min chart EUR/USD and just had a trade that made 10pips! I am using a stoploss of 20pips. I will ask a buddy of mine if he knows how to correct your code. If I hear from him I will post the code for you. All the best will try on 5min
congratulations,..i hope this will be a successfull EA,..the concept are very simple,...just like a simple manual trade. Go long when break high and go shot when break low,...but,...i want to wait and see first if there's any chance to enter the market once again on the same way or take the reverse positions.

regards,...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 05-18-2006, 07:52 AM
firedave's Avatar
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
I don't know if this could solve your problem. This one check for the next bar for entry signal. Hope this help

PHP Code:
#property copyright "Expert Advisor Builder" 
#property link      "http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/" 

extern int MagicNumber 777
extern bool SignalMail False
extern bool EachTickMode True
extern double Lots 0.1
extern int Slippage 3
extern bool StopLossMode True
extern int StopLoss 10
extern bool TakeProfitMode True
extern int TakeProfit 10
extern bool TrailingStopMode False;
extern bool OneEntryPerBar true;
extern int TrailingStop 15
extern int EntryPoint 1
extern int ExitPoint 2

#define SIGNAL_NONE 0 
#define SIGNAL_BUY   1 
#define SIGNAL_SELL  2 
#define SIGNAL_CLOSEBUY 3 
#define SIGNAL_CLOSESELL 4 

int BarCount
int Current
bool TickCheck False;
datetime CheckEntryTime;
//+------------------------------------------------------------------+ 
//| expert initialization function                                   | 
//+------------------------------------------------------------------+ 
int init() { 
   
BarCount Bars

   if (
EachTickModeCurrent 0; else Current 1

   return(
0); 

//+------------------------------------------------------------------+ 
//| expert deinitialization function                                 | 
//+------------------------------------------------------------------+ 
int deinit() { 
   return(
0); 

//+------------------------------------------------------------------+ 
//| expert start function                                            | 
//+------------------------------------------------------------------+ 
int start() { 
   
int Order SIGNAL_NONE
   
int TotalTicket
   
double StopLossLevelTakeProfitLevel



   if (
EachTickMode && Bars != BarCountTickCheck False
   
Total OrdersTotal(); 
   
Order SIGNAL_NONE

   
//+------------------------------------------------------------------+ 
   //| Variable Begin                                                   | 
   //+------------------------------------------------------------------+ 

      
double Var1 iHigh(NULL,0,1); 
      
double Var2 iLow(NULL,0,1); 
      
double Buy1_1 Bid
      
double Buy1_2 =  Var1+EntryPoint*Point
      
double Sell1_1 Bid
      
double Sell1_2 =  Var2-EntryPoint*Point
      
double CloseBuy1_1 Bid
      
double CloseBuy1_2 =  Var2-ExitPoint*Point
      
double CloseSell1_1 Bid
      
double CloseSell1_2 =  Var1+ExitPoint*Point


   
//+------------------------------------------------------------------+ 
   //| Variable End                                                     | 
   //+------------------------------------------------------------------+ 

   //Check position 
   
bool IsTrade False

   for (
int i 0Total++) { 
      
OrderSelect(iSELECT_BY_POSMODE_TRADES); 
      if(
OrderType() <= OP_SELL &&  OrderSymbol() == Symbol()) { 
         
IsTrade True
         if(
OrderType() == OP_BUY) { 
            
//Close 

            //+------------------------------------------------------------------+ 
            //| Signal Begin(Exit Buy)                                           | 
            //+------------------------------------------------------------------+ 
          
            
if (CloseBuy1_1 <= CloseBuy1_2Order SIGNAL_CLOSEBUY

            
//+------------------------------------------------------------------+ 
            //| Signal End(Exit Buy)                                             | 
            //+------------------------------------------------------------------+ 

            
if (Order == SIGNAL_CLOSEBUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { 
               
OrderClose(OrderTicket(), OrderLots(), BidSlippageMediumSeaGreen); 
               if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(BidDigits) + " Close Buy"); 
               if (!
EachTickModeBarCount Bars
               
IsTrade False
               continue; 
            } 
            
//Trailing stop 
            
if(TrailingStopMode && TrailingStop 0) {                  
               if(
Bid OrderOpenPrice() > Point TrailingStop) { 
                  if(
OrderStopLoss() < Bid Point TrailingStop) { 
                     
OrderModify(OrderTicket(), OrderOpenPrice(), Bid Point TrailingStopOrderTakeProfit(), 0MediumSeaGreen); 
                     if (!
EachTickModeBarCount Bars
                     continue; 
                  } 
               } 
            } 
         } else { 
            
//Close 

            //+------------------------------------------------------------------+ 
            //| Signal Begin(Exit Sell)                                          | 
            //+------------------------------------------------------------------+ 

            
if (CloseSell1_1 >= CloseSell1_2Order SIGNAL_CLOSESELL

            
//+------------------------------------------------------------------+ 
            //| Signal End(Exit Sell)                                            | 
            //+------------------------------------------------------------------+ 

            
if (Order == SIGNAL_CLOSESELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { 
               
OrderClose(OrderTicket(), OrderLots(), AskSlippageDarkOrange); 
               if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(AskDigits) + " Close Sell"); 
               if (!
EachTickModeBarCount Bars
               
IsTrade False
               continue; 
            } 
            
//Trailing stop 
            
if(TrailingStopMode && TrailingStop 0) {                  
               if((
OrderOpenPrice() - Ask) > (Point TrailingStop)) { 
                  if((
OrderStopLoss() > (Ask Point TrailingStop)) || (OrderStopLoss() == 0)) { 
                     
OrderModify(OrderTicket(), OrderOpenPrice(), Ask Point TrailingStopOrderTakeProfit(), 0DarkOrange); 
                     if (!
EachTickModeBarCount Bars
                     continue; 
                  } 
               } 
            } 
         } 
      } 
   } 

   
//+------------------------------------------------------------------+ 
   //| Signal Begin(Entry)                                              | 
   //+------------------------------------------------------------------+ 

      
if(OneEntryPerBar && CheckEntryTime==iTime(NULL,0,0)) return(0); else CheckEntryTime iTime(NULL,0,0);

      if (
Buy1_1 >= Buy1_2Order SIGNAL_BUY
      if (
Sell1_1 <= Sell1_2Order SIGNAL_SELL

   
//+------------------------------------------------------------------+ 
   //| Signal End                                                       | 
   //+------------------------------------------------------------------+ 

   //Buy 
   
if (Order == SIGNAL_BUY && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { 
      if(!
IsTrade) { 
         
//Check free margin 
         
if (AccountFreeMargin() < (10 Lots)) { 
            Print(
"We have no money. Free Margin = "AccountFreeMargin()); 
            return(
0); 
         } 

         if (
StopLossModeStopLossLevel Ask StopLoss Point; else StopLossLevel 0.0
         if (
TakeProfitModeTakeProfitLevel Ask TakeProfit Point; else TakeProfitLevel 0.0

         
Ticket OrderSend(Symbol(), OP_BUYLotsAskSlippageStopLossLevelTakeProfitLevel"Buy HL (Magic:" MagicNumber ")"MagicNumber0DodgerBlue); 
         if(
Ticket 0) { 
            if (
OrderSelect(TicketSELECT_BY_TICKETMODE_TRADES)) { 
                Print(
"BUY order opened : "OrderOpenPrice()); 
                if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(AskDigits) + " Open Buy"); 
            } else { 
                Print(
"Error opening BUY order : "GetLastError()); 
            } 
         } 
         if (
EachTickModeTickCheck True
         if (!
EachTickModeBarCount Bars
         return(
0); 
      } 
   } 

   
//Sell 
   
if (Order == SIGNAL_SELL && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) { 
      if(!
IsTrade) { 
         
//Check free margin 
         
if (AccountFreeMargin() < (10 Lots)) { 
            Print(
"We have no money. Free Margin = "AccountFreeMargin()); 
            return(
0); 
         } 

         if (
StopLossModeStopLossLevel Bid StopLoss Point; else StopLossLevel 0.0
         if (
TakeProfitModeTakeProfitLevel Bid TakeProfit Point; else TakeProfitLevel 0.0

         
Ticket OrderSend(Symbol(), OP_SELLLotsBidSlippageStopLossLevelTakeProfitLevel"Sell HL (Magic:" MagicNumber ")"MagicNumber0DeepPink); 
         if(
Ticket 0) { 
            if (
OrderSelect(TicketSELECT_BY_TICKETMODE_TRADES)) { 
                Print(
"SELL order opened : "OrderOpenPrice()); 
                if (
SignalMailSendMail("[Signal Alert]""[" Symbol() + "] " DoubleToStr(BidDigits) + " Open Sell"); 
            } else { 
                Print(
"Error opening SELL order : "GetLastError()); 
            } 
         } 
         if (
EachTickModeTickCheck True
         if (!
EachTickModeBarCount Bars
         return(
0); 
      } 
   } 

   if (!
EachTickModeBarCount Bars

   return(
0); 

//+------------------------------------------------------------------+ 
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 05-18-2006, 08:09 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
[quote=firedave]I don't know if this could solve your problem. This one check for the next bar for entry signal. Hope this help

Thank's Dave,..I'll try it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 05-18-2006, 11:23 AM
harryhid's Avatar
Member
 
Join Date: Feb 2006
Location: Bandung,Indonesia
Posts: 86
harryhid is on a distinguished road
Hallo Dave,

I've tested your code,...unfortunatly it's doesn't really work. If "OneEntryPerBar" is set True than no any trade to make, if "OneEntryPerBar" is set False trede is on, but sometime it doesn't hold the trade until the next bar. Maybe you can give another code to meke it happen. Thank's anyway for your help,...i'm still working a progress here and i'm waiting the improvement from all of you guys,...any set, any code, any comment, just anything...please give your idea here

regards.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code to send email alerts when closed trades... Nicholishen Metatrader 4 7 06-12-2009 07:00 AM
mt4 broker closed my orders?? jackjones General Discussion 2 05-23-2007 03:32 PM


All times are GMT. The time now is 11:38 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.