Stockalyze

STOCKALYZE => General Discussion => Topic started by: Georges on November 05, 2019, 09:17:28 PM

Title: Close position when price is equal the higher of last 2 days
Post by: Georges on November 05, 2019, 09:17:28 PM
Close position when price is equal the higher of last 2 days
Title: Re: Close position when price is equal the higher of last 2 days
Post by: Sacha on November 06, 2019, 02: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.

Title: Re: Close position when price is equal the higher of last 2 days
Post by: Georges on November 06, 2019, 02:44:51 PM
yes, it's clear. thanks