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
