// Default tick event handlervoidOnTick() {
// Check for new renko brickstaticdatetime dtBrickTimeCurrent = WRONG_VALUE;
staticdouble dbBrickOpenCurrent = WRONG_VALUE;
datetime dtBrickTimePrevious = dtBrickTimeCurrent;
double dbBrickOpenPrevious = dbBrickOpenCurrent;
dtBrickTimeCurrent = iTime( _Symbol, _Period, 0 );
dbBrickOpenCurrent = iOpen( _Symbol, _Period, 0 );
bool bNewBrickEvent = ( dtBrickTimeCurrent != dtBrickTimePrevious ) ||
( dbBrickOpenCurrent != dbBrickOpenPrevious );
// React to a new brick event and handle it.if( bNewBrickEvent ) {
// Detect if this is the first tick received and handle it./* For example, when it is first attached to a chart and
the brick is somewhere in the middle of its progress and
it's not actually the start of a new brick. */if( dtBrickTimePrevious == WRONG_VALUE ||
dbBrickOpenPrevious == WRONG_VALUE ) {
// Do something on first tick or middle of brick ...
} else {
// Do something when a normal brick starts ...
};
// Do something irrespective of the above condition ...
} else {
// Do something else ...
};
// Do other things ...
};
EA achieved best results on Renko Chart. Renko Chart is not mine but I used it to write EA on it. EA can trade every pair but I got best results on GBP/USD and EUR/JPY. I'll appreciate any comments.
There's a problem: the Renko (0) doesn't change colour when it goes from high to low (blue to red) or from low to high (red to blue). Is this an error or is it just the way it is?
Thank you for providing this indicator! It's the most effective Renko indicator I've found for MT5 and it works perfectly.
I have one question. Is it feasible to make a small visual adjustment so that the bricks connect at the corners? Currently, there is a small gap between each brick. Could it be adjusted to look something like the configuration in the attached image?
can someone help me i'm using renko, i'm making a robot using renko and medias my problem is that my orders are not launched at the opening of the new box. example: my strategy gave a signal to open a sell order at the price of 124500 but the real asset that sends the orders entered the order 124300, it's as if renko was late with the chart of the real asset.
Guilherme, congratulations on your code – it’s been a great help to me. However, I’d like to ask for your help: I’m trying to use your code on the UT100, UK100 and a few other assets, but I’m not having any luck. I’m doing everything exactly the same as I do for the other assets, which work fine, but with these ones it doesn’t work at all. I’d like to know if you have any tips to help me. Thanks
Guys, Guilherme replied to me by email. He gave me this solution:
"You can play the opening timestamp in the volume"
I'll try it here.
The following material can be very useful:
Forum on trading, automated trading systems and testing trading strategies
I want to place an order at the beginning of a new candle in Renko chart.
Fernando Carreiro, 2023.02.13 11:29
Adapting EA robots to trading on custom renko charts in MetaTrader 5 - Trading Systems - 29 May 2018 - Traders' Blogs (mql5.com)
Code Base
Renko Scalper
Adam Pogorzelski, 2011.12.19 11:19
EA achieved best results on Renko Chart. Renko Chart is not mine but I used it to write EA on it. EA can trade every pair but I got best results on GBP/USD and EUR/JPY. I'll appreciate any comments.Thank you for providing this indicator! It's the most effective Renko indicator I've found for MT5 and it works perfectly.
I have one question. Is it feasible to make a small visual adjustment so that the bricks connect at the corners? Currently, there is a small gap between each brick. Could it be adjusted to look something like the configuration in the attached image?
Thanks!
Chris
Automatic translation applied by the moderator.
@87280 #: Obrigado! Chris
Automatic translation applied by the moderator.
In this forum, please comment in Portuguese. Use the automatic translation tool or comment in one of the forums in another language.
How to get free applications from the code base: