GreggBazin / Publications
Forum
Take profit or loss at the end of the day
Hi there, I'm a newbie and I have a problem with a part of my code. I would like to close my trade at 21h45 every day, even if the position is positive or negative. Here is my portion of code. I don't understand why it's not working: for ( int cnt= 0 ;cnt< OrdersTotal ();cnt++) {