Forum

Indicator not working as of today

An indicator I've used to show currency slope strength has stopped working after the market closed today. The indicator is the type that opens up separately below the main chart. I've used this indicator for months on two different computers and for the first time ever, it has stopped showing

What code can be used to close orders at the end of the next bar period?

I am trying to write an EA that will close open order at the end of the next bar and have tried the following for the 4hr period: -------------------------------------------------------------------- datetime a = TimeHour(OrderOpenTimeA); string closestringA; datetime closetimeA; if ( a >= 0 && a < 4