Announcement

Collapse
No announcement yet.

Robert Krausz Hi-Lo activator

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

  • Robert Krausz Hi-Lo activator

    Robert Krausz Hi-Lo activator

    hi!

    can I ask if anybody can help me convert my Robert Krausz Hi-Lo activator Tradestation code into esignal's EFS?

    This is the ELS Tradestation code:

    Input: Length(2);
    Var: Swing(0);

    Value1=Average(H,Length);
    Value2=Average(L,Length);

    If C<Value2[1] And C[1]>=Value2[2] then Swing=-1;
    If C>Value1[1] And C[1]<=Value1[2] then Swing=1;

    If Swing=1 Then Plot1(Value2,"Sell Act");
    If Swing=-1 Then Plot2(Value1,"Buy Act");

    I have also attached the sample screen shot.

    Thanks in advance for occupying your valuable time!
    Attached Files

  • #2
    tejeron
    Is the study being computed only on completion of a bar in TS2k ie Update every tick is unchecked?
    Also FWIW if I remember correctly Robert Krausz' Hi-Lo Activator is based on 3 periods offset 1 moving averages of the High and Low not 2 periods.
    Alex

    Comment


    • #3
      Alexis,

      Yes Sir, its Update every tick is unchecked

      Comment


      • #4
        tejeron
        The attached efs will calculate the HiLo Activator as per the code you posted. It is set to compute on close of the bar only ie the same as when Update every tick is unchecked in TS2k.
        Note that the script is written using the new EFS2 studies and requires eSignal version 7.9
        Alex

        Attached Files

        Comment


        • #5
          Thank you very much Sir Alexis for your valuable time!

          It works very nice!

          Comment


          • #6
            tejeron
            The pleasure is mine
            Alex

            Comment

            Working...
            X