help
-
Hi,
i'm using this software and founding it very useful! Thanks a lot!
At the moment i'm trying to use the loop function "for each object" looking for a text label with one of the two currency of the actual market symbol.I use easily this function as you explain in the documentation if i have to search for a market symbol (EURUSD) in various labels (EURUSD,USDJPY,EURCHF.. Ecc)
But now i have just label with one currency displaying me the coming news and i dont know how to compare with the market symbol.
The condition EUR==EURUSD it return false.. i would like it return true..Can you help me to resolve it?

Thank you!
Dave -
Can you give more details? How object names looks like (object named EURUSD sounds weird to me, there should be some prefix) and how your blocks looks like?
-
MARKET PROPRIETIES -> SYMBOL (MARKET NAME) give EURUSD.
in fact if i have a label text named EURUSD it find it, but not the labels EUR
......
Schermata 2014-05-21 alle 10.46.19.png
Schermata 2014-05-21 alle 11.01.58.png -
Well, it matches the exact text, this is "==", which means "equal to" or "not different than" or "the same as". Why don't you try with EUR, USD and so on...
I also can admit that in fxDreema blocks for wotking with objects are not really powerful, so let's say that the whole scenario can be made more optimized in some custom block.
The best of all will be if the indicator itself gives you some meaningful information through it's buffers, but I expect that this is real-time-only, so there should not be many performance issues.One of the things I wanted to have when started fxDreema was the ability to use these news, but...

-
Are you able to write a custom block for me or you know someone who can?
The logic is IF Symbol(market name) CONTAINS Object Description (picked in loop) THEN - ELSE
in these way FxDreema can read news!!!
billworld 2008.04.29 21:20 #
stringo:
I've checked your code. It works. More details please
To be clear, in my last post I supplied two code excerpts. The top one which uses StringFind does NOT work but it used to work in earlier versions of MT4. The bottom one which uses StringSubstr DOES work and this is the method I now use to remove objects. No big deal, I just struggled with trying to figure out why StringFind wasn't yielding the expected result until I just decided to go with StringSubstr.i found this here
http://forum.mql4.com/3804Hint for your code
if(StringFind(ObjectName(i),"_tbeg",0)>0)
Your objects should have such names as "1_tbegTrendLine", "XXX_tbegSymbol" and so on. If your objects begin from "_tbeg" then You must change condition
if(StringFind(ObjectName(i),"_tbeg",0)==0)
orif(StringFind(ObjectName(i),"_tbeg",0)>=0)
See http://docs.mql4.com/strings/StringFind. Position begins from 0. So was always.
THANKS
-
I think I have to create some blocks to check the object name or description
This is not new, someone else was asking for this before. But something pops in my mind, I'm not sure, but there was some problem when working with descriptions... or I can be wrong, I'll see. -
Great! With that tweak i'll finish my first EA... About 120 Blocks!! WOW

-
here is what I have just added: http://prntscr.com/3lc8dc
-
wow!!! it seems perfect!
but how can i use it with the desktop version of fxdreema?Thanks again
Dave -
I uploaded build 082, get it now. Tell me if there are problems with this.
-
Thanks for the new build,
i'll test it on Monday when markets open again and i'll let you know if it works!but i have a new doubt.

I've searched on forum how to check and modify BE and Trailing stop but i can't figure out how to do it properly both at the same cycle..for example for trades with RR 1:3
i would like to go to BE (2 pips over open price) when the profit is 33 % of the original TP (so when RR is 1:1)
and Trailing stop will start at 2:1 only if it set the TS-SL over the BE point.. (or under for sells)i tried with this configuration in a loop
but i don't know if is it correct.
In this way probably, when floating RR is like 2,3:1, every time the EA set the BE again and then the Trailing Stop, so it modify the SL two times for every check..I would like the EA check the trailing just for BE trades
and i can't use flags or counters or variables because it check in loop for all markets all open trades..How i can check if the BE (at 2 pips from open price) is already set and then use TS only if it SL goes over BE?
Sorry for the confused explanation...
-
With some custom loop? This is example of simple trailing stop, but something more can be added to this: https://fxdreema.com/demo/mt4-loop-trailing-stop
-
Hi,
i want you to know i resolved both my issues.. Grazie!

regarding the text filter function in "each object", the only way i resolved it is like this
https://dl.dropboxusercontent.com/u/492826/Schermata 2014-06-05 alle 05.04.40.png
if i use only "contains" option it doesen't work... not matter at all..
Now i quite finish my EA but i have a "last" problem:
i would like to use optimization function of MT4 so i use some constants and checked some "inputs parameters for optimizing" box in blocks
but when i try to optimize, MT4 every time, in any EA i created, return me always"There were 64 passes done during optimization, 64 results have been discarded as insignificant" even with 300+ passes..
i've tried with values and constants both integer and boolean but any time optimization doesn't return any results..
Any idea where i have to looking for to resolve it?
Thank you!Dave
-
Hm... it should work only with "contains"

I think that discarded results does not depend on input parameters or the EA contents, maybe for all those passes there is no profitable results? Insignificant probably means that the result is not profitable. Here is something that I found: http://forum.mql4.com/20578
-
ok i've tried like you suggest and unselect "skip useless results" but now i see just one result with no trades.
The strange thing is if i use that inputs parameters, clicking twice on that optimize result, and backtesting just that configuration
it returns a profitable backtest..