Announcement

Collapse
No announcement yet.

Pivot Point sul grafico - visualizzare solo ...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    se servono a qualcuno, potete scaricarli qui

    grazie Alexis !


    Pivot
    R1
    R2
    S1
    S2







    Last edited by fra; 02-01-2005, 10:02 AM.
    Sostieni il Meglio di te , aiutaci a fare di più!

    Fra

    Comment


    • #17
      mmmmmmm

      problemino... comunque quando apro i chart si carica tutti i pivot...poi facendo il reload degli studi (non del chart) cancella i vecchi e segna solo quelli del giorno...

      che sarà?
      Sostieni il Meglio di te , aiutaci a fare di più!

      Fra

      Comment


      • #18
        Originally posted by fra
        se servono a qualcuno, potete scaricarli qui

        grazie Alexis !


        Pivot
        R1
        R2
        S1
        S2
        Ottimi Fra :-)

        Non è disponibile la formula che visualizza tutti e 5 i pivot di cui sopra, in una sola volta ?

        Ciao

        Giuseppe

        Comment


        • #19
          ho preferito tenerli separati...magari uno vuole visualizzarne sono i primi due...e poi è più facile modificare la visualizzazione quando sono separati (colore/spessore intendo)


          al momento non funzionano perfettamente...vanno perfezionati
          Sostieni il Meglio di te , aiutaci a fare di più!

          Fra

          Comment


          • #20
            Fra
            Eccoti la soluzione al problema del refresh dei grafici.
            Le modifiche sono commentate nell'efs
            Alex

            PHP Code:
            function preMain() {
                
            setPriceStudy(true);
                
            setStudyTitle("Pivot Point");
                
            setCursorLabelName("Pivot Point");

                
            /*
                 * Set the properties of the default bar.  These will be the
                 * properties of any bar for which style, color, thickness is
                 * not specificed.
                 */
                
            setDefaultBarStyle(PS_SOLID);
                
            setDefaultBarFgColor(Color.RGB(0,0,0));
                
            setDefaultBarThickness(2);
            }

            // Start of Performance addition
            var vLastRawTime null;
            var 
            vLastValue null;
            var 
            vSymbol null;
            var 
            vInterval null;


            function 
            main() {
                var 
            vH;
                var 
            vL;
                var 
            vC;
                var 
            vRawTime;
                var 
            vBarTime;
                var 
            vAbsTime;
                var 
            vIndex;
                var 
            nState getBarState();
                var 
            bCurrentDay false;//variabile dichiarata come locale e non piu globale
                
                
            if(nState == BARSTATE_ALLBARS) {
                    
            vLastRawTime null;
                    
            vLastValue null;
                    
            vInterval getInterval();
                    
            vSymbol getSymbol();
                    
            vSymbol += ",D";
                }
                
            // precedente metodo - puo essere cancellato
                /*if (bCurrentDay == false && getDay(0) != getDay(-1)){ 
                    var vTime = getValue("time"); 
                    var vDate = new Date(); 
                    var sTime = (vTime.getMonth()+1+"/"+vTime.getDate()+"/"+vTime.getFullYear()); 
                    var sToday = (vDate.getMonth()+1+"/"+vDate.getDate()+"/"+vDate.getFullYear()); 
                    //debugPrintln(getCurrentBarIndex() + "  " + sTime + "  " + sToday);
                    if ( sTime == sToday ) {
                        //debugPrintln("HHHHHH  " + getCurrentBarIndex());
                        bCurrentDay = true; 
                    } 
                }*/ 
                
                //nuovo metodo
                
            if (bCurrentDay == false && getCurrentBarIndex() < 0){ 
                    var 
            vTime getValue("time"); 
                    var 
            vDate = new Date(); 
                    var 
            sTime = (vTime.getMonth()+1+"/"+vTime.getDate()+"/"+vTime.getFullYear()); 
                    var 
            sToday = (vDate.getMonth()+1+"/"+vDate.getDate()+"/"+vDate.getFullYear()); 
                    if ( 
            sTime == sToday ) {
                        
            bCurrentDay true
                    } 
                } else {
                    
            bCurrentDay true;
                }
                
            //fine nuovo metodo
                //questa sezione usata anche precedentemente rimane
                
            if (bCurrentDay==false){
                return;
                }
                
            //fine sezione
                
            vRawTime getValue("rawtime");
                if(
            vRawTime == null)
                    return;
                
            vRawTime Math.floor(vRawTime RawTime.DAY);

                
            // Start of Performance addition
                
            if(vRawTime != null && vLastRawTime != null) {
                    if(
            vRawTime == vLastRawTime) {
                        return 
            vLastValue;
                    }
                }

                if(
            vInterval == null)
                    return 
            null;

                if(
            vInterval == "D")
                    return 
            null;

                
            vBarTime getValue("time");
                if(
            vBarTime != null) {
                    
            vAbsTime getPreviousTradingDay(vBarTimevSymbol);
                    if(
            vAbsTime == null)
                        return;

                    
            vIndex getFirstBarIndexOfDay(vAbsTimevSymbol);
                    if(
            vIndex != null) {
                        
            vH getValueAbsolute("High"vIndexvSymbol);
                        
            vL getValueAbsolute("Low",  vIndexvSymbol);
                        
            vC getValueAbsolute("Close"vIndexvSymbol);
                                                                              
                        if(
            vH != null && vL != null && vC != null) {
                            
            vLastValue = (vH vL vC) / 3;
                            
            vLastRawTime vRawTime;
                            return 
            vLastValue;
                        }
                    }
                }

                return 
            null;

            Comment


            • #21
              Fra
              Nel frattempo ho trovato un altro problema e cioe che in alcuni casi il Pivot non veniva tracciato con un nuovo simbolo.
              La versione allegata include la soluzione (vedi commento nell'efs stesso)
              Fammi sapere se ora funziona
              Alex

              PHP Code:
              function preMain() {
                  
              setPriceStudy(true);
                  
              setStudyTitle("Pivot Point");
                  
              setCursorLabelName("Pivot Point");

                  
              /*
                   * Set the properties of the default bar.  These will be the
                   * properties of any bar for which style, color, thickness is
                   * not specificed.
                   */
                  
              setDefaultBarStyle(PS_SOLID);
                  
              setDefaultBarFgColor(Color.RGB(0,0,0));
                  
              setDefaultBarThickness(2);
              }

              // Start of Performance addition
              var vLastRawTime null;
              var 
              vLastValue null;
              var 
              vSymbol null;
              var 
              vInterval null;

              function 
              main() {
                  var 
              vH;
                  var 
              vL;
                  var 
              vC;
                  var 
              vRawTime;
                  var 
              vBarTime;
                  var 
              vAbsTime;
                  var 
              vIndex;
                  var 
              nState getBarState();
                  var 
              bCurrentDay false;
                   
                  if(
              nState == BARSTATE_ALLBARS) {
                      
              vLastRawTime null;
                      
              vLastValue null;
                      
              vInterval getInterval();
                      
              vSymbol getSymbol();
                      
              vSymbol += ",D";
                      var 
              vX getValue("Close"vSymbol);//aggiunto questo comando
                  
              }

                  if (
              bCurrentDay == false && getCurrentBarIndex() < 0){ 
                      var 
              vTime getValue("time"); 
                      var 
              vDate = new Date(); 
                      var 
              sTime = (vTime.getMonth()+1+"/"+vTime.getDate()+"/"+vTime.getFullYear()); 
                      var 
              sToday = (vDate.getMonth()+1+"/"+vDate.getDate()+"/"+vDate.getFullYear()); 
                      if ( 
              sTime == sToday ) {
                          
              bCurrentDay true
                      } 
                  } else {
                      
              bCurrentDay true;
                  }

                  if (
              bCurrentDay==false){
                  return;
                  }
                  
                  
              vRawTime getValue("rawtime");
                  if(
              vRawTime == null)
                      return;
                  
              vRawTime Math.floor(vRawTime RawTime.DAY);

                  
              // Start of Performance addition
                  
              if(vRawTime != null && vLastRawTime != null) {
                      if(
              vRawTime == vLastRawTime) {
                          return 
              vLastValue;
                      }
                  }

                  if(
              vInterval == null)
                      return 
              null;

                  if(
              vInterval == "D")
                      return 
              null;

                  
              vBarTime getValue("time");
                  if(
              vBarTime != null) {
                      
              vAbsTime getPreviousTradingDay(vBarTimevSymbol);
                      if(
              vAbsTime == null)
                          return;

                      
              vIndex getFirstBarIndexOfDay(vAbsTimevSymbol);
                      if(
              vIndex != null) {
                          
              vH getValueAbsolute("High"vIndexvSymbol);
                          
              vL getValueAbsolute("Low",  vIndexvSymbol);
                          
              vC getValueAbsolute("Close"vIndexvSymbol);
                                                                                
                          if(
              vH != null && vL != null && vC != null) {
                              
              vLastValue = (vH vL vC) / 3;
                              
              vLastRawTime vRawTime;
                              return 
              vLastValue;
                          }
                      }
                  }

                  return 
              null;

              Comment


              • #22
                Re: Pivot Point sul grafico - visualizzare solo ...

                Non conosco l'inglese e non sono bravo con il computer.
                Potresti aiutarmi passo passo ad inserire i pivot ?
                Non mi piacciono quelli di default e vorrei anche io dei pivot semplici solo del giorno in corso.
                Grazie se avrai voglia di aiutarmi.

                Originally posted by giuseppe55
                Ciao.

                Voreei sapere se esiste un modo per visualizzare sul grafico i pivot point solo del giorno in corso anche se apro il grafico a più giorni, altrimenti mi manda in confusione con tutte le righe a "scaletta" :-)

                Grazie

                Giuseppe

                Comment


                • #23
                  usa questo efs ,che dovrai salvare nella directory contenente gli altri pivot (esignal/formulas/pivot).

                  ti plotta semplicemente il pivot e i vari R&S solo per il giorno odierno.
                  Attached Files
                  Sostieni il Meglio di te , aiutaci a fare di più!

                  Fra

                  Comment


                  • #24
                    qui vedi l'efs applicato al nostro indice
                    Attached Files
                    Sostieni il Meglio di te , aiutaci a fare di più!

                    Fra

                    Comment


                    • #25
                      Grazie sei stato molto gentile.
                      Buona giornata.

                      Originally posted by fra
                      usa questo efs ,che dovrai salvare nella directory contenente gli altri pivot (esignal/formulas/pivot).

                      ti plotta semplicemente il pivot e i vari R&S solo per il giorno odierno.

                      Comment


                      • #26
                        Ficino, Fra
                        Successivamente all'esempio che ho fornito in questo stesso thread ho creato una funzione apposita che consente di plottare un qualsiasi numero di giorni e che puo' essere implementata con qualsiasi formula.
                        Alex

                        Comment


                        • #27
                          Originally posted by giuseppe55
                          Ottimi Fra :-)

                          Non è disponibile la formula che visualizza tutti e 5 i pivot di cui sopra, in una sola volta ?

                          Ciao

                          Giuseppe

                          Inclusa la Pivotconsole, molto probabilmente il migliore Efs al riguardo.

                          Modulabile sia a livello semplice che complesso

                          ATR è visualizzabile a piacere

                          Buon utilizzo.
                          Attached Files
                          Last edited by hocuspocus; 04-05-2006, 01:29 PM.
                          hocus

                          Comment


                          • #28
                            Originally posted by Alexis C. Montenegro
                            Ficino, Fra
                            Successivamente all'esempio che ho fornito in questo stesso thread ho creato una funzione apposita che consente di plottare un qualsiasi numero di giorni e che puo' essere implementata con qualsiasi formula.
                            Alex
                            scusa per il ritardo nella risposta alexis

                            grazie per il suggerimento...interessante

                            per Hocuspocus

                            ciao, tieni però presente che la richiesta di ficino era per dei "pivot semplici"...per cui il suggerimento non poteva essere la pivot console (che tra l'altro uso sempre anche io)
                            Sostieni il Meglio di te , aiutaci a fare di più!

                            Fra

                            Comment


                            • #29
                              Originally posted by Alexis C. Montenegro
                              Ficino, Fra
                              Successivamente all'esempio che ho fornito in questo stesso thread ho creato una funzione apposita che consente di plottare un qualsiasi numero di giorni e che puo' essere implementata con qualsiasi formula.
                              Alex
                              Scusa il ritardo della risposta ma sono stato via.
                              Grazie anche a te.

                              Comment


                              • #30
                                Originally posted by fra
                                usa questo efs ,che dovrai salvare nella directory contenente gli altri pivot (esignal/formulas/pivot).

                                ti plotta semplicemente il pivot e i vari R&S solo per il giorno odierno.
                                Scusa volevo chiederti un paio di cose:
                                è possibile cambiare colore?
                                è possibile vedere il valore accanto alla riga (come il p.console)?
                                Grazie e buon fine settimana.

                                Comment

                                Working...
                                X