Indicatori multi timeframe - pagina 898

 
rplust:
Ciao, qualcuno ha un'idea su come regolare l'URL di un segnalibro per aprire sempre l'ultima pagina del forum.

Non mostra già automaticamente le discussioni più recenti (le discussioni con i post più recenti) quando si arriva a TSD?

 

Signor Mladen, o Mrtools, potremmo avere degli avvisi su questo indicatore? Sull'incrocio dello zero e sul cambiamento di colore?

Grazie

Jozy

 

Ciao, Mr tools e mladen

si potrebbe per favore fare questo a MTF e avvisi l'attraversamento dello zero?

grazie

File:
i-g-cci2.mq4  4 kb
 
Jozy:
Signor Mladen, o Mrtools, potremmo avere degli avvisi su questo indicatore? Sull'incrocio dello zero e sul cambiamento di colore?

Grazie

Jozy

Ciao Jozy, penso che hai dimenticato di postare l'indicatore.

 
mladen:
Non mostra già automaticamente le discussioni più recenti (le discussioni con i post più recenti) quando si arriva a TSD?

Mi dispiace. Credo di non essermi espresso chiaramente. Non vado sulla pagina forex-tsd.com perché ho salvato alcuni segnalibri di thread che mi interessano come questo "multiple-timeframe-indicators" e volevo chiedere se qualcuno sapeva come regolare l'URL di questo segnalibro in modo che quando lo clicco, si apre automaticamente l'ultima pagina di questo thread invece della pagina al momento in cui ho salvato il segnalibro.

Piuttosto per caso ha funzionato una volta così, ma poi ho avuto un nuovo computer e ora non riesco a ricordare. Stavo solo pensando che forse qualcuno potrebbe conoscere la soluzione. Se no, nessun problema perché non voglio disturbare ulteriormente questo thread. Solo non sapevo dove altro postare la mia domanda.

 

Cari membri anziani

è possibile avere questo indicatore di bande di bollinger regolabile a 2 e 3 deviazioni? attualmente è impostato su 1 deviazione e ho provato a cambiare le impostazioni ma poi smette di mostrare qualsiasi freccia di avviso

grazie

//+------------------------------------------------------------------+

//| Bande.mq4 |

//| |

//| |

//+------------------------------------------------------------------+

#proprietà indicator_chart_window

#proprietà indicatore_buffer 5

#proprietà indicator_color1 LightSeaGreen

#proprietà indicator_color2 LightSeaGreen

#proprietà indicator_color3 LightSeaGreen

#proprietà indicator_color4 LimeGreen

#proprietà indicator_color5 Arancione

//

//

//

//

//

extern string TimeFrame = "current time frame";

extern int BandsLength = 4;

extern double BandsDeviation = 1.0;

extern int AppliedPrice = 0;

extern int BandsMaMode = 0;

extern string note = "accendere Alert = true; spegnere = false";

extern bool alertsOn = true;

extern bool alertsOnCurrent = true;

extern bool alertsMessage = true;

extern bool alertsSound = true;

extern bool alertsNotify = false;

extern bool alertsEmail = false;

extern string soundFile = "alert2.wav

extern int arrowthickness = 1;

//

//

//

//

//

doppio Ma[];

doppio UpMa[]

doppio DnMa[]

doppio CrossUp[]

doppio CrossDn[];

doppio tendenza[];

//

//

//

//

//

stringa indicatorFileName;

bool calculateValue;

bool returnBars;

int timeFrame;

//+------------------------------------------------------------------+

//| |

//+------------------------------------------------------------------+

//

//

//

//

//

int init()

{

IndicatorBuffers(6);

IndicatorDigits(Digits);

SetIndexBuffer(0,Ma);

SetIndexBuffer(1,UpMa);

SetIndexBuffer(2,DnMa);

SetIndexBuffer(3,CrossUp); SetIndexStyle(3,DRAW_ARROW,0,arrowthickness); SetIndexArrow(3,233);

SetIndexBuffer(4,CrossDn ); SetIndexStyle(4,DRAW_ARROW,0,arrowthickness); SetIndexArrow(4,234);

SetIndexBuffer(5,trend);

//

//

//

//

//

indicatorFileName = WindowExpertName();

returnBars = TimeFrame=="returnBars"; if (returnBars) return(0);

calculateValue = TimeFrame=="calculateValue"; if (calculateValue) return(0);

timeFrame = stringToTimeFrame(TimeFrame);

IndicatoreShortName(timeFrameToString(timeFrame)+" Bande di Bollinger Avvisa Frecce");

return(0);

}

//

//

//

//

//

int deinit() { return(0); }

//+------------------------------------------------------------------+

//| |

//+------------------------------------------------------------------+

//

//

//

//

//

int start()

