It never gets easier, you just get better
- #62,365
- Jul 14, 2023 11:10pm Jul 14, 2023 11:10pm
- | Commercial User | Joined Aug 2019 | 2,246 Posts | Online Now
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
Dislikedhello, all dear member , who know this indicator ? with alert ? {image}Ignored
Disliked{quote} One question kd1... Can it work everyday at the same time without needing to be reattached? Also I have a genius idea to make this EA work perfectly. I think it is only 1% left until it reach 100%. In the EA setting, there are start hour and start min. Please add start seconds. What is it used for? The following is an example case of why we need it. Hope it explained it clearly. E.g. if I set start trading at 18:37:05, it will place stop order 5 seconds after the opening of candle 18:37 (in this case use 1 min timeframe). The open price...Ignored
Dislikedhello, all dear member , who know this indicator ? with alert ? {image}Ignored
//+------------------------------------------------------------------+
//| zigzag-pointer.mq4 |
//| zigzag modified|
//| MOD. 1|
//+------------------------------------------------------------------+
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 Blue
#property indicator_width1 3
#property indicator_color2 Red
#property indicator_width2 3
//---- indicator parameters
extern int ExtDepth =118; //115://105;//21;
extern int ExtDeviation =130; //130;//120;//24;
extern int ExtBackstep =80; //80; //70; //14;
//---- indicator alerts
extern bool alertsOn = true;
extern bool alertsMessage = true;
extern bool alertsSound = true;
extern bool alertsEmail = false;
extern bool alertsOnMobile = true;
extern string alertsSoundFile = "alert.wav";
//---- indicator buffers
double ZigZagUp[];
double ZigZagDown[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
IndicatorBuffers(2);
//---- drawing settings
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0, 233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1, 234);
//---- indicator buffers mapping
SetIndexBuffer(0,ZigZagUp);
SetIndexBuffer(1,ZigZagDown);
SetIndexEmptyValue(0,0.0);
SetIndexEmptyValue(1,0.0);
//---- indicator short name
IndicatorShortName("ZigZag("+ExtDepth+","+ExtDeviation+","+ExtBackstep+")");
//---- initialization done
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
int shift, back,lasthighpos,lastlowpos;
double val,res;
double curlow,curhigh,lasthigh,lastlow;
for(shift=Bars-ExtDepth; shift>=0; shift--)
{
val=Low[Lowest(NULL,0,MODE_LOW,ExtDepth,shift)];
if(val==lastlow) val=0.0;
else
{
lastlow=val;
if((Low[shift]-val)>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=ZigZagUp[shift+back];
if((res!=0)&&(res>val)) { ZigZagUp[shift+back]=0.0; }
}
}
}
ZigZagUp[shift]=val;
//--- high
val=High[Highest(NULL,0,MODE_HIGH,ExtDepth,shift)];
if(val==lasthigh) val=0.0;
else
{
lasthigh=val;
if((val-High[shift])>(ExtDeviation*Point)) val=0.0;
else
{
for(back=1; back<=ExtBackstep; back++)
{
res=ZigZagDown[shift+back];
if((res!=0)&&(res<val)){ ZigZagDown[shift+back]=0.0; }
}
}
}
ZigZagDown[shift]=val;
}
// final cutting
lasthigh=-1; lasthighpos=-1;
lastlow=-1; lastlowpos=-1;
for(shift=Bars-ExtDepth; shift>=0; shift--)
{
curlow=ZigZagUp[shift];
curhigh=ZigZagDown[shift];
if((curlow==0)&&(curhigh==0)) continue;
//---
if(curhigh!=0)
{
if(lasthigh>0)
{
if(lasthigh<curhigh)
{
ZigZagDown[lasthighpos]=0;
}
else ZigZagDown[shift]=0;
}
//---
if(lasthigh<curhigh || lasthigh<0)
{
lasthigh=curhigh;
lasthighpos=shift;
}
lastlow=-1;
}
//----
if(curlow!=0)
{
if(lastlow>0)
{
if(lastlow>curlow)
{
ZigZagUp[lastlowpos]=0;
}
else ZigZagUp[shift]=0;
}
//---
if((curlow<lastlow)||(lastlow<0))
{
lastlow=curlow;
lastlowpos=shift;
}
lasthigh=-1;
}
}
for(shift=Bars-1; shift>=0; shift--)
{
if(shift>=Bars-ExtDepth) ZigZagUp[shift]=0.0;
else
{
res=ZigZagDown[shift];
if(res!=0.0) ZigZagDown[shift]=res;
}
}
}
//end// Disliked@hanover, Will you or anyone who is good at coding, be able to code this MT4 easyOrder for MT5 please? Seems its very easy to use and user friendly. https://www.forexfactory.com/thread/...ines-with-risk Thank you!Ignored
Disliked{quote} Hey kd1 and coders please i need a horizontal line that can measure 5pips movemebt on a 1hour candle. When the 1st 1hr candle close as GREEN and the next candle turns out to be GREEN i need a horizontal line that will appear on this next candle to mark out 5pips .Thanks {image}Ignored
Disliked{quote} We can add the Seconds option in the EA also there is no need to apply the EA again on chart,once you put the EA it will always place the trades when the time window met the input parametersIgnored
Disliked{quote} Mate, I m little slow in English, pls make the requirement more clear , I mean what exactly you want to achieve by plotting the hlIgnored
Disliked{quote} Thanks kd1 its a kind of ENTRYPOINT for a strategy im currently using on 1hr this is an extract from the strategy in a thread here.I only want some kind of indicator that can mark out 5pips in the candle. Just to make it more clearer herer is the extract of the strategy and a screenshot of 1HR. {image} {image}Ignored
DislikedHi, KD1, Can you please help to add alert sound to mt4 default Parabolic SAR indicator. The alert should be at the display of the first dot of Parabolic SAR for buy or sell. Example on image below. Attached Files: {image}Ignored