@ilias-0
StringConcatenate(var1, "EURUSD", "c")
This code puts "EURUSDc" into a string variable named var1.
https://www.mql5.com/en/docs/strings/stringconcatenate
Posts made by roar
-
RE: custom codeposted in Questions & Answers
-
RE: Clos All Trades when Equity > Balanceposted in Questions & Answers
@antoniorenar make a constant named factor and then just write that name in the adjust field:
*factorTo optimize from -5% to +20%, for example, use values:
start 0.95
step 0.05
stop 1.20 -
RE: Clos All Trades when Equity > Balanceposted in Questions & Answers
@citiadvisor you want this:
Equity > Balance * 1.05 -
RE: Minimum Volume Infoposted in Questions & Answers
@afgmarkets this bunch of code returns the minimum volume:
SymbolInfoDouble(Symbol(), SYMBOL_VOLUME_MIN)
https://www.mql5.com/en/docs/marketinformation/symbolinfodouble
https://www.mql5.com/en/docs/constants/environment_state/marketinfoconstants#enum_symbol_info_double
However the partial closing bug is not just about minimum volume, but also lack of rounding (or flooring) the number.
You can do the % calculation manually and then just put the code in Custom input field instead of the percent field.This code calculates 33% of your position and then floors the value to nearest hundredth:
MathFloor(PositionGetDouble(POSITION_VOLUME)*0.33 *100)/100 -
RE: Market is closed (10018)posted in Questions & Answers
@afgmarkets if you use mt5, you could just change your broker (fxtm for example) and get 99% quality without messing with custom data.
-
RE: MACD CROSSINGposted in Questions & Answers
@alachi does both happen at the same time or is there a time difference?
For example, the main line could cross at candle 1 and signal line at candle 2.
Candle 0 = current candle, candle 1 = last completed candle, etc..
-
RE: add ATR on TP or SLposted in Questions & Answers
@darazarbaf yes, use the Formula block for the calculation
-
RE: Rsi Divergenceposted in Questions & Answers
@pippusher618 here's an example project:
https://fxdreema.com/shared/2HpRtQ8PbHowever, an EA will sometimes find divergences in unexpected places, because you only see the profitable ones.
-
RE: add ATR on TP or SLposted in Questions & Answers
Yes, just type *1.5 in the adjust field. There's lots of forum posts about this topic
-
RE: My EMA Duplicates when I backtestposted in Questions & Answers
@freeflow you forgot to change MA method to exponential in block #2

-
RE: Can't download ex4 or mql files for a basic account. Please fix this.posted in Bug Reports
@okii downloading doesnt require flash or extensions. I know there is some extension available, but I dont use it. Maybe its outdated.
Try using your browsers incognito mode and also try downloading a completely new project.
-
RE: fx dreemaposted in Questions & Answers
@ali-9
small strategy = free
big strategy = payIf you have more than 10 connections between the blocks, you got to subscribe.
-
RE: Currency exposureposted in Questions & Answers
@l-andorrà thanks. Its not opposite logic here, the yellow just activates after the loop work has finished. So the block first activates orange (for x number of times) and then it activates yellow.
Here's block info:

-
RE: Programmers wanted (again). How can I insert variable symbol names?posted in Questions & Answers
@l-andorrà this block already takes care of it

-
RE: Can't download ex4 or mql files for a basic account. Please fix this.posted in Bug Reports
@ankitrader its not about number of blocks, its number of connections
-
RE: ON Mt4 Strategy Tester: Does speed of Visual mode affect the outcome of the test? And what does the Optimization (Balance, etc) do?posted in General Discussions
@ankitrader speed does not affect.
Optimization can be used to automatically find the best set of inputs. Best MA period, best lot size, best SL and TP, and so on.
Balance, Balance + min drawdown, Balance + Recovery factor, these are used to define what is "best".
-
RE: Execute Trade when EMA = Stoch (Level 80)posted in Questions & Answers
@satoriforex2k18 is using EMA really important here? If you used SMA, you could just get Stoch (1,5,1) because the %D parameter is SMA.
edit: its the %D parameter
-
RE: Execute Trade when EMA = Stoch (Level 80)posted in Questions & Answers
@satoriforex2k18 so you need to apply moving average to stoch data. This is a bit tricky, but can be done with the iMaOnArray function