Reply To: Trailing Stop Modification

Optuma Forums Optuma Scripting Trailing Stop Modification Reply To: Trailing Stop Modification

  • Topics: 28
  • Replies: 1,451
  • Posts: 1,479

Hi Mandeep,

ValueWhen gives the price value when that event happens. See Here

Because that is a value, you can not use it in the IF statement. That first item in the if must be a true false result (or at least 0 or 1)

I added “ad1” as a separate variable so it can be used in the ValueWhen and the If.

All the best


Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.