I don't have very much experience with Renko charts and offline charts in general. It should work, you can try it. If something doesn't work, tell me.
Posts made by fxDreema
-
RE: Renko chart tips?posted in Questions & Answers
-
RE: Buy/Sell on bar closeposted in Questions & Answers
When "Once per bar" is at the top, those conditions are checked only once in the first tick of the new bar
-
RE: Closing next candle after signlposted in Questions & Answers
I don't fully understand the question. If you want to get values from particular candles (1st candle, 2nd candle and so on...), use the "Candle ID" parameter. And I can see that you are doing exactly that in the project in your profile. But here I don't understand what -1 means.
-
RE: Trailing stop on last bar's closeposted in Questions & Answers
The error means that SL is 0. SL is used for this particular MM and can't be 0, it must be something.
I touched this project a little bit: https://fxdreema.com/shared/K3KusLlie
So, you calculate all variables once per bar. But then you Buy/Sell at any time in the middle of the candle. The problem is that in the middle of the candle the price moves and eventually the calculated SL levels become wrong. -
RE: i need help with my simple ea helpposted in Questions & Answers
Of course. The price is moving up and down. At one moment MA14 > MA200 and in the very next tick it's the opposite. This is expected.
"Condition" blocks are only "IF" logic, they only compare 2 values. But I feel that you want to do something like this: https://fxdreema.com/demo/mt4-buy-sell- ... conditions
-
RE: Need Help Pending Orderposted in Questions & Answers
By looking at this, I think you need to look at this example: https://fxdreema.com/demo/mt4-wrong-closing-rule
How to detect if a trade is closed by TP? Depends. Under "on Tick" you can check if there are no trades, then to check if the latest closed trade was profitable. Or under "on Trade" you can detect the moment when a trade is closed. But better look at some examples in the Examples page

-
RE: Trailing stop on last bar's closeposted in Questions & Answers
Try something like this: http://prntscr.com/c3gik7
But about the ATR value, put it in a Variable. I named it like "ATRValue" only for the example.
I also think that 2 Trailing Stop blocks must be used, because of the "+" and "-" used for buys and sells -
RE: Buy/Sell on bar closeposted in Questions & Answers
By "block" I think you mean "bar" or "candle". Here is about the "on candle close" problem https://fxdreema.com/help/-/working%20w ... e%20closes
Short answer: use "Once per bar". Here is about this block: https://fxdreema.com/demo/mt4-once-per-bar
-
RE: My first tryposted in Questions & Answers
This doesn't look good for me. First of all, about the pink blocks: https://fxdreema.com/examples/#Loop-(For-each...)
And about the way they are connected... https://fxdreema.com/demo/mt4-wrong-closing-rule -
RE: Trailing Stop Is.... Multiple Levels (minor glitch report)posted in Questions & Answers
-
and 2) I think that dealing with magic numbers and symbol names is not so complicated. They are only values after all
-
Yes, the trailing stop block is like a whole EA. But still, sometimes you need to 2 separate, but almost the same groups of blocks - for the Buy part and for the Sell part. I will eventually find a way to do this with only 1 group of blocks.
-
-
RE: My first tryposted in Questions & Answers
Well, for the most time the EA will decide what lot size and what stops to use. For example, if you try to open 0 lots, it will open the minimum lots (0.01 maybe). Also, if the EA can't create/modify/close some trade/order, it will try few times. If something is not fixable, MetaTrader itself will put error messages in it's log. Otherwise the gray outputs in some blocks are designed to be active in case of error.
-
RE: I can't do a very simple EAposted in Questions & Answers
... and what is the problem, what doesn't happen the way you expect it?
-
RE: Trailing Stop Is.... Multiple Levels (minor glitch report)posted in Questions & Answers
Yes and no. The market name is only one of the parameters, there is also Gropu (which is related to the magic number). You will be able to work with trades from another markets, but only if they are made with the same Group number
-
RE: Trailing Stop Is.... Multiple Levels (minor glitch report)posted in Questions & Answers
Yes, you need to know a little bit of MQL4 here. By adding those ""+ and +"", you have MQL4 code inside. In fact, for all numeric values, their input fields already contain MQL4 code. But this is a string, and you know - strings are different from numeric values with their " ". But in fxDreema those " " are automatically added later and because of that you need to do this trick.
-
RE: My first tryposted in Questions & Answers
Well, the pink "close (partially)" is the only block who can do that and yes, it is part of this ping group of blocks. So you should try to understand them

There is a block called Terminate
-
RE: Trailing Stop Is.... Multiple Levels (minor glitch report)posted in Questions & Answers
I often say that "For each Trade" is needed, but in this case it's not needed. Blue blocks have their loop inside, they have their "For each Trade" inside.
About the spread issue, try to change this "Reference price" option. I'm not 100% sure right now that this will take effect with the Multiple Levels option, but I blieve it will, it should.
Well, you can see that there is 1 field to put multiple values. This value is string value. The string is parsed in the MQL4 code every time the block runs. So yes, changes are possible. But the way to do that is not very straight forward. Now, whatever you write there, it is part of the string. Write the name of some Variable, and it will NOT see the Variable, it will only see it's name. So, a little hack is needed.
If you have this instead:
""+"5/1, 10/6, 15/11"+""... now you have direct MQL4 control. And you can do something like this:
""+"5/1, "+MyVariable+"/6, 15/11"+""... but again, this is not something that I would recommend to do. It just happen to work, but It's ugly. And yes, there is double "" in the beginning and the end. I will not explain why, it just works that way. With single " you will see errors.
The other way is of course to build the string outside the block, to put it in some Variable and then to use this variable for Multiple Levels.
-
RE: Trading with demo account or liveposted in General Discussions
abanob, you can try Real with small money and you will hate the losses the same way. At least this is true for me. When I'm "trading" (I'm such a loser, in reality I'm giving money, not trading), I hate it when I lose every time, no matter the amount. But I'm not sure that this is good, it's not so healthy to be afraid of losses. I don't like the fact that I lost in Forex more than 10 times, now I believe that this is all I can do and I don't even have to try again
