Announcement

Collapse
No announcement yet.

Can Anyone Help

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

  • Can Anyone Help

    The Line on this EFS works exactly how I want but I would like to color the bars when price(close) above the line.

    can anyone help



    Thanks

    James


    have attached file but here is code
    Attached Files

  • #2
    James
    You may want to run your script through the syntax checker as there are several errors. Note that EFS is a case sensitive language. Also consider that any condition added after the return statement will not get evaluated.
    That aside after looking briefly at the script I doubt that the conditions that color the bars would ever be met as the logic is currently laid out.
    Alex

    Comment


    • #3
      This is my original code which works fine, all i want to do is add parameters that change the color of the bars

      can u help ??



      Jamie
      Attached Files

      Comment


      • #4
        Jamie
        The first thing you need to do is to declare Plot1 as a global variable (ie outside of function main) and set it to null. In doing so remember to also remove the var from where you are currently declaring that variable.
        At that point you can use the same conditions you had in the efs you posted previously but you need to insert them before the return statement (note that JavaScript is case sensitive so check the syntax in those conditions)
        Alex

        Comment

        Working...
        X