Hi!!

Need help please!!

I am new to programming. . .and I am trying to earn an EA...
It works fine if I place a cross country condition to close an order...

. . .but...

I would like to tell the EA to close an open order in the close of the current bar....

How can I do it??

If I utilize shut[0] or iClose function. . .it seems backtesting it shuts my order in the tick close and not in the bar close....

I would like to tell the EA this kind of thing. . .for example:
in case my market condition is fulfilled. . .close the order in the close of the current bar

anyone can tell me how I can do it??

Thanks a lot!!