Forum

Last order profit/loss

How do I code my EA to collect the last closed order's profit/loss? I can track the p/l for live orders, and if I close the order, I can collect the data... but if the system closes the order... for whatever reason... I don't know how to collect the data. Chuck

close a group of open orders

//+-------- if the series meets profit targets... close the series--------------------------------------------------------+ if (((profit > target_profit)) ) { for (cnt= 0 ;cnt<total;cnt++) { if ( OrderSelect (cnt, SELECT_BY_POS, MODE_TRADES)){

mql4 clickable buttons

Can someone share with me simple code for mql4 to have a clickable button on a forex chart that when clicked places a market order? If not the code, where to go to research. All my searches send me to mql5

Binary Options Robot

I want to write a Binary Options Robot. How do I do that

Writing an EA for Binary Options

I want to program my own Binary Options trading robot. I have learned a bit of MQL4. Where do I go to learn how to program a Binary Options robot? Can you use MQL4 to do it? How does the ea interface with the Options platform

Programming Binary Robots

I've programmed a few simple EA's for MT4 using MQL4. Now I want to dabble with Robots for Binary broker platforms. I know you can buy robots that will trade on your Binary platform, but I want to create my own. I can't find any help on the internet. Can anyone direct me where to go to learn how

arrows; is there a way to batch them?

Is there a way to "batch" enter arrows onto a chart? say from and excel spread sheet. Or is the only way to excruciatingly put them in one at a time, or wait for the extreemly slow process of the visual mode? The tester spits out in a short time all the orders etc. in a nice report that can be

timing code

How do I write a code to prevent a trade between a certain time span? Example: I want to enter the time of a certain news announcement. (Daily Fx lists announcement times in GMT... I think) My broker is GMT + 2 hours. And I am in Mountain Time Zone in USA. So, I would like to input the date of the

Trading the news.

Is there a way to access news dates and times in the MT4? For instance, I want to NOT trade around EUR/USD news releases ... maybe an hour before and an hour after... or so. Or do I just need to created my EA so I can manually enter the news release dates and times... I could do that at the start of

quick channel

I am using quick channel that I down loaded from https://www.mql4.com/go?http://www.mt4i.com/quickchannel.aspx I have discovered how to have the sending broker ea send all the data that I want to the receiving broker ea. However, once received, I do not know how to break it back up into individual