Forum

OrderSend() - open Buy (instead of sell) or open Sell (instead of buy)

Hey, I experience a strange behavior in one of my EAs. The EA was unable to open a sell order and then opened a buy order instead (also in the wrong symbol!!) and commented it like this: TTT GBPJPY, H1: open #53037131 buy ( instead of sell ) 0.03 CHFJPY at 115.551 sl 115.678 ok (see image below)

iBarShift returns 0 for unknown reason

Hey coders, I experience a strange behavior of my EA at the moment. The EA is a simple range breakout that uses a range based on time. To calculate the range high and low I use this code block: Print ( "Times... " , TimeToStr (startTime), " " , TimeToStr (endTime), " " , TimeToStr (deleteTime), " "