Announcement

Collapse
No announcement yet.

Operator for calculating percentage of

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

  • Operator for calculating percentage of

    I am new to the forum and to EFS.

    I am trying to write code which requires a 'condition' to go Long or short IF the Volume (-1) is 25% more than Volume(-2). How would I write that?

    Similarly, another condition is to 'go Long'
    IF sma(21) is greater than the Open
    (-1) and lesser than the Close(-1)
    AND
    the difference between Close(-1) and sma(21) is lesser than or equal to the difference between Open(-1) and sma(21)

    Phew!...I hope I am able to articulate what I want.
Working...
X