{

int counted_bars=IndicatorCounted();

int i,limit;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limite=MathMin(Bars-1,Bars-counted_bars-1);

if (returnBars) { Ma[0] = limite+1; return(0); }

//

//

//

//

//

if (calculateValue || timeFrame==Period())

{

for (i = limite; i >= 0; i--)

{

double StdDev = iStdDev(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i);

Ma = iMA(NULL,0,BandsLength,0,BandsMaMode,AppliedPrice,i);

UpMa = Ma + (StdDev*BandsDeviation);

DnMa = Ma - (StdDev*BandsDeviation);

tendenza = 0;

se (Close>UpMa) trend = 1

se (Close<DnMa) trend =-1;

//

//

//

//

//

CrossUp = EMPTY_VALUE;

CrossDn = EMPTY_VALUE;

se (trend!= trend)

se (trend == 1 && trend != 3) CrossDn = High + iATR(NULL,0,20,i)/2;

if (trend == -1 && trend !=-3) CrossUp = Low - iATR(NULL,0,20,i)/2;

}

manageAlerts();

return(0);

}

//

//

//

//

//

limite = MathMax(limite,MathMin(Bars-1,iCustom(NULL,timeFrame,indicatorFileName, "returnBars",0,0)*timeFrame/Period());

for(i=limite; i>=0; i--)

{

int y = iBarShift(NULL,timeFrame,Time);

Ma = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,0,y);

UpMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,1,y);

DnMa = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,2,y);

trend = iCustom(NULL,timeFrame,indicatorFileName, "calculateValue",BandsLength,BandsDeviation,AppliedPrice,BandsMaMode,5,y);

CrossUp = EMPTY_VALUE;

CrossDn = EMPTY_VALUE;

se (trend!= trend)

se (trend == 1 && trend != 1) CrossDn = High + iATR(NULL,0,20,i)/2;

if (trend == -1 && trend !=-1) CrossUp = Low - iATR(NULL,0,20,i)/2;

}

manageAlerts();

return(0);

}

//

//

//

//

//

void manageAlerts()

{

if (!calculateValue && alertsOn)

{

se (avvisiOnCorrente)

int whichBar = 0;

else whichBar = 1; whichBar = iBarShift(NULL,0,iTime(NULL,timeFrame,whichBar));

se (trend[qualeBar] != trend[qualeBar+1])

{

se (trend[qualeBar+1] == 1 && trend[qualeBar] != 1) doAlert(qualeBar, "sell");

if (trend[whichBar+1] == -1 && trend[whichBar] !=-1) doAlert(whichBar, "buy");

}

}

}

//

//

//

//

//

void doAlert(int forBar, string doWhat)

{

static string previousAlert="niente";

static datetime previousTime;

messaggio di stringa;

if (previousAlert != doWhat || previousTime != Time[forBar]) {

previousAlert = doWhat;

previousTime = Time[forBar];

//

//

//

//

//

message = StringConcatenate(Symbol()," at ",TimeToStr(TimeLocal(),TIME_SECONDS)," - ",timeFrameToString(Period())+" Bollinger Bands ",doWhat);

if (alertsMessage) Allerta(messaggio);

if (alertsNotify) SendNotification(message);

if (alertsEmail) SendMail(StringConcatenate(Symbol()," Bollinger Bands "),message);

if (alertsSound) PlaySound(soundFile);

}

}

//+-------------------------------------------------------------------

//|

//+-------------------------------------------------------------------

//

//

//

//

//

stringa sTfTable[] = {"M1", "M5", "M15", "M30", "H1", "H4", "D1", "W1", "MN"};

int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200};

//

//

//

//

//

int stringToTimeFrame(stringa tfs)

{

tfs = StringUpperCase(tfs);

for (int i=ArraySize(iTfTable)-1; i>=0; i--)

se (tfs==sTfTable || tfs==""+iTfTable) return(MathMax(iTfTable,Period());

return(Periodo());

}

//

//

//

//

//

stringa timeFrameToString(int tf)

{

for (int i=ArraySize(iTfTable)-1; i>=0; i--)

se (tf==iTfTable) return(sTfTable);

return("");

}

//

//

//

//

//

stringa StringUpperCase(stringa str)

{

stringa s = str;

for (int length=StringLen(str)-1; length>=0; length--)

{

int tchar = StringGetChar(s, lunghezza);

if((tchar > 96 && tchar 223 && tchar < 256))

s = StringSetChar(s, lunghezza, tchar - 32);

else if(tchar > -33 && tchar < 0)

s = StringSetChar(s, lunghezza, tchar + 224);

}

return(s);

}

//------------------------------------------------------------------

//

//------------------------------------------------------------------

//

//

//

//

//

 
mrtools:
Ciao Jozy, penso che hai dimenticato di postare l'indicatore.

Sono molto dispiaciuto! Questo è l'indicatore:

 

mr tools o mladen,

potrebbe per favore rendere questo indicatore a MTF?

i migliori saluti,

marko

 

ciao,

ho questo indicatore Fantail e sarebbe bello se si potrebbe fare per essere MTF?

grazie per il vostro aiuto

File:
 
Jozy:
Signor Mladen, o Mrtools, potremmo avere degli avvisi su questo indicatore? Su zero cross e cambiamento di colore?

Grazie

Jozy

Jozy, aggiunte opzioni per avvisi su cambiamento di colore/pendenza e o per l'incrocio dello zero.

Motivazione: