elliottTripleCombo
Syntax
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 120 === 0) { // draw every 120 bars
// 1) Define anchors
const O = newPoint(time(160), high(160));
const W = newPoint(time(135), low(135));
const X = newPoint(time(115), high(115));
const Y = newPoint(time(90), low(90));
const X2 = newPoint(time(65), high(65));
const Z = newPoint(time(40), low(40));
// 2) Style configuration
const style = {
fillBackground: true,
transparency: 75,
showLabels: true,
line: { linestyle: 0, linewidth: 2, color: color.red },
background: color.rgba(255, 0, 0, 0.2)
};
// 3) Draw Triple Combo
elliottTripleCombo(O, W, X, Y, X2, Z, style);
}
};Tips
Warning
Good Practice
Last updated