EURUSD - Trends, Forecasts and Implications (Part 2) - page 579

 
Vlad72:

what is that turkey at the very bottom?
is it possible to use it?

Files:
sdl.mq4  4 kb
 
rustein:


The indicator won't load, it says:Error HTTP 404.3 - Not Found
The requested page could not be displayed due to extension configuration. If the page is a script, add a handler. If a file needs to be uploaded, add a MIME map.

Probably due to a server move.

Email me at пожалуйста:exprom@mail.ru

 
//+------------------------------------------------------------------+
//|                                                          SDL.mq4 |
//+------------------------------------------------------------------+

#property indicator_separate_window
#property indicator_level1 0
#property indicator_levelcolor DimGray 
#property indicator_buffers 2 
#property indicator_color1 Green
#property indicator_color2 Red
#property indicator_width1 2
#property indicator_width2 2

//---- input parameters 

extern int       period=13; 
extern int       method=0;                        
extern int       price=0;   
                        
//---- buffers 
double Uptrend[];
double Dntrend[];
double ExtMapBuffer[]; 


//+------------------------------------------------------------------+ 
//| Custom indicator initialization function                         | 
//+------------------------------------------------------------------+ 
int init() 
{ 
    IndicatorBuffers(3);  
    SetIndexBuffer(0, Uptrend); 
    //ArraySetAsSeries(Uptrend, true); 
    SetIndexBuffer(1, Dntrend); 
    //ArraySetAsSeries(Dntrend, true); 
    SetIndexBuffer(2, ExtMapBuffer); 
    ArraySetAsSeries(ExtMapBuffer, true); 
    
    SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);
    SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2);
    
    IndicatorShortName("SDL"); 
    
    return(0); 
} 

//+------------------------------------------------------------------+ 
//| Custor indicator deinitialization function                       | 
//+------------------------------------------------------------------+ 
int deinit() 
{ 
     
    return(0); 
} 

 
double WMA(int x, int p) 
{ 
    return(iMA(NULL, 0, p, 0, method, PRICE_CLOSE, x)-iMA(NULL,0,p,0,method,PRICE_OPEN,x));    
} 

//+------------------------------------------------------------------+ 
//| Custom indicator iteration function                              | 
//+------------------------------------------------------------------+ 
int start() 
{ 
    int counted_bars = IndicatorCounted(); 
    
    if(counted_bars < 0) 
        return(-1); 
                  
    int x = 0; 
    int p = MathSqrt(period);              
    int e = Bars - counted_bars + period + 1; 
    
    double vect[], trend[]; 
    
    if(e > Bars) 
        e = Bars;    

    ArrayResize(vect, e); 
    ArraySetAsSeries(vect, true);
    ArrayResize(trend, e); 
    ArraySetAsSeries(trend, true); 
    
    for(x = 0; x < e; x++) 
    { 
        vect[x] = 2*WMA(x, period/2) - WMA(x, period);        
 
    } 

    for(x = 0; x < e-period; x++)
     
        ExtMapBuffer[x] = iMAOnArray(vect, 0, p, 0, method, x);        
    
    for(x = e-period; x >= 0; x--)
    {     
        trend[x] = trend[x+1];
        if (ExtMapBuffer[x]> ExtMapBuffer[x+1]) trend[x] =1;
        if (ExtMapBuffer[x]< ExtMapBuffer[x+1]) trend[x] =-1;
    
    if (trend[x]>0)
    { Uptrend[x] = ExtMapBuffer[x]; 
      if (trend[x+1]<0) Uptrend[x+1]=ExtMapBuffer[x+1];
      Dntrend[x] = EMPTY_VALUE;
    }
    else              
    if (trend[x]<0)
    { 
      Dntrend[x] = ExtMapBuffer[x]; 
      if (trend[x+1]>0) Dntrend[x+1]=ExtMapBuffer[x+1];
      Uptrend[x] = EMPTY_VALUE;
    }              
    
  
    }
    
    return(0); 
} 
//+------------------------------------------------------------------+ 
Vlad72:


The indicator won't load, it says:Error HTTP 404.3 - Not Found
The requested page could not be displayed due to extension configuration. If the page is a script, add a handler. If a file needs to be uploaded, add a MIME map.

