Page 1799 of 2170
Re: MT4 Indicator requests and ideas
Posted: Wed Mar 15, 2023 4:53 am
by mrsn76
mrtools wrote: Wed Mar 15, 2023 3:03 am
It's a renamed decompiled solar wind.
I found this indicator from the topics in this site content with this name,this indicator not mine, ı dont know before name or etc.
ı just wanna ask anyone can add this wish ?
Re: MT4 Indicator requests and ideas
Posted: Wed Mar 15, 2023 12:07 pm
by kenshin281180#
Hello fellow traders I was wondering if @mrtools or @Kvak could help with this code for identifying wedges. I'm no coder and was wondering if at all possible that either of you could take a look and see if it can be completed. Here is the code below....
Code: Select all
#property indicator_chart_window
#property indicator_buffers 7
// Input parameters
input bool BullishFallingWedge = true;
input bool BullishRisingWedge = true;
input bool BearishFallingWedge = true;
input bool BearishRisingWedge = true;
// Indicator buffers
double BearishFallingWedgeTopBuffer[];
double BearishFallingWedgeBottomBuffer[];
double BearishRisingWedgeTopBuffer[];
double BearishRisingWedgeBottomBuffer[];
double BullishFallingWedgeTopBuffer[];
double BullishFallingWedgeBottomBuffer[];
double BullishRisingWedgeTopBuffer[];
double BullishRisingWedgeBottomBuffer[];
// Indicator calculation function
int start()
{
// Loop through the bars on the chart
for(int i = Bars - 1; i > 2; i--)
{
// Bearish Falling Wedge pattern
if(BearishFallingWedge)
{
double resistanceLine = High[i];
double supportLine = Low[i];
int resistanceCount = 0;
int supportCount = 0;
bool found = false;
// Loop through the previous bars to check for the pattern
for(int j = i - 1; j > 0; j--)
{
if(High[j] >= resistanceLine && Low[j] > supportLine)
{
resistanceCount++;
resistanceLine = High[j];
supportLine = Low[j];
}
else if(Low[j] <= supportLine && High[j] < resistanceLine)
{
supportCount++;
resistanceLine = High[j];
supportLine = Low[j];
}
else
{
break;
}
if(resistanceCount >= 2 && supportCount >= 2)
{
found = true;
break;
}
}
// If the pattern is found, plot the lines
if(found)
{
BearishFallingWedgeTopBuffer[i] = resistanceLine;
BearishFallingWedgeBottomBuffer[i] = supportLine;
}
}
// Bearish Rising Wedge pattern
if(BearishRisingWedge)
{
double resistanceLine = High[i];
double supportLine = Low[i];
int resistanceCount = 0;
int supportCount = 0;
bool found = false;
// Loop through the previous bars to check for the pattern
for(int j = i - 1; j > 0; j--)
{
if(High[j] >= resistanceLine && Low[j] > supportLine)
{
resistanceCount++;
resistanceLine = High[j];
supportLine = Low[j];
}
else if(Low[j] <= supportLine && High[j] < resistanceLine)
{
supportCount++;
resistanceLine = High[j];
supportLine = Low[j];
}
else
{
break;
}
if(resistanceCount >= 2 && supportCount >= 2)
{
found = true;
break;
}
}
// If the pattern is found, plot the lines
if(found)
{
BearishRisingWedgeTopBuffer[i] = resistanceLine;
BearishRisingWedgeBottomBuffer[i] = supportLine;
}
}
// Bullish Falling Wedge pattern
if(BullishFallingWedge)
{
double resistanceLine
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 6:51 am
by dwenblade
Dear Mr Tools / Expert Coders
Please Can you add MTF option to this ...
Thank you
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 9:31 am
by Chickenspicy
May Mrtools please add a htf option but only for 1hr
specifically 1 hr , thank you!
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 10:04 am
by mrtools
dwenblade wrote: Thu Mar 16, 2023 6:51 am
Dear Mr Tools / Expert Coders
Please Can you add MTF option to this ...
Thank you
Added mtf, but when you show the lines I get this, so not sure.
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 10:07 am
by Chickenspicy
mrtools wrote: Thu Mar 16, 2023 10:04 am
Added mtf, but when you show the lines I get this, so not sure.
try to change the width of the lines sometimes that fixes it but idk this time
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 10:32 am
by kvak
Chickenspicy wrote: Thu Mar 16, 2023 9:31 am
May Mrtools please add a htf option but only for 1hr
specifically 1 hr , thank you!
Look here
mtf HA smoothed
Only for 1 hr timeframe, you mean hard coded only 1 hour?
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 10:35 am
by Chickenspicy
kvak wrote: Thu Mar 16, 2023 10:32 am
Look here
mtf HA smoothed
Only for 1 hr timeframe, you mean hard coded only 1 hour?
OOOO thank you !!!! that works too
i thought it would be easier and smoother if there was only one option because you dont have to pick it
all the user would have to do is edit the time in the code for their specific timeframe
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 1:19 pm
by dwenblade
mrtools wrote: Thu Mar 16, 2023 10:04 am
Added mtf, but when you show the lines I get this, so not sure.
Thanks Mr Tools .. Can you please share it .. I mainly needed it to use the Broken zones MTF .. It is ok even if the lines do not work .. those lines are only meant to indicator minor trend change ....
Re: MT4 Indicator requests and ideas
Posted: Thu Mar 16, 2023 1:40 pm
by mrtools
dwenblade wrote: Thu Mar 16, 2023 1:19 pm
Thanks Mr Tools .. Can you please share it .. I mainly needed it to use the Broken zones MTF .. It is ok even if the lines do not work .. those lines are only meant to indicator minor trend change ....
Posted it
here