View Single Post
  #106 (permalink)  
Old 06-01-2006, 11:09 PM
firedave's Avatar
firedave firedave is offline
Senior Member
 
Join Date: Nov 2005
Location: Jakarta, Indonesia
Posts: 414
firedave is on a distinguished road
Quote:
Originally Posted by babarmughal
Hi Dave,

Can you please tell me what are the statements related to your "ONE ENTRY PER BAR" cuz I want to put this option in MACD EA which you made for me.... I mean I want to know that statement do I have to put in EA

Thanks
Babar
Hi Babar, for OneEntryPerBar function I just add this code :

PHP Code:
//----------------------- ONE ENTRY PER BAR
      
if(OneEntryPerBar)
      {
         if(
CheckEntryTime==iTime(NULL,TimeFrame,0)) return(0); else CheckEntryTime iTime(NULL,TimeFrame,0);
      } 
And declare CheckEntryTime before start() function. Hope this help
__________________
David Michael H
"Trader helps traders with sincerity, honesty and integrity"
Reply With Quote