Announcement

Collapse
No announcement yet.

Import - Elite Trader: Dunnigan Bars

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

  • Import - Elite Trader: Dunnigan Bars

    Quote from easyrider:

    Esignal is very good, imo. I have the equities pkg by the year and it only comes out to 70 or 80 bucks a month. The advanced charting is good and getting better all the time. If they dont have an indicator you want you can get someone to write an efs for you. While im at it if esignal tech reads this how about getting someone to program Dunnigan Bars for advanced charts. There is a study out there call Dunnigan upthrust but I would like to have plain Dunnigan bars, red up bars, green down bars and yellow inside bars. Being able to spot those inside bars easily is a great tool.
    Since there wasn't an exact formula posted, I went from a source I found on Google. Not sure how accurate it is, but this should be close.

    PHP Code:
    /********************************************************************
    Copyright © eSignal, 2003
    Title:        Dunnigan Bars
    Version:    1.0

    =====================================================================
    Fix History:


    =====================================================================
    Project Description:  

    This displays "Dunnigan Bars," which is defined as:

    Higher High and High Low = Green Color
    Lower High and Lower Low = Red Color
    Inside Bar = Grey Color
    Outside Bar = Yellow Color

    Colors are adjustable through the Edit Studies menu.

    **********************************************************************/


    function preMain() {
        
    setStudyTitle("Dunnigan Bars");
        
    setShowCursorLabel(false);
        
    setColorPriceBars(true);
        
    setPriceStudy(true);
        
        var 
    fp6 = new FunctionParameter("HHHLColor"FunctionParameter.COLOR);
        
    fp6.setName("Higher High & Higher Low Color");
        
    fp6.setDefault(Color.green); //Edit this value to set a new default
        
        
    var fp7 = new FunctionParameter("LHLLColor"FunctionParameter.COLOR);
        
    fp7.setName("Lower High & Lower Low Color");
        
    fp7.setDefault(Color.red); //Edit this value to set a new default
        
        
    var fp8 = new FunctionParameter("InsideColor"FunctionParameter.COLOR);
        
    fp8.setName("Inside Bars Color");
        
    fp8.setDefault(Color.grey); //Edit this value to set a new default

        
    var fp9 = new FunctionParameter("OutsideColor"FunctionParameter.COLOR);
        
    fp9.setName("Outside Bars Color");
        
    fp9.setDefault(Color.yellow); //Edit this value to set a new default

    }

    function 
    main(HHHLColorLHLLColorInsideColorOutsideColor) {

        var 
    vHigh high();
        var 
    vPrevHigh high(-1);
        var 
    vLow low();
        var 
    vPrevLow low(-1);
        
        if (
    vHigh == null || vPrevHigh == null || vLow == null || vPrevLow == null) return;
        
        if      (
    vHigh vPrevHigh && vLow vPrevLowsetPriceBarColor(HHHLColor);
        else if (
    vHigh vPrevHigh && vLow vPrevLowsetPriceBarColor(LHLLColor);
        else if (
    vHigh vPrevHigh && vLow vPrevLowsetPriceBarColor(InsideColor);
        else if (
    vHigh vPrevHigh && vLow vPrevLowsetPriceBarColor(OutsideColor);

        return;
        

    Attached Files
    Regards,
    Jay F.
    Product Manager
    _____________________________________
    Have a suggestion to improve our products?
    Click Support --> Request a Feature in eSignal 11
Working...
X