Disliked{quote} Here is an indicator that will draw Horizontal line with price & TF tag with button. Only one problem with "Delete All Objects" code if someone can fix. {file}Ignored
Say something meaningful or Silence!!
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} Here is an indicator that will draw Horizontal line with price & TF tag with button. Only one problem with "Delete All Objects" code if someone can fix. {file}Ignored
Disliked{quote} BEFORE: The loop that iterates over all bars (using Bars) on every call, redundantly recalculating and assigning volumes via repeated slow iVolume function calls, instead of limiting updates to new or changed bars with prev_calculated and directly using the provided volume[] array. --- AFTER:Correct OnCalculate 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[],...Ignored
Disliked{quote} in this case it's better to use a script (scripts folder). You just drag&drop the script onto a chosen candle. {file} {image} the acd indicator is not good for your purpose.Ignored
Disliked{quote} average_price_between_2vlines - draggable lines with an average price text - optional prices to use for averaging: Bodies, full candles, opens, highs, lows, closes {file} {image}Ignored
Disliked{quote} BEFORE: The loop that iterates over all bars (using Bars) on every call, redundantly recalculating and assigning volumes via repeated slow iVolume function calls, instead of limiting updates to new or changed bars with prev_calculated and directly using the provided volume[] array. --- AFTER:Correct OnCalculate 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[],...Ignored
Disliked{quote} Should have mentioned the different price settings with same lengths in the first post. At first glance of your pic the concern is overlapping colors cancelling eachother out, I'm not going to inspect the picture to figure out what settings you're using, having a ma crossover on both high and low is not a common thing. MA_ribbon - v1.2 {image} {file}Ignored
DislikedApologise for the oversight this morning, but here is the OvO version and the EA is still taking trades in the opposite direction. Thanks for checking this out. Hercs. {image}Ignored
Disliked{quote}...re BB ribbon...one copy Maroon ( top band to bottom band) and one copy Green ( top band to bottom band )...Ignored
Disliked{quote} bro you created nice too all OK i appreciate it. is it possible just click button and horizontal price tag open and i can click and drag any place of chart to show price /tag.thanksIgnored
Disliked{quote} How can we tell from your image that the EA is actually taking trades in the opposite direction? Does your EA have any conditions based on the Renko Bar color (direction)? And, if you don't overlay the indicator line, how can we tell that the direction of the line when the trade was taken wasn't the correct one? No to mention the fact that the line can easily redraw, especially when the brick is relatively small. So you would need to observe in real time. And also, what is the brick size in the inputs??? And what are the indicator parameters???...Ignored
Disliked{quote} This is a better screenshot. Secondly, I have placed screenshots marking the entries with incorrect entries, but I am sure you did not see that from what you're asking here. Finally, the EA max spread is 35,000 because I am working in ICMarkets which is a 5 digit platform. The spread is 120.0 but easily reaches 35,000. The Bricksize = 10,000 which you can see in the bottom left corner of the screenshot. The Followline indicator is set to "Single Arrows" as signal mode. Attaching the indicator for your perusal and comments. Looking forward...Ignored
Dislikedhttps://www.forexfactory.com/attachm...6?d=1503245785 in this page i upload master candle.. which take master candle with n number of following candles.. can any one change this to master candle to previous n number of candles.... will be helpfulIgnored
//+------------------------------------------------------------------+
//| Master_Candle.mq4 |
//| SanMiguel, Forex4Noobs forum |
//| |
//+------------------------------------------------------------------+
#property copyright ""
#property link ""
#property indicator_chart_window
extern int MinEngulfCandles = 1;
extern color TopLineColor = clrMediumVioletRed;
extern color BottomLineColor = clrMediumVioletRed;
extern color SizeColor = clrGold;
extern double TextGap = 0.0000;
extern string TextSize = 10;
extern int LineWidth = 2;
extern bool WaitForCandleClose = false;
extern bool IgnoreWick = false;
extern bool SoundAlert = false;
int IndexOffset = 0, PipFact = 1;
datetime LastAlertTime;
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
if (WaitForCandleClose)
{
IndexOffset = 0;
}
else
{
IndexOffset = 1;
}
if(Digits == 3 || Digits == 5)
PipFact = 10;
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
int obj_total=ObjectsTotal();
string name, topLine, bottomLine, Name2;
topLine = Symbol()+"_"+Period()+"_MasterTop_";
bottomLine = Symbol()+"_"+Period()+"_MasterBottom_";
Name2 = Symbol()+"_2_"+Period()+"_MasterTop_";
for(int i=obj_total-1; i>=0; i--)
{
name=ObjectName(i);
if (StringFind(name,topLine,0) != -1 || StringFind(name,bottomLine,0) != -1 || StringFind(name,Name2,0) != -1)
{
ObjectDelete(name);
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int i; // Bar index
int Counted_bars; // Number of counted bars
//--------------------------------------------------------------------
Counted_bars=IndicatorCounted(); // Number of counted bars
i=Bars-Counted_bars-1; // Index of the first uncounted
// always recount the latest possible location for a master candle to be formed
if (i == 0)
{
i = MinEngulfCandles+1; // here 4 +1 =5 agum
}
while (i>MinEngulfCandles-IndexOffset) // && (MinEngulfCandles+IndexOffset < i) ) // Loop for uncounted bars
{
if (isMasterCandle(i))
{
DrawLines(i);
if (i == MinEngulfCandles-IndexOffset+1)
{
if (SoundAlert && LastAlertTime < Time[0])
{
Alert("Master Candle detected on "+Symbol()+" at candle: "+TimeToStr(Time[i],TIME_DATE|TIME_MINUTES));
LastAlertTime = Time[0];
}
}
}
else
{
DeleteLines(i);
}
i--;
}
//----
return(0);
}
bool isMasterCandle(int index)
{
double CandleTop = High[index];
double CandleBottom = Low[index];
for (int h = index-1; h >= index - MinEngulfCandles; h--)
{
if (IgnoreWick)
{
if (Close[h] >= Open[h]) // bull or doji candle
{
if (Close[h] > CandleTop || Open[h] < CandleBottom)
{
return (false);
}
}
if (Close[h] <= Open[h]) // bear or doji candle
{
if (Open[h] > CandleTop || Close[h] < CandleBottom)
{
return (false);
}
}
}
else
{
if (High[h] > CandleTop || Low[h] < CandleBottom)
{
return (false);
}
}
}
return (true);
}
void DrawLines(int index)
{
string TopName = Symbol()+"_"+Period()+"_MasterTop_" + Time[index];
ObjectCreate(TopName, OBJ_TREND, 0, Time[index], High[index], Time[index - MinEngulfCandles], High[index]);
ObjectSet(TopName, OBJPROP_RAY, false);
ObjectSet(TopName, OBJPROP_WIDTH, LineWidth);
ObjectSet(TopName, OBJPROP_COLOR, TopLineColor);
string BottomName = Symbol()+"_"+Period()+"_MasterBottom_" + Time[index];
ObjectCreate(BottomName, OBJ_TREND, 0, Time[index], Low[index], Time[index - MinEngulfCandles], Low[index]);
ObjectSet(BottomName, OBJPROP_RAY, false);
ObjectSet(BottomName, OBJPROP_WIDTH, LineWidth);
ObjectSet(BottomName, OBJPROP_COLOR, BottomLineColor);
string TopName2 = Symbol()+"_2_"+Period()+"_MasterTop_" + Time[index];
ObjectCreate(TopName2, OBJ_TEXT, 0, Time[index], High[index] + TextGap, 0 ,0);
ObjectSet(TopName2, OBJPROP_ANCHOR, ANCHOR_LEFT_LOWER);
ObjectSetText(TopName2, DoubleToStr((High[index] - Low[index]), 2), TextSize, "Century Gothic", SizeColor);
}
void DeleteLines(int index)
{
string TopName = Symbol()+"_"+Period()+"_MasterTop_" + Time[index];
string BottomName = Symbol()+"_"+Period()+"_MasterBottom_" + Time[index];
if (ObjectFind(TopName) == 0 || ObjectFind(BottomName) == 0) // found in main chart window
{
ObjectDelete(TopName);
ObjectDelete(BottomName);
if (SoundAlert)
{
Alert("Master Candle REMOVED on "+Symbol()+" at candle: "+TimeToStr(Time[index],TIME_DATE|TIME_MINUTES));
}
}
}
//+------------------------------------------------------------------+
/*
for ( (int h = index-1; h >= index - MinEngulfCandles; h--)
{
(int k = index+ MinEngulfCandles ; k <= index - MinEngulfCandles; k--) )
{
if (IgnoreWick)
{
if ( (Close[h] >= Open[h]) && // bull or doji candle
(Close[k] >= Open[k]) )
{
if( (Close[h] > CandleTop || Open[h] < CandleBottom) &&
(Close[k] > CandleTop || Open[k] < CandleBottom) )
{
return (false);
}
}
if ( (Close[h] <= Open[h]) && // bear or doji candle
(Close[k] <= Open[k]) )
{
if ( (Open[h] > CandleTop || Close[h] < CandleBottom) &&
(Open[k] > CandleTop || Close[k] < CandleBottom))
{
return (false);
}
}
}
else
{
if( (High[h] > CandleTop || Low[h] < CandleBottom) &&
(High[k] > CandleTop || Low[k] < CandleBottom))
{
return (false);
}
}
}
}
return (true);
}
*/ Disliked{quote} BB_Ribbon - v1.2 - option for full solid single color {image} {file} Defaults with single color green and maroon- {file} {file}Ignored
Disliked{quote} This is a better screenshot. Secondly, I have placed screenshots marking the entries with incorrect entries, but I am sure you did not see that from what you're asking here. Finally, the EA max spread is 35,000 because I am working in ICMarkets which is a 5 digit platform. The spread is 120.0 but easily reaches 35,000. The Bricksize = 10,000 which you can see in the bottom left corner of the screenshot. The Followline indicator is set to "Single Arrows" as signal mode. Attaching the indicator for your perusal and comments. Looking forward...Ignored
Disliked{quote} This is a better screenshot. Secondly, I have placed screenshots marking the entries with incorrect entries, but I am sure you did not see that from what you're asking here. Finally, the EA max spread is 35,000 because I am working in ICMarkets which is a 5 digit platform. The spread is 120.0 but easily reaches 35,000. The Bricksize = 10,000 which you can see in the bottom left corner of the screenshot. The Followline indicator is set to "Single Arrows" as signal mode. Attaching the indicator for your perusal and comments. Looking forward...Ignored