Announcement

Collapse
No announcement yet.

long / short sign

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

  • long / short sign

    Hello

    Can anybody help me with following CQG formula:

    ( ( B.show_Long_Stop(@)[-1]) and (Open(@)< Low(@)[-2]) and ( Close(@)>= Low(@)[-2]) ) or
    (( B.show_Long_Stop(@)[-1]) and ( Low(@)>= Low(@)[-2]) and ( Close(@)> High(@)[-1]))

    If the conditions are right it will print a triangle up for gonig long.

    Same formula for short:

    ( B.show_Short_Stop(@)[-1]) and (Open(@)> High(@)[-2]) and ( Close(@)<= High(@)[-2]) ) or
    (( B.show_Short_Stop(@)[-1]) and ( High(@)<= High(@)[-2]) and ( Close(@)< Low(@)[-1]))

    Thanks.

    Daniel

  • #2
    Daniel
    I am not sure if the B.show_Long_Stop(@)[-1]) and B.show_Short_Stop(@)[-1]) are just the commands to plot the triangles, but if they are then I think the attached efs does what you asked.
    Alex
    Attached Files

    Comment


    • #3
      Hello Alex

      Excactly how it should look like.

      Thank you very much.

      Daniel

      Comment


      • #4
        Daniel
        I made a slight revision to the formula and replaced the one in the original link.
        Unlike the prior version that computed only at the close of a bar the modified one will plot the triangles in real time.
        You may want to download it again.
        Alex

        Comment


        • #5
          Upon further testing in real time I noticed that some signals were either redundant or missing.
          I have now revised the efs and also added the provision to trigger alerts as per a request on another thread.
          To enable the alerts open the efs with the Editor and uncomment the Alert lines preceeded by a double slash (//)
          Alex

          Attached Files

          Comment

          Working...
          X