NZZ<5) { LZZ[i]=0; RBar=i-MainRZZ;
if(RBar<Pos) RBar=Pos; LBar=i+MainRZZ;
if(i==ArrayMinimum(SM,LBar-RBar+1,RBar)) {
if(ZZ==-1 && SM[i]<SM[NZig]) {
if(i>=Pos+MainRZZ && NZZ<5) LTF[NZZ]=i; LZZ[NZig]=0; LZZ[i]=SM[i];
NZig=i; }
if(ZZ==1) { if(i>=Pos+MainRZZ && NZZ<5) { NZZ++; LTF[NZZ]=i; }
LZZ[i]=SM[i]; ZZ=-1; NZig=i; } }
if(i==ArrayMaximum(SM,LBar-RBar+1,RBar)) {
if(ZZ==1 && SM[i]>SM[NZag]) {
if(i>=Pos+MainRZZ && NZZ<5) LTF[NZZ]=i; LZZ[NZag]=0; LZZ[i]=SM[i];
NZag=i; }
if(ZZ==-1) { if(i>=Pos+MainRZZ && NZZ<5) { NZZ++; LTF[NZZ]=i; }
LZZ[i]=SM[i]; ZZ=1; NZag=i; } } i++; if(i>MaxBar) return; }
nLBZZ=Bars-LTF[5]; LZZ[Pos]=SM[Pos]; return; }
//
void SZZCalc(int Pos) {
int i,RBar,LBar,ZZ,NZZ,NZig,NZag;
i=Pos-1; NZig=0; NZag=0;
while(i<=LBZZ && ZZ==0) { i++; pDn[i]=0; pUp[i]=0; Dn[i]=0; Up[i]=0;
Lmt[i]=0; RBar=i-SRZZ; if(RBar<Pos) RBar=Pos; LBar=i+SRZZ;
if(i==ArrayMinimum(SM,LBar-RBar+1,RBar)) { ZZ=-1; NZig=i; }
if(i==ArrayMaximum(SM,LBar-RBar+1,RBar)) { ZZ=1; NZag=i; } }
if(ZZ==0) return; NZZ=0;
if(i>Pos) { if(SM[i]>SM[Pos]) { if(ZZ==1) {
if(i>=Pos+SRZZ && NZZ<4) { NZZ++; STF[NZZ]=i; } NZag=i;
Dn[i-1]=Open[i-1]; } }
else { if(ZZ==-1) { if(i>=Pos+SRZZ && NZZ<4) { NZZ++; STF[NZZ]=i; }
NZig=i; Up[i-1]=Open[i-1]; } } }
while(i<=LBZZ
//+++
#property copyright ""
#property link ""
//
#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 White
#property indicator_width1 4
#property indicator_color2 Lime
#property indicator_width2 2
#property indicator_color3 Blue
#property indicator_color4 Blue
#property indicator_color5 Blue//C'0,,'
#property indicator_width5 7
#property indicator_color6 Red//C',0,'
#property indicator_width6 7
#property indicator_color7 DodgerBlue//C'0,,'
#property indicator_width7 3
#property indicator_color8 MediumVioletRed//C',0,'
#property indicator_width8 3
//
int SR =3; // = Xard settings (3,21,20,21,3,false,0)
extern int SRZZ =60;//60;//36;//24;//13; // =
int MainRZZ=20;//20; // =
int FP =21;
int SMF =3; // =
bool DrawZZ =false;
int PriceConst=0; // 0 - Close
// 1 - Open
// 2 - High
// 3 - Low
// 4 - (H+L)/2
// 5 - (H+L+C)/3
// 6 - (H+L+2*C)/4
//extern string Prefix="ArrZZx2";
//
double Lmt[];
double LZZ[];
double SA[];
double SM[];
double Up[];
double Dn[];
double pUp[];
double pDn[];
//
int LTF[6]={0,0,0,0,0,0},STF[5]={0,0,0,0,0};
int MaxBar, nSBZZ, nLBZZ, SBZZ, LBZZ;
bool First=true;
int prevBars=0;
//
void MainCalculation(int Pos) {
if((Bars-Pos)>(SR+1)) SACalc(Pos); else SA[Pos]=0;
if((Bars-Pos)>(FP+SR+2)) SMCalc(Pos); else SM[Pos]=0; return; }
//
void SACalc(int Pos) { int sw, i, w, ww, Shift; double sum;
switch(PriceConst) {
case 0:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_CLOSE,Pos);
break;
case 1:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_OPEN,Pos);
break;
/*case 2:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_HIGH,Pos);
break;
case 3:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_LOW,Pos);
break;*/
case 4:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_MEDIAN,Pos);
break;
case 5:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_TYPICAL,Pos);
break;
case 6:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_WEIGHTED,Pos);
break;
default:
SA[Pos]=iMA(NULL,0,SR+1,0,MODE_LWMA,PRICE_OPEN,Pos);
break; }
for(Shift=Pos+SR+2;Shift>Pos;Shift--) { sum=; sw=0; i=0; w=Shift+SR;
ww=Shift-SR; if(ww<Pos) ww=Pos;
while(w>=Shift) {i++; sum=sum+i*SnakePrice(w); sw=sw+i; w--; }
while(w>=ww) { i--; sum=sum+i*SnakePrice(w); sw=sw+i; w--; }
SA[Shift]=sum/sw; } return; }
//
double SnakePrice(int Shift) {
switch(PriceConst) {
case 0: return(Close[Shift]);
case 1: return(Open[Shift]);
/*case 2: return(High[Shift]);
case 3: return(Low[Shift]);*/
case 4: return((High[Shift]+Low[Shift])/2);
case 5: return((Close[Shift]+High[Shift]+Low[Shift])/3);
case 6: return((2*Close[Shift]+High[Shift]+Low[Shift])/4);
default: return(Open[Shift]); } }
//
void SMCalc(int i) { double t, b;
for(int Shift=i+SR+2;Shift>=i;Shift--) {
t=SA[ArrayMaximum(SA,FP,Shift)]; b=SA[ArrayMinimum(SA,FP,Shift)];
SM[Shift]=(2*(2+SMF)*SA[Shift]-(t+b))/2/(1+SMF); } return; }
//
void LZZCalc(int Pos) {
int i,RBar,LBar,ZZ,NZZ,NZig,NZag;
i=Pos-1; NZig=0; NZag=0;
while(i<MaxBar && ZZ==0) { i++; LZZ[i]=0; RBar=i-MainRZZ;
if(RBar<Pos) RBar=Pos; LBar=i+MainRZZ;
if(i==ArrayMinimum(SM,LBar-RBar+1,RBar)) { ZZ=-1; NZig=i; }
if(i==ArrayMaximum(SM,LBar-RBar+1,RBar)) { ZZ=1;NZag=i; } }
if(ZZ==0) return; NZZ=0;
if(i>Pos) { if(SM[i]>SM[Pos]) { if(ZZ==1) {
if(i>=Pos+MainRZZ && NZZ<5) { NZZ++; LTF[NZZ]=i; } NZag=i;
LZZ[i]=SM[i]; } }
else { if(ZZ==-1) { if(i>=Pos+MainRZZ && NZZ<5) { NZZ++; LTF[NZZ]=i; }
NZig=i; LZZ[i]=SM[i]; } } }
while(i<LBZZ
//
30Jan
ByAlexFX
In the dynamic realm of cryptocurrency trading, success hinges not only
Read More21Dec
ByAlexFX
Navigating the Forex markets demands keen insights into trends, a critical
Read More18Dec
ByAlexFX
The Moving Average Convergence Divergence (MACD) has a storied history in
Read More14Dec
ByAnastasiia
Volatility indicators are like traffic lights. Traffic lights tell you when
Read More05Dec
ByAlexFX
In the complex world of forex trading, understanding the relationships between
Read More28Nov
ByAlexFX
Navigating the dynamic expanse of TradingView, a robust online platform, unveils
Read More10Nov
ByAlexFX
Trading in the Forex market isn't confined to trend identification alone,
Read More01Nov
ByEvgen
Navigating the dynamic terrain of Forex trading necessitates a robust technical
Read More31Oct
ByEvgen
In the world of forex trading, which involves the global exchange
Read More28Oct
ByEvgen
The forex market is a dynamic and ever-evolving landscape, offering traders
Read More25Oct
ByEvgen
The realm of forex trading is a constantly shifting and multifaceted
Read More18Oct
ByAlexFX
In the world of Forex trading, the right tools can make
Read More25Sep
ByAlexFX
Description of Candlestick Patterns Candlestick patterns are a fundamental tool in technical
Read More06Sep
ByAlexFX
Description Dive into the depths of the BOS and CHOCH Trading Strategy
Read More04Sep
ByEvgen
In the world of finance, Pivot Points are a powerful tool
Read More21Aug
ByAlexFX
The year offers exciting opportunities for traders, and using the
Read More01Aug
ByAnastasiia
Forex trading has become increasingly popular othe years, attracting individuals eager
Read More19Jul
ByPlatinumTrader
Finding advice and staying informed is essential in today’s volatile Bitcoin
Read More14Jul
ByPlatinumTrader
Traders utilize forex indicators as instruments for market analysis and to
Read More//+++
// eunic-brussels.eu4 NZZ<4) { pDn[i]=0; pUp[i]=0; Dn[i]=0; Up[i]=0;
Lmt[i]=0; RBar=i-SRZZ; if(RBar<Pos) RBar=Pos; LBar=i+SRZZ;
if(i==ArrayMinimum(SM,LBar-RBar+1,RBar)) {
if(ZZ==-1 && SM[i]<SM[NZig]) {
if(i>=Pos+SRZZ && NZZ<4) STF[NZZ]=i; Up[NZig-1]=0; Up[i-1]=Open[i-1];
NZig=i; } if(ZZ==1) { if(i>=Pos+SRZZ && NZZ<4) { NZZ++; STF[NZZ]=i; }
Up[i-1]=Open[i-1]; ZZ=-1; NZig=i; } }
if(i==ArrayMaximum(SM,LBar-RBar+1,RBar)) {
if(ZZ==1 && SM[i]>SM[NZag]) {
if(i>=Pos+SRZZ && NZZ<4) STF[NZZ]=i; Dn[NZag-1]=0; Dn[i-1]=Open[i-1];
NZag=i; } if(ZZ==-1) { if(i>=Pos+SRZZ && NZZ<4) { NZZ++; STF[NZZ]=i; }
Dn[i-1]=Open[i-1]; ZZ=1; NZag=i; } } i++; if(i>LBZZ) return; }
nSBZZ=Bars-STF[4]; return; }
//
void ArrCalc() { int i,j,k,n,z=0; double p, b;
i=LBZZ; while(LZZ[i]==0) i--; j=i; p=LZZ[i]; i--; while(LZZ[i]==0) i--;
if(LZZ[i]>p) z=1; if(LZZ[i]>0 && LZZ[i]<p) z=-1; p=LZZ[j]; i=j-1;
while(i>0) { if(LZZ[i]>p) { z=-1; p=LZZ[i]; }
if(LZZ[i]>0 && LZZ[i]<p) { z=1; p=LZZ[i]; }
if(z>0 && Dn[i]>0) { Lmt[i]=Open[i]; Dn[i]=0; }
if(z<0 && Up[i]>0) { Lmt[i]=Open[i]; Up[i]=0; }
if(z>0 && Up[i]>0) { if(i>1) { j=i-1; k=j-SRZZ+1; if(k<0) k=0;
n=j; while(n>=k && Dn[n]==0) { pUp[n]=Up[i]; pDn[n]=0; n--; } }
if(i==1) pUp[0]=Up[i]; }
if(z<0 && Dn[i]>0) { if(i>1) { j=i-1; k=j-SRZZ+1; if(k<0) k=0;
n=j; while(n>=k && Up[n]==0) { pDn[n]=Dn[i]; pUp[n]=0; n--; } }
if(i==1) pDn[0]=Dn[i]; }
i--; } return; }
//
void deinit() {
return; }
//
int init() { IndicatorBuffers(8);
SetIndexBuffer(0,Lmt);
SetIndexStyle(0,DRAW_ARROW,EMPTY,5); SetIndexArrow(0,);
SetIndexEmptyValue(0,);
SetIndexBuffer(1,LZZ);
if(DrawZZ) {
SetIndexStyle(1,DRAW_SECTION,EMPTY,2);
SetIndexEmptyValue(1,); }
else SetIndexStyle(1,DRAW_NONE);
SetIndexBuffer(2,SA); SetIndexStyle(2,DRAW_NONE);
SetIndexBuffer(3,SM); SetIndexStyle(3,DRAW_NONE);
SetIndexBuffer(4,Up); SetIndexStyle(4,DRAW_ARROW,EMPTY,7);//Green up arrow
SetIndexArrow(4,); SetIndexEmptyValue(4,);
SetIndexBuffer(5,Dn); SetIndexStyle(5,DRAW_ARROW,EMPTY,7);//Red down arrow
SetIndexArrow(5,); SetIndexEmptyValue(5,);
SetIndexBuffer(6,pUp); SetIndexStyle(6,DRAW_ARROW,EMPTY,3);//Green up markers
SetIndexArrow(6,); SetIndexEmptyValue(6,);
SetIndexBuffer(7,pDn); SetIndexStyle(7,DRAW_ARROW,EMPTY,3);//Red down markers
SetIndexArrow(7,); SetIndexEmptyValue(7,); return(0); }//
//
int start() { int counted_bars=IndicatorCounted(); int limit,i,j,n;
if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--;
if(First==true) {
if(SR<2) SR=2; if(Bars<=2*(MainRZZ+FP+SR+2)) return(-1);
if(SRZZ<=SR) SRZZ=SR+1; MaxBar=Bars-(MainRZZ+FP+SR+2);
LBZZ=MaxBar; SBZZ=LBZZ; prevBars=Bars; First=false; }
limit=Bars-counted_bars; for(i=limit;i>=0;i--) { MainCalculation(i); }
if(prevBars!=Bars) { SBZZ=Bars-nSBZZ; LBZZ=Bars-nLBZZ; prevBars=Bars; }
SZZCalc(0); LZZCalc(0); ArrCalc();
/*//////////////////////////
ObjectDelete("tx01");
ObjectCreate("tx01", OBJ_LABEL, 0, 0, 0);
ObjectSetText("tx01", DoubleToStr(pDn,2), 25, "Arial Bold", LimeGreen);
ObjectSet("tx01", OBJPROP_CORNER, 1);
ObjectSet("tx01", OBJPROP_BACK, true);
ObjectSet("tx01", OBJPROP_XDISTANCE, 20);
ObjectSet("tx01", OBJPROP_YDISTANCE, );
*////////////////////////////////////////
return(0); }
//
Rating
Similar orders
Hello, We need a EA that enters trades following price candles and EMA. I have a budget range from 30$ to 50$. Example: when the price closes a number of candles below an EMA it enters short and when the price closes a number of candles above the price it enters long. Entry criteria: ● if a candle crosses above any EMA and it closes above => enter long on the next candle open or after multiple candles closes above it
HI i want to build an indicator to signal buy and sell with an arrow and a text with system alerts and SL\TP lines that i can upload to mql market i want it to take the signal based on 2 indicators : zigzag pivot points zigzag parameters : depth 50 deviation 25 back step 3 pivot points: traditional time frame (current ' 1 min to 1 month) conditions for sell signal : reaching a zigzag's high closing (number) candles
I need an experienced developer who can fix the following errors in a Candlesticks patterns/ VIDYA EA: * Fix Hidden SL & TP (Show trade level at) Number of points to show SL/TP (Auto Hide SL and TP levels: EA should auto hide SL and TP targets immediately trades are taken; SL and TP should only be displayed when price is 20 points (2 pips) away from the hidden level. An input already exist. When Break even has been
Hello, I have a project that might be handled by you My project is I want to create a TradingView indicator that can predict the movement of the next candle, whether it is negative, positive, green or red. The prediction rate should be 60% - 70% as a minimum. I know that it is not possible to predict %, but I need an indicator that has a higher winning percentage. I do not have any suggestions to offer you. You
I need someone to help me with converting from MT4/5 to TradingView? I have a my code for Metatrader and I want to make it available for TradingView. And I want this to be available in the next days
Welcome, I would like to give an order to create same drawing object ( StdDev MT4 ) to TradingView. The drawing object should be same as in MT4 and I need to use it on TradingView, Pine Script Best Regards
I have an existing indicator, I just need someone to modify for me The indicator is called overlay there's a few modifications that I need on it The indicator has a set timeframe it overlays , I need it to give an option where I can click on the chart the timeframe I want to be overlayed . There's also a specific addition which deals with my trading plan so I can't mention it here . Only two additions or
Convert PineScript to MQL5 indicator . It is about lines of pinescript Requirements Specification: - Convert the Smart-Money-Concepts- PineScript indicator in the text file to MQL5 - Ensure that the indicator can be used fully by an expert advisor (usable buffer values etc)
I need someone who can you reprogram a mt4 ea if I send you the file that it works on ctrader. Let me know if you can do this so we can discuss properly, I already attached the file, So check the file out
or example I have opened different charts of symbols (Eur/Usd D1, Gbp/Usd M15, Tesla M15, SPY M1 etc.). When I click on chart symbol square immediately opens multi charts with the same chart. Let say I click on SPY M1 , immediately opens all SPY chart timeframes (only timeframes what's were chosen to show from Timeframes View>Toolbars>Timeframes) charts. So now on all screen I have only Spy M1-W1 charts. Multi
//++ Bookkeeper, , [email protected] v
nest...аналитика форекс gbp кaртa мирa форекс вспомогательные индикаторы форекс как платят налоги трейдеры валютного рынка форекс лучшие индикаторы для входа индикаторы измерения температуры щитовые дмитрий котенко форекс клипaрт для форекс имхо на форексе дц форекс брокер отзывы безрисковая комбинация форекс индикаторы рынка ферросплавов