Forum

What is wrong with iFractals

Hello. I am trying to implement the iFractals and there's something definitely wrong with it. Due to the fact that I can not get the proper result on my own code, I tried to use the example from the documentation https://www.mql5.com/en/docs/indicators/ifractals I just copied and pasted the code and

Calculate technical indicator on custom array

Hello. I'd like to calculate a technical indicator in MQL5 based on the custom values array, i.e. an analogue of the iRSIOnArray(), iBandsOnArray(),etc. I could not find any info about how to do it and the blocks in the main article about migration to MQL5 are blank regarding these functions in

Free Margin

Hello. I have a question regarding the AccountFreeMargin () function. Genrally you can open new positions unless the Margin level is >100%, i.e. free margin >0. But many brokers still have a delay between time when the order was sent and time when the order was opened. While the AccountFreeMargin ()

OrderSelect behaviour

In the manual it is said that The OrderSelect() function copies order data into program environment and all further calls of OrderClosePrice() , OrderCloseTime() , OrderComment() , OrderCommission() , OrderExpiration() , OrderLots() , OrderMagicNumber() , OrderOpenPrice() , OrderOpenTime()

LimitOrder turned into MarketOrder without visual sign

Hello. I've faced with a strange problem in my terminal. The logic of the EA is based on placing the Limit orders and deleting them in case of changing the market conditions. In the 99.9% of cases it worked and works ok but today I got an error #3( ERR_INVALID_TRADE_PARAMETERS) when was trying to

Buffers recalculation

I have a bit modified code of the fractals indi and it shows only those ones that've never "met" the price. //----Fractals up bFound= false ; dCurrent=High[i]; if (dCurrent>High[i+ 1 ] && dCurrent>High[i+ 2 ] && dCurrent>High[i- 1 ] && dCurrent>High[i- 2 ]) {

Return shift by...?

Hello, guys. First of all, sorry for future stupid questions or parts of code may be, because I'm just learning MQL4. So I'm trying to make it work a code that could define which price of two prices was the last by price to visit. I.e. I have two rectangles and want the indi to calculate the edge of