Reply To: TREND BREAKOUT SYSTEM

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

#40647
Darren
Darren
  • Topics: 13
  • Replies: 51
  • Posts: 64

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