Love it.
Thank you very much kvak!
Looks like the o should be capitalized, like thisMakarFX wrote: Tue Feb 11, 2025 9:01 pm Dear friend. I can't use this indicator in the advisor as a resource.
I get the error:
2025.02.11 11:57:10.533 2025.01.27 06:00:00 ! optimized trend tracker.ex4 XAUUSD,H1: Alert: You are trying to use renamed or wrapped indicator
2025.02.11 11:57:10.533 2025.01.27 06:00:00 ! optimized trend tracker.ex4 XAUUSD,H1: Alert: The file name must be : ! optimized trend tracker.ex4
This is my code:
#define ind_name "Indicators\\! optimized trend tracker.ex4"
#resource "\\"+ind_name
Please help.
! Optimized trend tracker
Not sure why it is telling you wrong in its response.!There may be a name check inside.mrtools wrote: Wed Feb 12, 2025 1:36 am Looks like the o should be capitalized, like this! Optimized trend tracker
Not sure why it is telling you wrong in its response.!
Yes, I added a name check, almost always do!MakarFX wrote: Wed Feb 12, 2025 2:59 am There may be a name check inside.
But the expert gives a different name when compiling the resource.
Please show the source code of "OnInit()"
Code: Select all
int OnInit()
{
IndicatorBuffers(6);
SetIndexBuffer(0,val, INDICATOR_DATA); SetIndexStyle(0, DRAW_LINE,EMPTY,inpLinesWidth,inpColorNu);
SetIndexBuffer(1,valUa,INDICATOR_DATA); SetIndexStyle(1, DRAW_LINE,EMPTY,inpLinesWidth,inpColorUp);
SetIndexBuffer(2,valUb,INDICATOR_DATA); SetIndexStyle(2, DRAW_LINE,EMPTY,inpLinesWidth,inpColorUp);
SetIndexBuffer(3,valDa,INDICATOR_DATA); SetIndexStyle(3, DRAW_LINE,EMPTY,inpLinesWidth,inpColorDn);
SetIndexBuffer(4,valDb,INDICATOR_DATA); SetIndexStyle(4, DRAW_LINE,EMPTY,inpLinesWidth,inpColorDn);
SetIndexBuffer(5,valc,INDICATOR_CALCULATIONS);
glo.mPer = fmax(inpMaLength,1);
IndicatorSetString(INDICATOR_SHORTNAME,"Optimized trend tracker ("+(string)inpMaLength+")");
if (!checkName()) return(INIT_FAILED);
return(INIT_SUCCEEDED);
}
I ask you to please give me a file without a:
if (!checkName()) return(INIT_FAILED);
This is good
How did you find it?moey_dw wrote: Sat Feb 22, 2025 12:44 pm This is good
You coded it too........ an open source I'm having a go with it today!!
Trend Correlation Strength (TCS) Indicator with EMA Smoothing
I think this is fantastic.. indeed a modern day directional ADX for erratic markets.. i have set smoothing back to nothing (1 period) then inserted a 5 period moving average into it's window and set it to "Previous indicators data" as an additional filter.. I love how you made the code in mql4 and open! I think you have just gifted traders with a potentially game changing indicator and I know Jeff (ionone) will gravitate towards this code too ahaha
Mrtools superb addition to it thank you for adding new functions for us (already!) I just think you forgot to let us change level coloring, seems hard coded on greymrtools wrote: Sun Feb 23, 2025 5:32 pm Trend Correlation Strength (TCS) Indicator with EMA Smoothing