Forum

Help writing an EA to verify previous forex signals

I wrote an EA that gets forex signals from telegram, parses the trade info and submits them. All works well there. I would like to backtest some of the telegram forex signals to see which services work better. I have the telegram channel data parsed and stored in a database and my EA can download

Need to be able to select a live or demo account when using OrderSend in MQL4 script

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