Reply To: Price in script

Optuma Forums Optuma Scripting Price in script Reply To: Price in script

  • Topics: 32
  • Replies: 1,707
  • Posts: 1,739
Would the same objective not acheieved by High() > High()[1] as above

Yes, but what Darren has done is more efficient. In the case of a “High” function, it is not a big deal, but with other functions (eg Like Optex()) it makes a huge difference. By using variables the calculation is only done once.

struggle is represent the moving market price.

Always create scripts in steps and check on a chart that it is doing what you expect. Add Darren’s script to a Show Plot tool and see if it is the level you want. Then you can always update it to

All the best


1 user thanked author for this post.

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.