These pending orders are created all at the same time, or each pending order is created at different time and depends on the previous? And what is the sequence, absolutely custom or it follows some formula?
Posts made by fxDreema
-
RE: Custom lots sequence in Pending order?posted in Questions & Answers
-
RE: money management custom betting and balance percentageposted in Questions & Answers
This option only works with times. For example 5 means 5x the previous lot size. And I wrote "previous lot size", which is known, let's say 0.1 lots. Then 5 times that lot equals to 0.5 lots, which it very direct calculation. But let's say you work with % - then you won't use the previous trade's lot size to calculate the next lot size. There must be another order. But most MM methods rely on the lot size of the previous trade.
What you want to do it probably possible, but it doesn't exist in those MM methods. How to make it with blocks... I don't know actually, it's either hard to make with blocks or it can be made in multiple ways. It's most probably hard to make with blocks, because you probably want to use different numbers after profit, after loss.
-
RE: DoubleTOstring and NormalizeDoubleposted in Questions & Answers
I also don't know what is going on with these functions. I'm using them here and there, but still sometimes I got those long numbers even after applying those functions.
-
RE: How to check: Trendline by Angel is selected or is not selected on chart?posted in Questions & Answers
Such property exists - OBJPROP_SELECTED - but I think I never added it to this list - http://prntscr.com/i4nj0c
Anyway, if you know the name of the object, you can do this:
ObjectGetInteger(0, Buy_Trendline, OBJPROP_SELECTED)
screenshot: http://prntscr.com/i4njwdI think this will work, if the actual name of the object is really in this Buy_Trendline variable.
-
RE: Custom blocks seem to be disabledposted in Bug Reports
Sometimes there are extensions in the browser that prevent some of the .js scripts. I don't know exactly why. I wrote pretty much all .js files used in fxDreema and they generally work, but there are extensions that for some reason don't like something in the code.
The last situation - some Norton extension prevented one of my scripts saying that some frames are not allowed... but when I look into the code I don't see any frames (iframe or something related). So even I am confused

-
RE: How do I set trailing stop to existing trade(s) ?posted in Questions & Answers
There is a block for trailing stop, here are the examples about this: https://fxdreema.com/examples#Trailing...
-
RE: Parabolic SAR buy and sell signalposted in Questions & Answers
I answered to this question in email
-
RE: Trend folowing strategyposted in Questions & Answers
Maybe if you show some example that should work, but it doesn't. Those blocks should work.
And what "follow a trendline" means. You see, the EA is just a program and it does exactly what you program it to do. If it needs to compare two values, it compares them. But the term Trend is more complex, so there is no block like "In trend?" or "In range?"

-
RE: Self remove EA or self stop EAposted in Questions & Answers
Something like this?
For each Closed Trade (with "Not more than..." set to 1) -> check age (check the Close time) -> Terminate
-
RE: Help with my EAposted in Questions & Answers
There is a way to show any value on the chart, with the Comment block for example. I don't understand what value do you want to show, because OpenPrice+ClosePrice would be some practically useless value that would always be positive value. Maybe you are talking about the profit of the trade.
-
RE: Money Management Formulaposted in Questions & Answers
The row of code that I posted in the other topic is part of one function that i wrote, in which those calculations take place. I posted this to show the person how the calculation is done.
PipValue() is also a custom function that I wrote. But its contents is kinda crazy and I don't recommend to use it anywhere. There is a reason for it to exist, but it's not to be used from the people.
TickValue equals to this - MarketInfo(symbol,MODE_TICKVALUE), which is also that "Money per tick" option.
Tick size is this code: SymbolInfoDouble(SYMBOL,SYMBOL_TRADE_TICK_SIZE)
But I think that the function PipValue() is nothing like these. I'm very bad with numbers, believe me, and I need to spend hours learning about these pips and values and ticks in order to explain them to you. Somehow I made them to work, but these values are one of these things that I immediately forget after use

-
RE: Custom Block Help -> TypeError : Cannot read property 'trim' of undefinedposted in Questions & Answers
Where is this, in the "Custom" blocks list?
-
RE: How do I accumulate positions and adjust MM for each opened trades?posted in General Discussions
This is very custom MM. I don't even know what to advice you, because it look like the best way would be to write this as a code. It can probably be made with those pink blocks and some Variables, but it will probably be a little bit complicated.
-
RE: Easiest way to measure ADR distance value of price to EMA 240?posted in Questions & Answers
There is also "Check distance" block somewhere. For some reason this block is not used very much, but it's there

-
RE: Trade commentposted in Questions & Answers
I also don't know what these mean, it looks that the broker is putting them there.
The thing with the Comment is that it can be set ONCE when the trade is created. Then it cannot be modified from the EA, but the broker can modify it. The Comment is also the only place where custom data can be put, so the data that you see is this - some custom data used by the software, something on the broker I guess.
Comment is also used to transfer such data when working on Binary Options broker, but then the keyword is "exp", not "so".
Also, in fxDreema if you are placing pending orders with the OCO option, it also puts such custom information to "link" both oders, but then the keyword is "oco" and I use "[", so it is something like "[oco:..]"
-
RE: Trades open then close right awayposted in Questions & Answers
There is common mistake that people do when using "Close trades", which is always hard for me to explain.
Remember that you are placing blocks under "on Tick", which means that they run probably multiple times per second. The layout of blocks normally looks like this - conditions and filters on the top and actions below them. I mean, first you check the environment (indicators, time, trades count and so on) and then you do some action (opening orders, closing orders).
But sometimes people make 2 separate chains of blocks, where at the end of the first one they have "Buy now" and at the end of the second one they have "Close trades". It just happens that for the Condition blocks they are choosing the same rules, so as a result the conditions to reach "Buy now" and the conditions to reach "Close trades" are true at the same time.
So, make sure that the conditions above "Buy now" and the conditions above "Close trades" cannot be true at the same time. And by "conditions" I mean all blocks above "Buy now" and "Close trades", including blocks such as "No trade".
Here is some interesting example that I always show: https://fxdreema.com/demo/mt4-buy-sell-buy-sell-opposite-conditions
Note that I practically use the same "Condition" blocks and "Close trades" stay on top of the Buy and Sell blocks, but because of the settings in blocks 1 and 5 everything works fine. -
RE: Try MT5 version?posted in Questions & Answers
I receive this question over and over again, like "Can I make EAs for MT5?". This is always my answer:
-
RE: plz helpposted in Questions & Answers
Can you upload this again?
But as I always advice... check what values this indicator is giving with the Trace block (https://fxdreema.com/demo/mt4-trace-multiple)

