Home     News     Software     Order     Download     Support     Publications     Research     Contacts  
   Home

   News

  •  

  • Latest News
      
  •  

  • World News
      
  •  

  • Our achievements
      
       Software

  •  

  • TradeStation Solutions
      
  •  

  • Portfolio Software
      
  •  

  • Genetic Optimization
      
  •  

  • eSignal Solutions
      
  •  

  • Wavelet Transform Dll
      
  •  

  • Matlab & TradeStation Solutions
      
  •  

  • Excel & TradeStation Solutions
      
       Order

       Download

  •  

  • Free Download
      
  •  

  • Update
      
       Support

  •  

  • Online Help
      
  •  

  • Upgrade Policy
      
       Publications

  •  

  • Fractal dimension – numerical characteristic of trend
      
  •  

  • Volatility Models
      
  •  

  • Genetic optimization. Application in TradeStation environment.
      
  •  

  • Trading Systems Free
      
  •  

  • Money Management
      
       Research

  •  

  • TS Excel Link's using example
      
  •  

  • Strategy Optimization, Curve Fitting and Walk Forward Analysis.
      
  •  

  • Entropy Indicator in TradeStation using Matlab
      
  •  

  • TradeStaion Genetic Optimizer
      
       Contacts

    Overview: Wavelet Nowcast Trend

    Example 3. Indicator Nowcast Trend assumes value 1 and -1 if trend is identified. On the base of this indicator strategy "Nowcast signal" is created.

    Nowcast Trend

    eSignal Formula Script:

     /********************************************************* 
     Name: TSE.Wavelet.Nowcast.Trend 
     Analysis Type: Indicator
     Description: Non-decimated Haar Wavelet Trend Nowcast Indicator 
     Used: tsewvl.dll 
     Provided By: Trade Smart Research (c) Copyright 2001 - 2004 
              www.tsresearch.com 
     *********************************************************/

     
     var c,v,lookback,Trend, Wavelet, Sigma;
     
     /* Defining DLL */
     var d = new DLL("tsewvl.dll"); 
     
     /* Functions Declaration */
     d.addFunction("runwvl", DLL.FLOAT, DLL.STDCALL,"RUNWVL", DLL.FLOATARRAY,DLL.INT,DLL.FLOAT); 
     d.addFunction("getallvalues", DLL.FLOAT, DLL.STDCALL,"GETALLVALUES", DLL.INT,DLL.INT); 
     
     /* Preparing parameters and array*/
     function preMain() {
         setPriceStudy(false);
         setStudyTitle("Wavelet Nowcast Trend");
         setCursorLabelName("Nowcast", 0);
         setDefaultBarStyle(PS_SOLID, 0);
         setDefaultBarFgColor(Color.red, 0);
         
        
         
         setDefaultBarThickness(1, 0);
         setPlotType(PLOTTYPE_LINE, 0);
         ArrayPrice = new Array(256);
         
        /* wavelet scale */ 
        var fp1 = new FunctionParameter("Scales", FunctionParameter.NUMBER);
         fp1.setLowerLimit(1);
         fp1.setUpperLimit(8);        
         fp1.setDefault(5);
         
         /* threshold value signal / noise */
         var fp2 = new FunctionParameter("NSigma", FunctionParameter.NUMBER);
         fp2.setLowerLimit(1);
         fp2.setUpperLimit(4);        
         fp2.setDefault(3);
        
         
     }
     
     function main(Scales,NSigma) {
        if (Scales==null) Scales=5;
        if (NSigma==null) NSigma=3;
        lookback=256;
        aSource=getValue("Close",0,-lookback);
        nBarIndex = getNumBars()+getCurrentBarIndex();
        
        /* filling array */
        if (nBarIndex >lookback) {
          for (x=0; x<lookback; x++) {
            ArrayPrice[x] = aSource[x];   
          }
          
          /* calling functoin in dll */
          v = d.call("runwvl",ArrayPrice,8,NSigma);
          
          Wavelet =d.call("getallvalues",1,Scales);
          Sigma =d.call("getallvalues",2,Scales);
          
          /* Determinig trend */
          if (Wavelet > NSigma * Sigma) {
            Trend = 1 
          } else { 
            if (Wavelet < - NSigma * Sigma) {
              Trend = -1  
            } else {
              Trend=0
            }
          }
          
        } else {
        v=0
        }
        return Trend;
     }
     


    <<< Wavelet Noise
    Wavelet Smoothing Indicator Family >>>


    Developed by: webdesign.tria.lv  

      About | Privacy Statement | Terms of use | TradeStation Disclaimer

    Copyright © 2004 TS Smart Research

    time: 0.2238 | queries: 3