elliottDoubleCombo
Syntax
Parameters
Return Value
Example
//@version=1
init = () => {
indicator({ onMainPanel: true, format: 'inherit' });
};
onTick = () => {
if (index % 90 === 0) { // draw every 90 bars
// 1) Define four anchors
const O = newPoint(time(120), high(120));
const W = newPoint(time(95), low(95));
const X = newPoint(time(70), high(70));
const Y = newPoint(time(40), low(40));
// 2) Style
const style = {
fillBackground: true,
transparency: 75,
showLabels: true,
line: { linestyle: 0, linewidth: 2, color: color.purple },
background: color.rgba(128, 0, 128, 0.2)
};
// 3) Draw Double Combo
elliottDoubleCombo(O, W, X, Y, style);
}
};Tips
Warning
Good Practice
Last updated