I have an idea that could be a little wired, but maybe can be useful. What do you think about calculate the velocity that a bar is creating? I mean, calculate the number of pips one bar is created. Is something existing on this field?
I don't know if this is interesting or not..but is an idea I get for renko bars. Depends of time on creating a renko bar, could be important enter into market in this direction or not. What is your opinion on that?
Renko bars are not standard charts and they depend on the software that generates it. It means, it depends 100% on how some software generates those chart. Your idea might work on one version of renko chart and will not work on another simply because the charts are not standardized and we can not count that all the properties will be the same
PS: what is sure is that it is not possible to reconstruct the time for bar generation from past data under the 1 minute time resolution (metatrader does not have tick data that would allow that)
Thank you mladen,
Ok, I get it. Is it a good idea do it for regular chart? With a normal price (without renko bars..) or do you think it's useless?
Thank you again!
Good afternoon mrtools:
As always please apologize my English.
Look at the picture, there were two operations in the same candle, although correct system operation, it should not produce.
You can change the system so that this does not occur.
Thank you very much.
Is AllowOnlyOneActiveTrade set to true and what are the settings for bar and vol.barToUse parameters?
Also, did you get disconeceted at any time (no connection message) from your broker (as I remeber you once had an invalid account error and that can happen only if a broker invalidates (expires) your account while you are working - maybe you were getting disconected while working too). That you can check in the log file
Good afternoon mladen:
Excuse my English please.
Deputy all requests, if you need anything else let me know.
Thank you very much for your attention.
Only now saw that it was one order opened then closed and then a new order was opened on that same order. If I understand correctly you want to allow only one order opened per bar. The problem with renko charts is that in your case it "pretends" to be a 2 minute chart and that way it artificially "tells" to the EA that the bar duration is 2 minutes. Changed the code and as far as I see it should work OK on renko chart too now
Also one option is activated now : the AllowMultipleTradesOnBar. If it is set to true, it will allow multiple orders on the same bar (what happened to you). If it is set to false (default) then it will disable multiple orders on the same bar (opened - if an order was closed on a certain bar and it was opened on another bar it will allow that - it is done so in order to allow orders CloseOnTrendChange option is set to true otherwise it would not be possible to do that). Try it out
Thank you so much mladen.
I'll check results and I'll expose them.
Have a nice time
Could you add divergence on this indicator ?
Here you go. Divergences added to it
Thanks a lot, seems efficient.
Your name is not Mladen, its