Forum

Trying to set Variable as Label Text

I am trying to pass a variable (Count) as the Text of my Label. Whenever I try to use any Variable as the Text is just shows "0". If I pass a number or text then it works just fine. I am sorry if this is simple but I am new to MT5, on MT4 I used to do it all the time no problems. Label(

Previous iRSI

Hello, I am new to MT5, shifting over from MT4 and I am having some issues with last candle values on an indicator. My EA looks to see if the 1H RSI of the last candle is higher than 4H RSI of the last candle. I am wanting to know how to get the RSI of last candle similar to the MT4 way

Indicator help

Hello, I have an indicator which works fine but it draws fib lines and to get the fib values in my EA I am using ObjectGetDouble. This makes backtesting painfully slow since it has to draw the object every time. After many failed attempts at changing the EA and using another way in the EA to grab

Problems with iCustom

Hello I am having issues with grabbing data from an indicator and saving/using that in a multi currency EA. I made loops and used array's for each currency and the numbers all come in and work but every tick or update on timer a few of the values are duplicates of the preceding currency's value. I

Changing Pending Order OR Getting the Trigger Price

Hello, I am trying to Modify or Delete the old Order and Create a new Order for a Pending order if prices moves in my favor giving me a better entry price. Initially I want to open a BuyStop 5pips above the current Ask. Then if price moves lower keep reducing the gap maintaining a 5 pip gap. If

Creating Array using IF

I am trying to create a string array based on an ENUM that I created for a drop down list. The enum and drop down list work fine. When I create an Array based on the enum selected that's when I run into problems. enum ENUM_BASKET { USD= 0 , //USD EUR= 1 , //EUR GBP= 2