
Originally Posted by
jezzer1961
That's no problem, Viv. I'm happy to do it but it will have to go to the bottom of my "To Do" list and it might take a week or two before I even get round to looking at it.
I posted a possible solution to your problem, because this was far quicker, and someone else might like to give it a go. I think as well that it might be best to insert an extern bool, to give the option of entering on bar close only or not. What might work on M1 for instance wouldn't necessarily work on other timeframes, so I think it would be better to have the option of both.
Hi jezzer1961 and welcome!

Originally Posted by
Viv108
Thanks jezzer. I have asked Funyoo to have a look, but please keep it on your 'to do' pile incase he is unable to help. I am suer its not a big job. I will let you know if someone else has managed to change the code so it can be taken off your list. Thanks for your help!
Hi Viv108,
At line 137, after "return(0);}", add :
Code:
bool NewBar()
{
if(PreviousBarTime<Time[0])
{
PreviousBarTime = Time[0];
return(true);
}
return(false); // in case if - else statement is not executed
}
At line 84, before ")SELL="true";", add :
At line 83, before ")BUY="true";", add :
At line 55, add :
Code:
datetime PreviousBarTime;