Forum

iBands on Array for MQL5

I am trying to calculate iBandsOnArray for MQL5 but i am only able to get the middle line value in my expert my upper and lower line keep giving me wrong values i think the problem is from the standard deviation if i can get a standard deviation function that i can apply to the current bb mid value

Change Fibonacci Level descriptions

How can i change description of fibonacci levels with code

EA Runs DIfferently On Multiple Pairs

I created an EA, with no symbol restriction at all, it works well in backtest on any pair but in demo account when i have it on EURUSD and other pairs, only EURUSD works correctly it is a grid system that opens buy and sell trades at the same time when on other pairs it starts well but as sequence

how do i place an arrow anywhere on chart?

i want to plot an arrow on my chart but am only able to put it below or above a candle, how can i align it to top left or right corner ObjectCreate ( 0 , "signal2" + Symbol ()+objName, OBJ_ARROW , 0 , 0 , 0 ); ObjectSetInteger ( 0 , "signal2" + Symbol ()+objName, OBJPROP_YDISTANCE ,50);

My MT5 Indicator does not update in BackTest

i made a custom indicator in MT5, it works well on live or demo chart but when i backtest, it just stops updating from current candle and remains at 0 till end of test but all previous candles will have values for the indicator in the image above, test started at that red line for ( int

Can i manage received signal with EA

Can i limit the lot size opened on my MT4 when it receives signal from an mql5 signal provider if lot my platform wants to open is 1.0, can i use EA to modify this lower

Click my screen with user32 dll

Hello, please i am looking for a way to click any part of my screen with x and y co-ordinate, i have seen the PostMessageA function but i can only find commands that affect the MetaTrader platform i will like the click to affect the window on display, if my browser is showing and the EA clicks, it

Oscillator stops 10 candles early MQ5 code

I coded a basic price calculation for an MT5 oscillator and it calculates correctly you can see after the second vertical line, the value is 0 to the end the problem i have is that it stops 10 candles early and i really dont know why it does this

Array out of range error

when i call the attached indicator during run time like this: double buff[]; CopyBuffer (hHandle, 0 , 0 , Bars ( _Symbol , _Period ),buff); double UL = buff[ Bars ( NULL , 0 )- 1 ]; CopyBuffer (hHandle, 1 , 0 , Bars ( _Symbol , _Period ),buff); double UD = buff[ Bars ( NULL , 0 )- 1

HTTP Request Problem

I coded a HTTP request to get news figures from a webpage it works properly and keeps updating for some time but when i leave it on my VPS over night, it stops updating the next day until i place it on chart again then it updates what could be the cause of this