Probably due to a server move.

Email me at пожалуйста:exprom@mail.ru

 
rustein:


Thank you very much, it looks cool at first glance.
 

I would like to hear Galina's comments :-)

 
antoniofx:

I would like to hear Galina's comments :-)

Today I saw Galina on another clone of the forum (I'm not kidding), she and Stranger can't understand why there are so few people on the forum,

When I get there for some unknown reason, I tell them what's going on in this instance of the forum ...

once again, this is not a joke...

 
OlegTs:

I saw Galina on another clone of the forum today (I'm not kidding), and she and Stranger can't understand why there are so few people on the forum,

When I get there for some unknown reason, I tell them what's up with this instance of the forum...

once again, this is not a joke...


I would like to know the address of this forum (if it is not a secret)
 
There is no secret, until dns are updated some people will have an old version, this is the first time I got here today)))
 
OlegTs:


I've got multicurrency, I'm in a bad situation, probably it will close with a pullback loss on EURUSD (I mean the downwards trend), but I hope this loss will not change anything ...

But yes, EURUSD is going down, if the dollar index corrects, and if it doesn't, it's a flat, but it's not going up, that's for sure...

Man, I can't insert a picture, it shows the word "Image" in an empty frame, I insert it as a file...

no use, am I the only one with these glitches?

Attempt number 2:

hooray!!!, pasted

U menya pohozhih indikatora azh dve shtuki....

Odin napisal sam (koneshno negramotno), a drugoi skachal

A vasho simply super.... Tak napisat u menya ne poluchitsya

Podelites pozhaluista...

Indikatory prilagayu

//+------------------------------------------------------------------+
//| Money_STAR.mq4 |
//| HomeTrader |
//| mailbake@mail.ru |
//+------------------------------------------------------------------+


#property copyright "Hometrader"
#property link "mailbake@mail.ru"

#property indicator_separate_window
#property indicator_buffers 7
#property indicator_color1 Red
#property indicator_color2 Yellow
#property indicator_color3 White
#property indicator_color4 Green
#property indicator_color5 Aqua
#property indicator_color6 Purple
#property indicator_color7 Brown


extern int period_1 = 13 ;
extern int period_2 = 55 ; ;
extern int Shift = 1 ;
extern int EUR = -14104 ;
extern int GBP = -12734 ;
extern int AUD = 1827 ; extern int AUD = 602 ; extern USD = 602 ; extern GBP = -734 ; extern GBP = -12734;
extern int USD = 602 ;
extern int CAD = 6201 ;
extern int CHF = 8691 ;
extern int JPY = 9492 ; extern int JPY = 9492 ;


double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
double ExtMapBuffer7[];

//+------------------------------------------------------------------+
//| Custom indicator initialisation function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);

SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);
SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);
SetIndexBuffer(3,ExtMapBuffer4);

SetIndexStyle(4,DRAW_LINE);
SetIndexBuffer(4,ExtMapBuffer5);

SetIndexStyle(5,DRAW_LINE);
SetIndexBuffer(5,ExtMapBuffer6);

SetIndexStyle(6,DRAW_LINE);
SetIndexBuffer(6,ExtMapBuffer7);


IndicatorShortName("Money_STAR("+period_1+", "+period_2+")");

SetIndexLabel(0, "EUR");
SetIndexLabel(1, "GBP");
SetIndexLabel(2, "AUD");
SetIndexLabel(3, "USD");
SetIndexLabel(4, "CAD");
SetIndexLabel(5, "CHF");
SetIndexLabel(6, "JPY");

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int limit;
int counted_bars=IndicatorCounted();

//---- check for possible errors
if(counted_bars<0) return(-1);
//---- last counted bar will be recounted
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

