Announcement

Collapse
No announcement yet.

Help with writing a custom line

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

  • Help with writing a custom line

    I want to have a line plot "n" points above a lowest low, where
    "n" is user-defined and the lowest low is user-defined. For example, I could type in .0035 for "n" and a line would plot .0035
    points above a lowest low for 10 bars. I could change both the
    value "n" and the strength of the lowest low.

    And then, I would want the same kind of line plotting below
    a highest high.

    This would be for the forex market, so the value would have to be
    able to be written in to 4 decimal places.

    I wrote this for Tradestation easy language, but I am so very
    lost here. Here's the EasyLanguage code:

    Inputs: Price(Low), Length(10), Price1(1.0000);
    Value1 = (lowest(Price,Length) + Price1);
    Plot1( Value1, "MelodyD");


    I hope somebody can help me.

    Dave

  • #2
    Dave
    The attached efs will plot the HH and LL for a default of 10 periods.
    In Edit Studies you can then type in the value that you want added and subtracted to the LL and HH (in any amount of decimals), you can change the lookback period for the calculation of HH and LL and you can set the offset for the latter.
    Hope this helps
    Alex
    Attached Files
    Last edited by ACM; 06-22-2003, 11:36 PM.

    Comment


    • #3
      Alex,

      It helps a great deal. Just tried it. Thank you so much.

      --Dave

      Comment

      Working...
      X