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 ?
I found this indicator from the topics in this site content with this name,this indicator not mine, ı dont know before name or etc.
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
Added mtf, but when you show the lines I get this, so not sure.dwenblade wrote: Thu Mar 16, 2023 6:51 am Dear Mr Tools / Expert Coders
Please Can you add MTF option to this ...
Thank you
try to change the width of the lines sometimes that fixes it but idk this timemrtools wrote: Thu Mar 16, 2023 10:04 am Added mtf, but when you show the lines I get this, so not sure.
Look here mtf HA smoothedChickenspicy wrote: Thu Mar 16, 2023 9:31 am May Mrtools please add a htf option but only for 1hr
specifically 1 hr , thank you!
OOOO thank you !!!! that works tookvak 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?
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 ....mrtools wrote: Thu Mar 16, 2023 10:04 am Added mtf, but when you show the lines I get this, so not sure.
Posted it heredwenblade 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 ....