This worked until a couple of weeks ago.
If anyone can fix it, I will sure appreciate it.
Thanks
If anyone can fix it, I will sure appreciate it.
Thanks
Attached File(s)
Can anyone fix the swing alerts indicator? 0 replies
Can anyone help to fix this Pip-count indicator? 5 replies
Can Anyone fix the Repaint problem of NonLegdot Indicator?--? 0 replies
Can anyone fix Pivot points sunday calculations? 5 replies
Can anyone fix this EA? 7 replies
DislikedThis worked until a couple of weeks ago. If anyone can fix it, I will sure appreciate it. Thanks {file}Ignored
DislikedThis worked until a couple of weeks ago. If anyone can fix it, I will sure appreciate it. Thanks {file}Ignored
Disliked{quote} (since those are hardcoded to work on the IP they are downloaded to)you shall find the source code of it posted on quite aIgnored
Disliked{quote} Hi Mladen, Do you mean that compiler track IP or identify IPs ? Could you en-light me or post a link where I could have infos on that? Thanks a lot. Happy trading. Tomcat98Ignored
Disliked{quote} That is done only when something is downloaded from mql market placeIgnored
DislikedDear Mladen or Any expert please to fix this simple indicator which only works in the old version of mt4 but not in the latest built. It is a very useful picture is attached, Obliged for any help. Thanks the logic is in this old post. https://www.mql5.com/en/forum/143783 {image}{file}Ignored
Disliked{quote} Hi libra_reserv, This is not the right spot to ask for an indicator fix. I suggest you to go to : `I will code your EAs and Indicators for no charge` but anyway , here it is. Happy trading Tomcat98{file}Ignored
//+------------------------------------------------------------------+
//| 3BarsStrike Extended Version |
//| Copyright 2024, Enhanced Conditions |
//+------------------------------------------------------------------+
#property strict
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_plots 2
// Plot 1 - Buy Signals
#property indicator_type1 DRAW_ARROW
#property indicator_color1 clrLimeGreen
#property indicator_width1 2
#property indicator_label1 "Buy Signal"
// Plot 2 - Sell Signals
#property indicator_type2 DRAW_ARROW
#property indicator_color2 clrRed
#property indicator_width2 2
#property indicator_label2 "Sell Signal"
//--- Input Parameters
input int ArrowDistance = 15; // Distance from high/low in points
input bool EnableAlerts = true; // Enable/disable alerts
input bool EnableSound = true; // Enable/disable alert sounds
input int MinRedCandles = 3; // Minimum consecutive red candles for buy (3-6)
input int MaxRedCandles = 6; // Maximum consecutive red candles for buy
input int MinGreenCandles = 3; // Minimum consecutive green candles for sell (3-6)
input int MaxGreenCandles = 6; // Maximum consecutive green candles for sell
//--- Global Variables
datetime lastAlertTime;
int validatedMinRed, validatedMaxRed, validatedMinGreen, validatedMaxGreen;
//--- Indicator Buffers
double BuySignalBuffer[];
double SellSignalBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int OnInit()
{
// Validate and set candle count parameters
validatedMinRed = MathMax(3, MathMin(MinRedCandles, 6));
validatedMaxRed = MathMax(validatedMinRed, MathMin(MaxRedCandles, 6));
validatedMinGreen = MathMax(3, MathMin(MinGreenCandles, 6));
validatedMaxGreen = MathMax(validatedMinGreen, MathMin(MaxGreenCandles, 6));
// Set arrow codes
PlotIndexSetInteger(0, PLOT_ARROW, 233); // Up arrow
PlotIndexSetInteger(1, PLOT_ARROW, 234); // Down arrow
// Set buffers
SetIndexBuffer(0, BuySignalBuffer);
SetIndexBuffer(1, SellSignalBuffer);
// Set empty value
SetIndexEmptyValue(0, EMPTY_VALUE);
SetIndexEmptyValue(1, EMPTY_VALUE);
// Initialize buffers
ArrayInitialize(BuySignalBuffer, EMPTY_VALUE);
ArrayInitialize(SellSignalBuffer, EMPTY_VALUE);
// Indicator settings
IndicatorSetInteger(INDICATOR_DIGITS, _Digits);
IndicatorSetString(INDICATOR_SHORTNAME, "3-6BarsStrike");
return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
//| Checks for consecutive red candles |
//+------------------------------------------------------------------+
bool CheckRedCandles(int index, const double &close[], const double &open[], int count)
{
for(int i = 1; i <= count; i++)
if(close[index+i] > open[index+i]) return false;
return true;
}
//+------------------------------------------------------------------+
//| Checks for consecutive green candles |
//+------------------------------------------------------------------+
bool CheckGreenCandles(int index, const double &close[], const double &open[], int count)
{
for(int i = 1; i <= count; i++)
if(close[index+i] < open[index+i]) return false;
return true;
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
// Check for minimum bars (need at least MaxBars+1)
int requiredBars = MathMax(validatedMaxRed, validatedMaxGreen) + 1;
if(rates_total < requiredBars) return(0);
// Set the starting bar index
int start;
if(prev_calculated == 0)
{
start = requiredBars - 1;
ArrayInitialize(BuySignalBuffer, EMPTY_VALUE);
ArrayInitialize(SellSignalBuffer, EMPTY_VALUE);
}
else start = prev_calculated - 1;
// Ensure we don't process the same bar multiple times
if(start >= rates_total - 1) return(rates_total);
// Main processing loop
for(int i = start; i < rates_total - requiredBars; i++)
{
// Reset current values
BuySignalBuffer[i] = EMPTY_VALUE;
SellSignalBuffer[i] = EMPTY_VALUE;
// Check for new bar (real-time detection)
bool newBar = (i == rates_total - requiredBars);
// BUY Signal: 1 Green + (3-6 Red) Candles
if(close[i] > open[i]) // Current green
{
// Check for configured number of consecutive red candles
for(int redCount = validatedMinRed; redCount <= validatedMaxRed; redCount++)
{
if(CheckRedCandles(i, close, open, redCount))
{
BuySignalBuffer[i] = low[i] - (ArrowDistance * _Point);
if(EnableAlerts && newBar && time[i] > lastAlertTime)
{
lastAlertTime = time[i];
Alert("BUY Signal (", redCount+1, "-bar pattern) on ", Symbol(),
" ", TimeToString(time[i]), " (", _Period, ")");
if(EnableSound) PlaySound("alert.wav");
}
break;
}
}
}
// SELL Signal: 1 Red + (3-6 Green) Candles
if(close[i] < open[i]) // Current red
{
// Check for configured number of consecutive green candles
for(int greenCount = validatedMinGreen; greenCount <= validatedMaxGreen; greenCount++)
{
if(CheckGreenCandles(i, close, open, greenCount))
{
SellSignalBuffer[i] = high[i] + (ArrowDistance * _Point);
if(EnableAlerts && newBar && time[i] > lastAlertTime)
{
lastAlertTime = time[i];
Alert("SELL Signal (", greenCount+1, "-bar pattern) on ", Symbol(),
" ", TimeToString(time[i]), " (", _Period, ")");
if(EnableSound) PlaySound("alert.wav");
}
break;
}
}
}
}
// Force chart redraw for real-time updates
if(prev_calculated > 0) ChartRedraw();
return(rates_total);
}
//+------------------------------------------------------------------+ This pattern suggests that the market may be preparing to break out in the direction of Bar 3, often within the next 2–3 candles.
How Traders Use It
Customization Features
Disliked{quote} The 3-Bar Strike indicator for MetaTrader 4 is designed to detect a specific price action pattern that can signal potential trend reversals or breakout opportunities. It’s based on a method popularized by traders like Linda Bradford Raschke, and it’s often used on daily charts to anticipate volatility in the next few candles.What the 3-Bar Strike Indicator Shows It identifies a three-candle formation with these characteristics: Bar 1: A candle with a defined high and low. Bar 2: An inside bar—its high and low are within the...
Ignored
Disliked{quote} Well i don't think i used the appropriate name for it, but basically i wanted to make this indicator for binary option which follows this two patterns, and making the arrow indicator was in purpose to automate it, it's good indicator for forex aswell as i heard. i hope someone can help me fix it or rewrite the code or somethingIgnored
Even platforms that looked professional often operated offshore, making legal recourse nearly impossible. Regulators like the SEC, CFTC, FCA, and ASIC have issued repeated alerts warning investors to stay away.