Author Topic: Close position when price is equal the higher of last 2 days  (Read 346 times)

Georges

  • Sr. Member
  • ****
  • Posts: 8
    • View Profile
Close position when price is equal the higher of last 2 days
« on: November 06, 2019, 02:17:28 AM »
Close position when price is equal the higher of last 2 days

Sacha

  • Administrator
  • Hero Member
  • *****
  • Posts: 570
    • View Profile
    • Stockalyze: Analyze Stocks freely and affordably.
Re: Close position when price is equal the higher of last 2 days
« Reply #1 on: November 06, 2019, 07:09:06 PM »
This is certainly possible. But with a minor tweak. In Stockalyze condition definitions, I have intentionally not allowed the equality condition because equality of price is very flaky thing, but you can certainly test for greater or less operations. Having said that, I tried to explain how to setup what you want. Please have a look at attached image.
Let me know if you need any more clarification.

Stockalyze Support
Let's be friends

Georges

  • Sr. Member
  • ****
  • Posts: 8
    • View Profile
Re: Close position when price is equal the higher of last 2 days
« Reply #2 on: November 06, 2019, 07:44:51 PM »
yes, it's clear. thanks