Simple Trade Opening Script
I'm trying to work with MqlTradeRequest to make a simple script that just opens an order. I simply copied and pasted the script from the mql documentation, but it's not working for me. The MqlTradeRequest and MqlTradeResult don't highlight pink when I type them. I'm getting lots of errors, I imagine most of which have to do with it not recognizing the MqlTradeResult ('MqlTradeRequest' - undeclared identifier). This wouldn't have anything to do with a difference with mql4 and mql5 would it? What would the problem be?
It seems to highlight pink when I post here, but not on my MetaEditor. If its a problem with the version, how would I do this in mql4?
- docs.mql4.com
I'm trying to work with MqlTradeRequest to make a simple script that just opens an order. I simply copied and pasted the script from the mql documentation, but it's not working for me. The MqlTradeRequest and MqlTradeResult don't highlight pink when I type them. I'm getting lots of errors, I imagine most of which have to do with it not recognizing the MqlTradeResult ('MqlTradeRequest' - undeclared identifier). This wouldn't have anything to do with a difference with mql4 and mql5 would it? What would the problem be?
It seems to highlight pink when I post here, but not on my MetaEditor. If its a problem with the version, how would I do this in mql4?