Announcement

Collapse
No announcement yet.

Candlestick: Shooting Star

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Candlestick: Shooting Star

    File Name: ShootingStar.efs

    Description:
    Shooting Star

    Formula Parameters:
    Font : Arial Narrow
    Font Size : 11
    Font and Shape Color : Green
    Font BgColor : White


    Notes:
    This is a bearish reversal candlestick which occurs in an uptrend. It has a long
    upper shadow with little, or no lower shadow, and a small real body near the lows
    of the session.


    Download File:
    ShootingStar.efs



    EFS Code:
    PHP Code:
    /*********************************
    Provided By:  
        eSignal (Copyright c eSignal), a division of Interactive Data 
        Corporation. 2009. All rights reserved. This sample eSignal 
        Formula Script (EFS) is for educational purposes only and may be 
        modified and saved under a new file name.  eSignal is not responsible
        for the functionality once modified.  eSignal reserves the right 
        to modify and overwrite this EFS file with each new release.
       

    Description:        
        Shooting Star

    Version:            1.0  12/24/2009

    Formula Parameters:                     Default:
        Font                                Arial Narrow
        Font Size                           11
        Font and Shape Color                Green
        Font BgColor                        White
        
    Notes:
        This is a bearish reversal candlestick which occurs in an uptrend. It has a long 
        upper shadow with little, or no lower shadow, and a small real body near the lows 
        of the session. 
    **********************************/

    var fpArray = new Array();

    function 
    preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("Shooting Star");
        
    setShowCursorLabel(false);
        
    setShowTitleParameters(false);
        var 
    x=0;
        
    fpArray[x] = new FunctionParameter("nFontSize"FunctionParameter.NUMBER);
        
    with(fpArray[x++]){
            
    setName("Font Size")
            
    setLowerLimit(6);        
            
    setDefault(11);
        }
        
    fpArray[x] = new FunctionParameter("cFontColor"FunctionParameter.COLOR);
        
    with(fpArray[x++]){
            
    setName("Font and Shape Color");
            
    setDefault(Color.green);
        }    
        
    fpArray[x] = new FunctionParameter("cFontBgColor"FunctionParameter.COLOR);
        
    with(fpArray[x++]){
            
    setName("Font BgColor");
            
    setDefault(Color.white);
        }    
        
    fpArray[x] = new FunctionParameter("sFont"FunctionParameter.STRING);
        
    with(fpArray[x++]){
            
    setName("Font");
            
    setDefault("Arial Narrow");
        }    
    }

    function 
    main(sFontnFontSizecFontColorcFontBgColor) {
        
    Find_ShootingStar(sFontnFontSizecFontColorcFontBgColor);
        return;
    }

    function 
    Find_ShootingStar(sFontnFontSizecFontColorcFontBgColor) {
    var 
    nState getBarState();
    var 
    Open open(0);
    var 
    Close close(0)
    var 
    Open1 open(-1);
    var 
    Close1 close(-1)
    var 
    High high(0);
    var 
    Low low(0);
    var 
    nID getCurrentBarCount();
        if (
    nState == BARSTATE_ALLBARS) {
            if (
    sFont == nullsFont "Arial Narrow";
            if (
    nFontSize == nullnFontSize 11;
            if (
    cFontColor == nullcFontColor Color.green;
            if (
    cFontBgColor == nullcFontBgColor Color.white;
        }
        if (
    Open1 Close1 &&
            
    Open Close1 &&
            
    High Math.max(OpenClose) >= Math.abs(Open Close) * &&
            
    Math.min(CloseOpen) - Low Math.abs(Open Close)) {
            
    drawTextRelative(0AboveBar2"SS"cFontColorcFontBgColorText.PRESET Text.CENTERsFontnFontSize"T"+nID); 
            
    drawShapeRelative(0AboveBar1Shape.DOWNARROWnullcFontColorShape.PRESET"S"+nID);         
        } else {
            
    removeText("T"+nID);
            
    removeShape("S"+nID)
        }
        return;

Working...
X