//---- main loop
for(int i=0; i<limit; i++)
{
//--EUR----------------------------------------------------
double p1 = MarketInfo("EURGBP",MODE_POINT);
double EURGBP = iMA("EURGBP",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p1;

double p2 = MarketInfo("EURUSD",MODE_POINT);
double EURUSD = iMA("EURUSD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p2;

double p3 = MarketInfo("EURCAD",MODE_POINT);
double EURCAD = iMA("EURCAD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p3;

double p4 = MarketInfo("EURCHF",MODE_POINT);
double EURCHF = iMA("EURCHF",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p4;

double p5 = MarketInfo("EURJPY",MODE_POINT);
double EURJPY = iMA("EURJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p5;

double p6 = MarketInfo("EURAUD",MODE_POINT);
double EURAUD = iMA("EURAUD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p6;

//--GBP-----------------------------------------------------

double p7 = MarketInfo("GBPUSD",MODE_POINT);
double GBPUSD = iMA("GBPUSD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p7;

double p8 = MarketInfo("GBPCAD",MODE_POINT);
double GBPCAD = iMA("GBPCAD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p8;

double p9 = MarketInfo("GBPCHF",MODE_POINT);
double GBPCHF = iMA("GBPCHF",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p9;

double p10 = MarketInfo("GBPJPY",MODE_POINT);
double GBPJPY = iMA("GBPJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p10;

double p11 = MarketInfo("GBPAUD",MODE_POINT);
double GBPAUD = iMA("GBPAUD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p11;


//--AUD-------------------------------------------------------------

double p12 = MarketInfo("AUDUSD",MODE_POINT);
double AUDUSD = iMA("AUDUSD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p12;

double p13 = MarketInfo("AUDCAD",MODE_POINT);
double AUDCAD = iMA("AUDCAD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p13;

double p14 = MarketInfo("AUDCHF",MODE_POINT);
double AUDCHF = iMA("AUDCHF",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p14;

double p15 = MarketInfo("AUDJPY",MODE_POINT);
double AUDJPY = iMA("AUDJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p15;

//--USD-------------------------------------------------------------

double p16 = MarketInfo("USDCAD",MODE_POINT);
double USDCAD = iMA("USDCAD",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p16;

double p17 = MarketInfo("USDCHF",MODE_POINT);
double USDCHF = iMA("USDCHF",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p17;

double p18 = MarketInfo("USDJPY",MODE_POINT);
double USDJPY = iMA("USDJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p18;

//--CAD-----------------------------------------------------------------

double p19 = MarketInfo("CADCHF",MODE_POINT);
double CADCHF = iMA("CADCHF",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p19;

double p20 = MarketInfo("CADJPY",MODE_POINT);
double CADJPY = iMA("CADJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p20;

//-- CHF------------------------------------------------------------------

double p21 = MarketInfo("CHFJPY",MODE_POINT);
double CHFJPY = iMA("CHFJPY",0,1,Shift,MODE_EMA,PRICE_CLOSE,i)/p21;

//-- Calculation of Money ---------------------------------------------------

double EUR1 = (( EURGBP + EURAUD + EURUSD + EURCAD + EURCHF + EURJPY )/6) + EUR;
double GBP1 = (( GBPAUD + GBPUSD + GBPCAD + GBPCHF + GBPJPY - EURGBP )/6) + GBP
double AUD1 = (( AUDUSD + AUDCAD + AUDCHF + AUDJPY - EURAUD - GBPAUD )/6) + AUD;
double USD1 = (( USDCAD + USDCHF + USDJPY - EURUSD - GBPUSD - AUDUSD )/6) + USD;
double CAD1 = (( CADCHF + CADJPY - EURCAD - GBPCAD - AUDCAD - USDCAD )/6) + CAD;
double CHF1 = (( CHFJPY - EURCHF - GBPCHF - AUDCHF - USDCHF - CADCHF )/6) + CHF;
double JPY1 = (( - EURJPY - GBPJPY - AUDJPY - USDJPY - CADJPY - CHFJPY )/6) + JPY;





ExtMapBuffer1[i] = EUR1;
ExtMapBuffer2[i] = GBP1;
ExtMapBuffer3[i] = AUD1;
ExtMapBuffer4[i] = USD1;
ExtMapBuffer5[i] = CAD1;
ExtMapBuffer6[i] = CHF1;
ExtMapBuffer7[i] = JPY1;





}
//----
return(0);
}
//+------------------------------------------------------------------+

Files:
indexes_v7l.ex4  31 kb
 
So, will there be another run at 1.4150)))))))) what do you think