Forum

Expert Advisor values from Indicator do not match chart values

Hello. I am trying to code my first Expert Advisor in MQL5, and I am having an issue getting the correct values from indicators, specifically RSI and ATR in my case. This is the code I am using: int atrHandle; int rsiHandle; atrHandle = iATR ( NULL , 0 , ATR_Period); rsiHandle = iRSI ( NULL , 0

Signal Review after Cancelation

I canceled a signal and then went to try to leave a review to warn others, but it seems like you can't leave a reviewer after you are no longer subscribed. I can understand not wanting to let people leave a review who have never subscribed for many different reasons, but am I correct that I can

Lower Minimum Product & Signal Pricing

I know this is probably not a popular opinion, and MQL5 probably had their reasons for raising the minimum price you can charge for a product in the market , but $30 minimum feels too high to me. And for signals I feel like there are many more options available than a flat $30 minimum subscription

Closing Duplicate Charts Problem

I have an expert running on a GBPAUD chart. Its job is to open other charts and apply a template if certain criteria is met for other pairs. Occasionally it will open a chart for the same pair more than once, and so I run a check when each chart is open to close duplicate charts. The problem is that

FIFO Safe Closure

I do not understand why this code is causing an error about a FIFO violation. void CloseAll() { bool resultClose; for ( int i = 0 ; i < OrdersTotal (); i++) { if ( OrderSelect (i, SELECT_BY_POS , MODE_TRADES )) { if ( OrderSymbol () == Symbol ()) { switch ( OrderType

Allow WebRequest for listed URL

Hello, I have an expert and I would like it to make a WebRequest to verify the current version number of the expert, and alert the user if there is a newer version. I am wondering if there is a way to add the URL to the Allow WebRequest from inside the expert. I assume this may be a security issue

Determining Pair Leverage

Hello, I came across an issue calculating the Margin Required for GBPUSD. MT4 says I need $26.42 to open 0.01 Lots, but when I open that position it uses $66.06. I got in touch with Oanda, and they informed me that after Brexit the maximum leverage on GBPUSD for an account in the USA is 20:1, which

Windows doesn't know how to open Market links

Hello, All the sudden my windows computer doesn't know how open MetaTrader. When I click a link in the market, I get a box asking me to select how to open mql4buy. Does anyone know how to set the correct association, so that it will work again? Thanks in advance. All the best, Fred Langemark

Calculating Max Position Size

Hello, I have the following code... maxLots = AccountFreeMargin () / MarketInfo ( Symbol (), MODE_MARGINREQUIRED ); lotStep = MarketInfo ( Symbol (), MODE_LOTSTEP ); maxLots = floor (((maxLots / lotStep) * lotStep) * 100 ) / 100 ; maxLots = NormalizeDouble (maxLots, 2 ); With $1,000 in Free Margin

Does iCustom Stay Active?

I am calling an indicators values in an expert using iCustom . My question is, when I call the indicator using iCustom again, is the previous iCustom call still active, or is it like loading the indicator fresh again? I want to essentially simulate dropping the indicator on a chart, and removing it