Announcement

Collapse
No announcement yet.

Import: SI - Horizontal Line at X

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

  • Import: SI - Horizontal Line at X

    .
    Simple idea for Esignal
    (1)Metastock allows you type in "number" for horizontal line.
    (2)Esignal requires you to place horizontal line using
    "mouse"
    (3)Support and Resistance lines are important in trading.
    (4)Hope Esignal catches up with Metastock stock and allow
    you to insert "number" just like it allows you to insert
    a color.
    Larry Dudash
    PS:Long time Esignal user.
    Larry,

    Here's a simple EFS that allows you to draw a horizontal line at a set price.

    PHP Code:
    /********************************************************************
    Copyright © eSignal, 2003
    Title:        Horizontal Line at X
    Version:    1.0

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


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

    This formula will place a horizontal line at a given price level.
    Please note that the price level must be defined in the Edit Studies window
    before any lines are drawn.  If multiple lines are needed, please create
    another instance of the formula.

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


    function preMain() {
        
    setPriceStudy(true);
        
    setStudyTitle("Horizontal Line at X");
        
    setShowCursorLabel(false); 
        
        var 
    fp1 = new FunctionParameter("PriceLevel"FunctionParameter.NUMBER);
        
        var 
    fp2 = new FunctionParameter("Color"FunctionParameter.COLOR);
        
    fp2.setDefault(Color.black);
        
        var 
    fp3 = new FunctionParameter("Thickness"FunctionParameter.NUMBER);
        
    fp3.setDefault(1);


    }

    function 
    main(PriceLevel,Color,Thickness) {

    if (
    PriceLevel == null) return;

    addBand(PriceLevel,PS_SOLID,Thickness,Color," ");

    return;

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

  • #2
    What can I do if I have setPriceStudy(false)?

    Comment


    • #3
      David,

      That will create a separate non-price study window with a line at X, but without anything returned in the window it won't have a scale. Since there is no scale, nothing will be displayed (unless overlayed on top of another study.)
      Regards,
      Jay F.
      Product Manager
      _____________________________________
      Have a suggestion to improve our products?
      Click Support --> Request a Feature in eSignal 11

      Comment


      • #4
        Jay

        I knew I wasn't clear, sorry.

        Let's say I have an efs that plots some indicator in the lower pane.

        This efs also calculates where I want to draw my line on the price chart.

        Can I add something to the efs to draw the line in the price chart area?

        Comment


        • #5
          David,

          Unfortunately, no. With the exception of coloring price bars, a non-price study cannot do anything in the price area.
          Regards,
          Jay F.
          Product Manager
          _____________________________________
          Have a suggestion to improve our products?
          Click Support --> Request a Feature in eSignal 11

          Comment

          Working...
          X