Need to be able to select a live or demo account when using OrderSend in MQL4 script
tradermiles: How do I select which account I am sending my Forex order to?
You log into which ever account you want the terminal attached to. Otherwise, use your program.
I am writing my own script that submits Forex orders. It seems pretty straight forward, but my MT4 has a live and a demo account.
How do I select which account I am sending my Forex order to?
I have a Windows program I bought that can submit orders to MT4 based on which account I choose (Live or Demo), so I know it can be done.
Any suggestions would be appreciated