Once you have Ask - pips (as price fraction) - this works. But on the first pic you have directly "pips (as price fraction)", and because you selected "Dynamic level" it probably places SL somewhere near to 0. Try with "Dynamic digits" (I will replace this word "digits" with "price fraction" in future, but now just to know - it's the same format, something like 0.0010).
Posts made by fxDreema
-
RE: Problem: Block Buy Pending Orders in grid with Formula Resulposted in Bug Reports
-
RE: Modify stop loss to be above open priceposted in Questions & Answers
Try using "once per trade/order" just before the block that modifies SL.
-
RE: Once per Orderposted in Questions & Answers
Pink blocks are to be used with "For each ...." blocks. Read the description of "For each Pending Order" for details.
-
RE: Trailing stop block - level colourposted in Questions & Answers
It works for me (MT4) - but the color is different for this small "-" thing, not the whole horizontal line. That horizontal line cannot be edited, it does not appear in the objects list.
-
RE: Advertsposted in Questions & Answers
I found that this only appears in the local version, I will fix it for the next build.
-
RE: store 2 or 4 points in the pastposted in Questions & Answers
I have to say that I don't understand indicators very well and because of that fxDreema can't create or modify indicators. But if you want to create or modify some indicator you can ask in forexfactory, mql4.com, mql5.com or other forums or websites where there are people willing to do that

-
RE: Advertsposted in Questions & Answers
Haha, me too! But sometimes I miss something. I will check that...
-
RE: Помощ за МА пресичанеposted in Questions & Answers
Ами всъщност направо можеш да използваш Price offset, Adjust не е нужен в случая.
-
RE: Помощ за МА пресичанеposted in Questions & Answers
Ако е избран High, тогава "+0.0005" или "+5pips" трябва да свърши работа. Във втория случай "pips" е ключова дума и се замества там с разни кодове

-
RE: Partial closeposted in Bug Reports
Double )) at the end, it should be only ). Thanks for noticing this, I already fixed it in the web version, it will be on in the next local build

-
RE: "Input" Checkbox In Project Variablesposted in Questions & Answers
When checked, a Variable is actually a Constant - it appears in Inputs list of the EA. But I don't recommend to check these. They exists only because one day I decided to merge Constants and Variables, but this was not a good idea.
-
RE: Custom indicatorposted in Questions & Answers
By the way, normally an EA should work with indicator's buffer(s) and the last project was some kind of hack because for this indicator (in both actually) buffers are useless.
-
RE: Custom indicatorposted in Questions & Answers
__Now you have done it to me. You have opened pandora's box and I love it.
Did I tell you... YOU ARE AWSOME :)[/quote:2szukhc7]Everything can be better, always

-
RE: Semi Martingale with pending ordersposted in Questions & Answers
Something like this, I hope: http://fxdreema.com/shared/c4T7fw43d
This can be made using "on Trade" event as well, but this should work.
The Pass once block is because in backtester there is no last closed trade in the beginning.
"Check last closed trade profit" is ugly inside, sorry for that, I have to beautify it one day.
This is probably not very well done as I created it fast, but it shows some basics and I normally prefer to show how things work instead of creating full EAs. 1 Constant and 1 Variable are used. -
RE: Custom indicatorposted in Questions & Answers
The signal (when all conditions are right) lasts for 1 bar time, because of it's nature, so I used "Once per bar" to filter only the first time that all conditions are right. If different timeframe is used for "Once per bar", it will "reset" at different time - sooner or later - and you will see more arrows in the same candle or more arrows on a different candle.
-
RE: SL or TPposted in Questions & Answers
Again it is hard for me to understand the questions. I hope this helps: http://fxdreema.com/shared/tq6Oyezxc
To put SL at the last low... it should be above Ask price. -
RE: Multiply choice options in an external parameterposted in Questions & Answers
Well, using true/false (or 0/1) is pretty much enough I think. These enumerations are used when multiple choices exists. But I think I will skip this issue from now, mostly because this is not available in MQL4 and now I prefer to work on things that are available in both

-
RE: Custom indicatorposted in Questions & Answers
As I expected, buffers of those indicators cannot be used, but there is a plan B - working with objects: http://fxdreema.com/shared/47PHHoIZc
I used a little bit of this (see where OBJPROP_STYLE is): http://docs.mql4.com/constants/objects/properties -
RE: Multiply choice options in an external parameterposted in Questions & Answers
Where and how do you want to use this, in what cases?

Because if you think about drop-down options in blocks, I don't think it's a good idea for them to be able to be used as input parameters.
-
RE: SL or TPposted in Questions & Answers
I don't fully understand the first question, but I can see your project, and there you use Formula blocks. On the left side you have pips value with option "this value, as is" which means that if you write 20, this means 20. On the left side you have Spread size (ask-bid) - which is the difference between ask and bid prices, let's say something like 0.0002.
Anyway, I don't think you have to use such a calculation at all, because SL and TP are calculated depending on the trade type. For Buy - Ask is used, for Sell - Bid is used.For the second question - the EA itself should work, but it depends what is inside... I can't tell exactly as I don't know what you have doing before. By the way check logs (Journal, Experts) to see if there are some error messages.