Announcement

Collapse
No announcement yet.

EFS formula

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

  • EFS formula

    Hi

    I have been using the EFS wizard to construct a simple (?) formula, however, I am unable to complete it.

    I want a signal creating if a bar closes in its top half, eg high 100 low 80 I want a signal if the close is above 90.

    Can anyone help please?

    Stephen
    SJC

  • #2
    Stephen
    Post the formula as you have it so that someone can guide you through fixing it
    If instead you want to try doing this yourself then in the first line of Set1 add the following condition to check for a new bar
    getBarState() == BARSTATE_NEWBAR
    Then in the second line of Set1 insert your condition which is essentially the same as what you laid out in plain language ie
    close(-1) > (high(-1) + low(-1))/2
    Note that the (-1) refers to the values at the prior bar since you will be evaluating this condition at every new bar only that is when the prior bar is completed.
    At that point add to Set1 whatever alert(s) you want to use
    Alex

    Comment


    • #3
      Thanks for your reply Alexis

      I think I have misjudged the purpose of the EFS Wizard. I have no knowledge of Java whatever - and I prefer it that way. I naively thought that I could program my "simple" task solely via the wizard. This is clearly not the case. I subscribed to eSignal to trade the markets not to become a Java programmer. looks like I'll be off to Metastock where the indicator that I need is included as standard.
      Regards
      Stephen
      SJC

      Comment


      • #4
        Stephen
        FYI the suggestion I provided in my prior reply was for use with the Formula Wizard
        Alex

        Comment

        Working...
        X