Kl JJ / Publications
Forum
Set an EA to only one symbol
Hello, I would like to use my EA on different symbols on the same MT5 account but I can't because in some parts of the code I used PositionsTotal , or a double openprice but they are focusing on all the symbols on the account. //count open position buy_count = 0 ; sell_count = 0 ; for
Update value every second ONtick()
Hello I'm running an EA on 5min timeframe and my issue is that the values inside the OnTick() section are only updating when a new 5min bar appears. For example I display some values on the label : https://ibb.co/4WdL3Kb and thethe values only update each 5 min. Is there is a way to have an update
trouble to get value with iCustom function
Hello, I'm using this custom indicator : https://www.mql5.com/en/code/14484 I have set the indicator into \MQL5\Indicators\vwap.ex5 I would like to get the value " sDailyStr" (which is the daily vwap price) to use it inside my EA. In my EA code, inside OnTick() I use the iCustom function : double
Problem to add border color to my rectangle
Hello, I have two questions, the first one is : I would like to create a rectangle with border color but the thing I coded didn't work. I would like a yellow border color for example. and The second question is : is there is a way to set the rectangle always on the foreground ? Because my EA draw
POSITION_PRICE_OPEN and POSITION_PRICE_CURRENT always 0.0
Hello, I would like to have the open price and the current price of my open position but when I have a trade the posCurrent and posOpen are always equal to 0.0 Can you help me ? Thank you very much