Forum

Marketinfo error in IBFX Live server

Hi, I have an EA that uses Marketinfo function to get ask, bid, point and digits. I use it in 2 IBFX demo accounts, without any issue, since 07-04-2013. I tried today to use it in my live (mini) account and the EA does not work, because the Marketinfo function gets "0" for all values. I tryed to use

Is it possible to save array info?

Hi, I would like to know if there is any way of storing array data info, that can be accessed in the fututre. I have an EA that stores values in arrays and I want that those values are always accessible, even when I have to re-initialize metatrader. As I understand, and correct me if I'm wrong, MT4

How can you limit the number of orders in each bar?

Hi, I´m coding my system,and I´m having some problems trying to limit the number of open orders for each bar. In my system, the decision is made in the opening of a new bar, and if the conditions aren´t perfect, the EA should only reanalyse in the opening of next bar. I´ve tryed Volume[0] > 10, but

How not to open an order if you already have an order in the vicinity?

Hi, I´m trying to learn MQL4 and I can´t figure out how to avoid buying if you already an open buy order less than 25 pips away, for both sides, or open a sell order if you have another sell order less than 25 pips away. Can anyone help me to code this? Thanks, J Fonseca

I need EA for my system

Hi, I´m new here and I have made up a system that I would try in a demo account inInterbankFX, but I don´t know how to do the EA for it. Can someone please help me on this? Cable (charts=30 min) RSI>50 and 5WMA>50WMA BUY RSI<50 and 5WMA<50WMA SHORT All orders are Stop And Reverse, except the 60