Hi everyone!
Can you check this indicator? There is a problem when the line inverts: the line for 1 bar is not drawn.
Can you check this indicator? There is a problem when the line inverts: the line for 1 bar is not drawn.
Attached File(s)
I will code your pivot EAs for no charge 28 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} --- {image} - You will receive alert at candle close --- {image} - Write timeframe that you like: 60 (for H1), 240 (for H4) - If you have set 240 means alert will be triggered avery after H4 close if alerting condition are valid. --- ChangeLog: /*-------------------------------------------------------------------- Change-log: WRB-Hidden-Gap-BT_fix MODIFIED:[13-05-2025] By: MwlRCT -------------------------------------------------------------------- - Added `AlertTimeframe` input parameter (extern int, default 60 minutes) to allow users to...Ignored
Disliked{quote} OK, so this is more of a psychological issue, than a coding issue. From my point of view, when I have an idea, I simply sit down and start coding. I have always done it in this way, even when I was just starting my coding adventures and didn't really know what I was doing. I sat down and started "coding", mostly copying existing snippets, and when I was stuck on some problem, my brain was working wild. I would, usually go to sleep with the idea that the answer would come to me, and it always did, somehow. In the morning, I would sit down...Ignored
Dislikedkindly guide how to fix this code for pr = PERIOD_D1 it is not giving desired result extern ENUM_TIMEFRAMES pr; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- indicator buffers mapping ObjectDelete("H10"); ObjectDelete("L10"); ObjectCreate(0,"H10",OBJ_TREND,0,iTime(Symbol(),pr,2),iHigh(Symbol(),pr,2),iTime(Symbol(),pr,1),iHigh(Symbol(),pr,1)); ObjectCreate(0,"L10",OBJ_TREND,0,iTime(Symbol(),pr,2),iLow(Symbol(),pr,2),iTime(Symbol(),pr,1),iLow(Symbol(),pr,1));...Ignored
DislikedHi everyone! Can you check this indicator? There is a problem when the line inverts: the line for 1 bar is not drawn. {image} {file}Ignored
Disliked{quote} 0 is current candle so 0 1 2 denotes candles in history a trend line starting at high of 2 candle in history connecting 1 candle high extending beyond 0 candle same with lows currently it is not connecting exactly on the highest or lowest point of that dayIgnored
Disliked{quote} Thank you for taking the time to respond. So, we conclude that even if the indicator code is correctly written, there are still issues in the offline market. I haven’t tested the solution you mentioned, but I used to manually change the chart’s timeframe to load the data. However, sometimes the problem persisted and nothing appeared on the chart. Perhaps a better solution is to store the data of that timeframe into variables and then use those variables along with custom functions to reach the final result.Ignored
QuoteDislikedSo, we conclude that even if the indicator code is correctly written, there are still issues in the offline market. I haven’t tested the solution you mentioned
QuoteDislikedPerhaps a better solution is to store the data of that timeframe
QuoteDislikedI used to manually change the chart’s timeframe to load the data. However, sometimes the problem persisted and nothing appeared on the chart
Disliked{quote} Thank you, finally it works! Good job! I developed (with Grok support)) an indicator, that rapresents (almost) all the moving averages (advanced e standard). It works well. But it will be great, if you add the "slope-drawing" for all these averages, regardless of the user's choice. The logic of slope, that ia mean, is like in the indicator of Tillson, that you corrected. {file}Ignored
Disliked{quote} That's a very well known feature of MT4. It is plotting correctly, or in other words, it is plotting what you coded. You are taking the price from D1, and the time from D1, and you expect the trendlines to touch at time on H1, but you didn't code it to get the time of the highest high of the specified day on H1, and that's why you aren't getting the picture that you want. Your code will only work the way you want it on D1. In other words, the code has no idea what you desire... The code can only do what you code it to do, and it's doing...Ignored
Disliked{quote} {quote} No, you can explore any potential further issues once you've used the existing solution. You're not the first person to attempt making mtf mt5 indicators that has encountered this issue. {quote} Also no, if the mtf indicator handle can't be made in time then neither will the mtf price info be accessible in the same time, you're back at square 1. {quote} You mentioned you're artificially blocking mt5 internet connection via a firewall restriction, that's not the same as an out of session market, the terminal behavior may not...Ignored
QuoteDislikedYou mentioned you're artificially blocking mt5 internet connection via a firewall restriction, that's not the same as an out of session market, the terminal behavior may not be the same.
QuoteDislikedAlso no, if the mtf indicator handle can't be made in time then neither will the mtf price info be accessible in the same time, you're back at square 1.
//-- Get H1 prices and times
MqlRates h1Rates[];
if(CopyRates(Symbol(), PERIOD_H1, 0, CALC_BARS+MAPeriod, h1Rates) <= 0)
{
int error = GetLastError();
Print("H1 rates copy failed. Error: ", error);
// If we can't get H1 data, we'll try to calculate locally
if(error == ERR_HISTORY_NOT_FOUND || error == ERR_HISTORY_TIMEOUT ||
error == ERR_HISTORY_SMALL_BUFFER || error == ERR_HISTORY_LOAD_ERRORS)
{
// Continue, we'll use our own calculation
}
else return(0);
}
.
.
.
// Calculate MA for each H1 bar
for(int i = ArraySize(h1Prices)-1; i >= 0; i--)
{
h1MA[i] = CalculateMA(h1Prices, h1MA, MAPeriod, i, MAMethod);
} Disliked{quote} so the problem here is that even if i want trendline on high day candle, when i change to h1 or m5 chart, i will need the exact high time on h1 or m5 of that day candle can you code it please, thank you, welcomeIgnored
DislikedI'm trying to create one Button for multiple symbol, but it doesn't work properly. Once the object is created with name (Sell_EURUSD) it's not easy to change it to another Symbol like sell_USDJPY. Any ideas how to do it? Thanks in advanceIgnored
Disliked{quote} wrb wide range bar create fvg / gap/liquidity and hg1 and hg2 show bullish and bearish zone or you can say buy /sell opportunity . Only wrb is not enough to take trade decesion imho for example poi structure supply demand pdarray etc need consider (this is my personal opinion / ptz)Ignored
Disliked{quote} Well, that’s right-once the problem is solved once, the same method can be used for the rest of the cases. I checked the codes on mql5.com, most of them use iCustom, not iMA, iMACD, etc. The conclusion from the codes I reviewed is that they don’t work when the market is closed. Only the code below works in the closed market; it’s actually a kind of combination of iCustom and iRSI: https://www.mql5.com/en/code/24467 But that code also has a problem-when we add a default RSI to the chart, it stops working and no longer functions....Ignored