Reply To: TREND BREAKOUT SYSTEM

Optuma Forums Optuma Scripting TREND BREAKOUT SYSTEM Reply To: TREND BREAKOUT SYSTEM

#40647
Darren
Darren
  • Topics: 28
  • Replies: 145
  • Posts: 173

Hi Mohd,

Set the green custom colour option for when the body of candlestick is more than 50% of the range and close position is up:

// get the range of the bar
r1 = HIGH()-LOW();
// get the body value
b1 = ABS(close()-OPEN());
// is body > 50% of range?
v1 = b1 / r1 > 0.5;
//true and close is up
v1 and CLOSE() IsUp

And red for when close is down:

// get the range of the bar
r1 = HIGH()-LOW();
// get the body value
b1 = ABS(close()-OPEN());
// is body > 50% of range?
v1 = b1 / r1 > 0.5;
//true and close is down
v1 and CLOSE() IsDown

When neither of the above is true set the All Scripts colour option to blue:

Capture

Capture

Pin It on Pinterest

Share This

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.

Close