@gabrielebrignoli
I'm not customer service, but are you absolutely sure you have the correct syntax?
It looks like the correct argment here is Ask(Symbol())
Posts made by roar
-
RE: MQL5 Files cannot be compiled anymore/impossibile to make some custom indicator workposted in Bug Reports
-
RE: Can we create neural network EA from fxDreema?posted in Questions & Answers
Yes, I guess, if you use custom block.
But fxdreema doesn't really have anything that directly supports neural networks, so everything would have to be custom - you could as well do it outside fxdreema. -
RE: the most effective scalp plan to have a constantly profit of 4-6 pips(fOREx).posted in General Discussions
@tony-1 This is a very large and controversial topic, but here's some general thoughts
- If you trade intraday, focus on most volatile periods -> most important is to maximize candle size / spread ratio, this is critical for long term profitability
- For scalping purposes, go against (weak) trend but don't go against momentum (this is just me)
- Don't try to win every trade, try to get your average entry on positive. Using mt5 netting mode is a big help on this
- Your EA has the advantage of monitoring the market 24/5, so there is no need to use fixed SL and TP - optimize the exits just like you optimize your entries -> closing buys when a sell entry happens is logically not a bad idea
- Your most important developing tool is backtesting. Sketch up some idea -> test it -> if it is a clear failure -> try something radically different -> don't try to polish shit
-
RE: Testing out Swap, can't get it to workposted in Questions & Answers
That function should work...
Check my test: https://fxdreema.com/shared/TGLf2UFI
Maybe your SwapLong is type bool, int or something else - it should be double.Use this to return the swap on current symbol:
SymbolInfoDouble(Symbol(),SYMBOL_SWAP_LONG); -
RE: 2019.10.11 20:21:25.225 2019.10.11 15:59:59 TESTING EURUSD,H1: Expert Advisor self terminatedposted in Questions & Answers
@hanssolow
Check the journal messages before that one, there is usually some hint.
Probably some endlesss loop / stack overflow / division by 0 -
RE: How to keep a running total of profit/loss once EA has startedposted in General Discussions
https://fxdreema.com/shared/yRzNNgC3b
This will show profit from current trades. Combine it with loop "for each closed trade" to find total profit.
Remember to reset the variable totalprofit before beginning new calculations
-
RE: Possible bug in positioning candle in 'future' candlesposted in Bug Reports
@fxdreema you should make a sticky post in all forum categories:
"How to ask for help
- what have you tried
- what is the goal
- the problem in most simple form
- etc.
otherwise support is not guaranteed. "
Edit: I'm referring to this lol
-
RE: Reference to candle price (setting an id for candle maybe? )posted in Questions & Answers
Use a variable target_ID
- At beginning set target_ID as 10
- On every new candle, target_ID = target_ID+1
Now the ID changes as time passes, but the reference candle stays the same.
-
RE: syntax error - please help - thxposted in Questions & Answers
@bates
When comparing, use double equal:
if(strStopRun=="1") -
RE: Compilation Error Messageposted in Questions & Answers
@alphaandy Glad it worked!
There's another solution - not using those tick boxes at all, to get the values visible on mt4. Instead, you can declare some constants and use them. You can freely name your constants, use same constant in multiple blocks, and they will always show up on mt4.
Import this to your builder to see how I made the constants:
0_1570358144834_x.mq4 -
RE: Compilation Error Messageposted in Questions & Answers
@alphaandy
Did you try to edit the heading like this:

The grey part is the block ID, the EA uses that ID to process the logic. Spaces will mess up the code, so replace them with underscores.
In any case, I think it is safer to modify the text on the green part, that does not play any role in the actual logic process. Just right-click to get that Edit title button:

-
RE: Ea enum constantposted in Questions & Answers
@fabien-s
Just declare the constant as type ENUM_APPLIED_PRICE

https://docs.mql4.com/constants/indicatorconstants/prices

-
RE: Choppy, sideways marketsposted in Questions & Answers
There's lots of options... ADX is sort of designed to find trends.
Another nice option is to move to a higher timeframe and using RSI.
M30 market is usually choppy when D1 RSI is in 45-55 area.Eurusd seems to have a choppy nature most of the time - I'd just design my whole system to take advantage of the sideways moves, and limit risk when market enters to a stable trend.
-
RE: EA using fractalsposted in Questions & Answers
Using ID0 on the daily filter shouldn't be a problem in this case.
This is a slight problem:

You see, when candle ID 2 has no fractal, then its value is 0, which is below candle high. This will mess up your last_fractal variable and so on.
Since we know that fractals (up and down) have value 0 when there are no fractals, we don't have to compare price at all to find the fractals - simply use "fractal down != 0" and "fractal up != 0" as your blocks #51 and #52
-
RE: Problem scaling outposted in Questions & Answers
Hi @marianomartinez!
You can find more loop functions in the standard condition block. Specifically, you can make condition "current volume equals initial volume". Hope it works

https://fxdreema.com/shared/v86Sbv8nb

-
RE: Struggling to Add, Test and use an EA.posted in Questions & Answers
- Open your data folder with Ctr+Shift+D

- Navigate to MQL4/Experts. Put your .ex4 file to the Experts directory.
- Back in your terminal, press Ctrl+N to open your Navigator.

- Refresh the Expert Advisors list, and your EA should show up
- Now you can drag and drop the EA to any chart or strategy tester (Ctrl+R to open tester)
- Open your data folder with Ctr+Shift+D
-
RE: Trying (and failing) to create a simple EA...appealing to all FXDreema gurus!posted in Questions & Answers
Hi. I'm just dropping here without knowing all the details of the project, but in general I have found out that backtests with some 50 trades contain zero information on actual profitability. You should test longer periods to get more reliable results. My rule of thumb is at least 200 trades per test.
In my opinion, mt5 has a far better environment for developing and backtesting, but unfortunately that is too big a transition for most people..
-
RE: How to include library?posted in Questions & Answers
Hey @fxdreema, could you please shed some light on the library compability? Being able to use the statistical library would be equivalent to anabolic steroids for my projects

-
RE: Problem Calculate Profits in Open Price (METATRADER 5), Image+codeposted in Questions & Answers
I have no idea how those trade buckets work. Maybe trading costs makes the difference.
I would just use a variable and a loop to calculate any information. It's easier to troubleshoot:
https://fxdreema.com/shared/eOts10xOc