Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Test 1 - Slope

Expected:

Epm macro trendmultichart
config\{\"promptIfDirtyClose\":true,\"layout\":0,\"height\":

...

557,\"width\":0,\"seamless\":false,\"sync\":false,\"charts\":[\{\"trends\":[\{\"type\":\"datatag\",\"name\":\"calc/THRESHOLD(siggen/sq1@1h,0.9,siggen/sc10+10@30m,0)\",\"value\":\"calc/THRESHOLD(siggen/sq1@1h,0.9,siggen/sc10+10@30m,0)\",\"description\":\"\",\"metaData\":\{\},\"hidden\":false,\"status\":\{\"_params\":\{\"contexts\":\{\}\}\},\"units\":\"\",\"enumerated\":null,\"replacements\":\{\},\"localData\":[]\},\{\"type\":\"marker\",\"name\":\"

...

Search Start\",\"value\":

...

1647302580000,\"description\":

...

\"starting point for pattern match\",\"colour\":\"

...

#1f77b4\",\"metaData\":\{\},\"hidden\":false,\"status\":null,\"datatagname\":null,\"limit\":null\}

...

,\{\"

...

type\":

...

\"marker\",\"

...

name\":\"

...

Search End\",\"

...

value\":

...

1647304020000,\"

...

description\":\"

...

ending point for pattern match\",\"

...

colour\":\"

...

#1f77b4\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"

...

status\":null,\"

...

datatagname\":null,\"limit\":null\},\{\"

...

type\":\"

...

marker\",\"

...

name\":\"

...

Match 1 - Start\",\"

...

value\":

...

1647309780000,\"

...

description\":

...

\"

...

\"

...

,\"

...

colour\":

...

\"

...

#d62728\"

...

,\"

...

metaData\":

...

\{\},\"

...

hidden\":false,\"

...

status\":null,\"

...

datatagname\":null,\"

...

limit\":null\},\{\"

...

type\":\"

...

marker\",\"

...

name\":

...

\"

...

Match 1 - End\"

...

,\"

...

value\":1647311220000,\"

...

description\":\"

...

\",\"

...

colour\":\"

...

#d62728\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"status\":null,\"

...

datatagname\":null,\"

...

limit\":null\},\{\"type\":\"

...

marker\",\"

...

name\":

...

\"

...

Match 2 - Start\"

...

,\"

...

value\":

...

1647313380000,\"

...

description\":

...

\"

...

\"

...

,\"

...

colour\":

...

\"#d62728\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"

...

status\"

...

:null,\"

...

datatagname\":

...

null,\

...

"

...

limit\":null\

...

},\{\"

...

type\":\"

...

marker\"

...

,\"

...

name\":

...

\"Match 2 - End\",\"value\":

...

1647314820000,\"

...

description\":\"\",\"

...

colour\":\"#d62728\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"

...

status\":null,\

...

"

...

datatagname\":null,\"limit\":null\}],\"

...

axes\":[\{\"side\"

...

:\"

...

left\"

...

,\"

...

num\":0,\"

...

min\":\"

...

auto\",\"

...

max\":\"

...

auto\",\"

...

format\":\"

...

auto\"

...

,\"

...

step\":

...

\"

...

auto\"

...

,\"

...

units\":\"

...

\",\"

...

colour\":

...

\"

...

#2ca02c\",\"type\":\"

...

smooth\",\"

...

reference\":

...

null,\"

...

stacked\":false,\"

...

style\":1,\"

...

linestyle\":

...

1,\"

...

lineWidth\":

...

1.5,\"

...

hideFuture\":false,\"

...

groupType\":

...

\"

...

none\"

...

,\"

...

groupFunctionType\":

...

\"

...

average\"

...

\},\{\"

...

side\":

...

\"

...

left\"

...

,\"

...

num\":

...

0,\"

...

min\":

...

\"

...

auto\"

...

,\"

...

max\":

...

\"auto\",\"

...

format\":\

...

"auto\

...

",\"

...

step\":

...

\"auto\",\"units\":\"\",\"colour\":\"#1f77b4\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"

...

style\":

...

1,\

...

"

...

linestyle\":

...

1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"

...

none\",\"

...

groupFunctionType\":\"

...

average\"\},\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"

...

max\":\

...

"auto\

...

",\"

...

format\":

...

\"

...

auto\"

...

,\"

...

step\":\

...

"

...

auto\"

...

,\"units\":\"\",\"

...

colour\":

...

\"#1f77b4\",\"

...

type\":\

...

"smooth\

...

",\"

...

reference\":

...

null,\"stacked\":false,\"

...

style\":

...

1,\

...

"

...

linestyle\":1,\"

...

lineWidth\":1.5,\"

...

hideFuture\":

...

false,\"

...

groupType\":\"

...

none\",\"

...

groupFunctionType\":\"

...

average\"\},\{\"

...

side\":\"

...

left\",\"

...

num\":

...

0,\"

...

min\":\"auto\",\"

...

max\":\"

...

auto\",\"

...

format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#d62728\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\}

...

,\

...

{\"

...

side\":\"

...

left\"

...

,\"

...

num\":

...

0,

...

\"

...

min\":

...

\"

...

auto\",\"max\":\"auto\",\"

...

format\":\"auto\",\"

...

step\":\"auto\",\"

...

units\":

...

\"\",\"

...

colour\":\

...

"#d62728\",\"

...

type\":\"smooth\",\"

...

reference\":null,\"stacked\":false,\"

...

style\":1,\"

...

linestyle\":1,\"

...

lineWidth\":1.5,\"

...

hideFuture\":false,\"

...

groupType\":\"

...

none\",\"

...

groupFunctionType\":\"

...

average\"\},\{\"

...

side\":

...

\"

...

left\"

...

,\"

...

num\":0,\"

...

min\"

...

:\"

...

auto\"

...

,\"

...

max\":\"

...

auto\",\"

...

format\":

...

\"auto\",\"

...

step\":\"

...

auto\",\"

...

units\":

...

\"

...

\"

...

,\"

...

colour\":

...

\"

...

#d62728\"

...

,\"

...

type\":

...

\"

...

smooth\"

...

,\"

...

reference\":

...

null,\"

...

stacked\":false,\"

...

style\":

...

1,\"

...

linestyle\":

...

1,\"

...

lineWidth\":

...

1.5,\"

...

hideFuture\":false,\"

...

groupType\":

...

\"none\",\"

...

groupFunctionType\":\"average\

...

"\},\{\"

...

side\":

...

\

...

"left\"

...

,\"

...

num\":0,\"

...

min\":

...

\"

...

auto\"

...

,\"

...

max\":

...

\"

...

auto\"

...

,\"

...

format\":

...

\"auto\",\"

...

step\":

...

\

...

"

...

auto\"

...

,\"

...

units\":\"

...

\",\"

...

colour\":\"

...

#d62728\",\"

...

type\":\"smooth\",\"

...

reference\":

...

null,\"

...

stacked\":false,\"

...

style\":

...

1,\"linestyle\":1,\"

...

lineWidth\":1.5,\

...

"

...

hideFuture\":

...

false,\"

...

groupType\":\"none\",\"

...

groupFunctionType\":

...

\"

...

average\"

...

\

...

}],\"

...

modes\":[

...

\{\"

...

mode\":\"

...

interpolated\"\},\{\"

...

mode\":\"

...

interpolated\"\},\{\"

...

mode\":

...

\"

...

interpolated\"

...

\},\{\"mode\":\"

...

interpolated\"\},\{\"

...

mode\":\

...

"interpolated\"\},\{\"

...

mode\":

...

\"

...

interpolated\"

...

\},\{\"

...

mode\":

...

\"

...

interpolated\"

...

\}],

...

\"

...

bounds\":[1647302400000,1647324000000],\"

...

live\":false,\"

...

liveOffset\":\"

...

\",\"

...

liveSnapTo\":

...

\"\",\"

...

refreshRate\":\"

...

auto\",\"

...

sync\":

...

false,\"

...

title\":\{

...

\"

...

main\":

...

\"

...

\"

...

,\"

...

sub\":

...

\"

...

\"

...

,

...

\"

...

fgcolour\":\"

...

#333333\",\"

...

bgcolour\":\"

...

#ffffff\",\"

...

size\":

...

\"24\",\"

...

alignment\":\"center\"\},\"

...

seamless\":false,\"

...

locked\":true,\"

...

tz\":\

...

"Europe/London\",\"

...

ampm\":false,\"

...

numPoints\":

...

\"

...

361\"

...

,\"

...

savedPoints\":

...

[],\

...

"type\":\"

...

line\",\"

...

allowExternalChanges\":true,\"

...

scaleToFillHeight\":false,\"

...

noLabelPrefixes\":

...

false,\"

...

enableTimeWindowShortcuts\":false,\"timeWindowShortcuts\":null,\"

...

theme\":null,\"

...

hideLegend\":false,\"

...

hideYAxes\":

...

false,\"

...

hideXAxes\":false,\"

...

isTimeBased\":

...

true,\"

...

invertAxes\":

...

false,\"

...

includeStats\":false,\"defaultMargin\":

...

false\}],\

...

"

...

vars\":\

...

{\

...

},\"

...

tags\":

...

[]\}

Actual:

Epm macro trendmultichart
config\{\"promptIfDirtyClose\":

...

true,\"

...

layout\":0,\"height\":610,\"

...

width\":

...

0,\"

...

seamless\":

...

false,\"

...

sync\":false,\"

...

charts\":

...

[\

...

{\"

...

trends\"

...

:

...

[\

...

{\"type\":\"

...

datatag\",\"name\":\"

...

calc/THRESHOLD(siggen/sq1@1h,0.9,siggen/sc10+10@30m,0)\",\"value\":

...

\"calc/THRESHOLD(siggen/sq1@1h,0.9,siggen/sc10+10@30m,0)\",\"description\":\"\",\"

...

metaData\":\

...

{\},\"hidden\":false,\"status\":

...

\{\"

...

_params\":

...

\{\"

...

contexts\":

...

\{\}

...

\

...

}\},\"units\":\"

...

\",\"

...

enumerated\":

...

null,\"

...

replacements\":\

...

{\

...

},\"

...

localData\":[]\

...

},\{\"

...

type\":\"

...

marker\",\"

...

name\":\"

...

Search Start\",\"

...

value\":

...

1647316920000,\"

...

description\":\"

...

starting point for pattern match\",\"

...

colour\":\"

...

#1f77b4\",\"

...

metaData\":

...

\{\},\"

...

hidden\":false,\"

...

status\":

...

null,\"

...

datatagname\":

...

null,\"

...

limit\":

...

null\},\

...

{\"

...

type\":\"

...

marker\",\"

...

name\":\"

...

Search End\"

...

,

...

\"

...

value\":1647318480000,\"

...

description\"

...

:\"

...

ending point for pattern match\"

...

,\"

...

colour\":\"

...

#1f77b4\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"

...

status\":null,\"

...

datatagname\":null,\"

...

limit\":null\},\{\"

...

type\":\"marker\",\"

...

name\":\"

...

Match 1 - Start\",\"

...

value\":1647302640000,\"

...

description\"

...

:\"

...

\"

...

,\"

...

colour\":

...

\"

...

#d62728\"

...

,\"

...

metaData\":

...

\

...

{\},\"

...

hidden\":false,\"

...

status\":null,\"

...

datatagname\":null,\"

...

limit\":null\

...

},\{\"

...

type\":\"

...

marker\",\"

...

name\":

...

\"

...

Match 1 - End\"

...

,\"

...

value\":1647304260000,\"

...

description\":\"

...

\",\"

...

colour\":\"

...

#d62728\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"status\":null,\"

...

datatagname\":null,\"

...

limit\":null\},\{\"type\":\"

...

marker\",\"

...

name\":

...

\"Match 2 - Start\",\"

...

value\":

...

1647306240000,\"

...

description\":

...

\"\",\"

...

colour\":

...

\"

...

#d62728\"

...

,\"

...

metaData\":

...

\{\},\"

...

hidden\":false,\"

...

status\":null,\"

...

datatagname\":null,\"

...

limit\":null\},\{\"

...

type\":\"

...

marker\",\"

...

name\":

...

\"

...

Match 2 - End\"

...

,\"

...

value\":1647307860000,\"

...

description\":\"

...

\",\"

...

colour\":\"

...

#d62728\",\"

...

metaData\":\

...

{\

...

},\"

...

hidden\":false,\"status\":null,\"

...

datatagname\":null,\"

...

limit\":null\}],\"

...

axes\":[\{\"

...

side\"

...

:\"

...

left\"

...

,\"

...

num\":

...

0,\"

...

min\":

...

\"

...

auto\"

...

,\"

...

max\":

...

\"

...

auto\"

...

,\"

...

format\":\"

...

auto\",\"

...

step\":\"

...

auto\"

...

,\

...

"

...

units\":\"

...

\",\"

...

colour\":

...

\"#2ca02c\",\"

...

type\":\"

...

smooth\",\"

...

reference\":null,\"

...

stacked\":false,\"

...

style\":1,\"

...

linestyle\":1,\"

...

lineWidth\":1.5,\"

...

hideFuture\":false,\"

...

groupType\":\"none\",\"

...

groupFunctionType\":\"

...

average\"\},\{\"

...

side\":\"

...

left\",\"

...

num\":

...

0,\"

...

min\":

...

\"auto\",\"

...

max\":

...

\"

...

auto\"

...

,\"

...

format\":

...

\"

...

auto\"

...

,\"

...

step\":\"

...

auto\",\"

...

units\":\"

...

\"

...

,\

...

"

...

colour\":\"

...

#1f77b4\",\"

...

type\":

...

\"

...

smooth\"

...

,\"

...

reference\":null,\"

...

stacked\":false,\"

...

style\":1,\"

...

linestyle\":1,\"

...

lineWidth\":1.5,\"

...

hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"

...

average\"\},\{\"

...

side\":\"left\",\"

...

num\":0,\"min\":\"

...

auto\",\"

...

max\":\"

...

auto\",\"

...

format\":

...

\"auto\",\"

...

step\":

...

\"auto\",\"

...

units\":\"\",\"colour\":\"#1f77b4\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1

...

.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\},\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#d62728\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\},\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#d62728\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\},\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#d62728\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\},\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#d62728\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\}],\"modes\":[\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\},\{\"mode\":\"interpolated\"\}],\"bounds\":[1647302400000,1647324000000],\"live\":false,\"liveOffset\":\"\",\"liveSnapTo\":\"\",\"refreshRate\":\"auto\",\"sync\":false,\"title\":\{\"main\":\"\",\"sub\":\"\",\"fgcolour\":\"#333333\",\"bgcolour\":\"#ffffff\",\"size\":\"24\",\"alignment\":\"center\"\},\"seamless\":false,\"locked\":true,\"tz\":\"Europe/London\",\"ampm\":false,\"numPoints\":\"361\",\"savedPoints\":[],\"type\":\"line\",\"allowExternalChanges\":true,\"scaleToFillHeight\":false,\"noLabelPrefixes\":false,\"enableTimeWindowShortcuts\":false,\"timeWindowShortcuts\":null,\"theme\":null,\"hideLegend\":false,\"hideYAxes\":false,\"hideXAxes\":false,\"isTimeBased\":true,\"invertAxes\":false,\"includeStats\":false,\"defaultMargin\":false\}],\"vars\":\{\},\"tags\":[]\}

Test 2 - Slope With Random

Expected:

Epm macro trendmultichart
config\{\"promptIfDirtyClose\":true,\"layout\":0,\"height\":800,\"width\":0,\"seamless\":false,\"sync\":false,\"charts\":[\{\"trends\":[\{\"type\":\"datatag\",\"name\":\"calc/THRESHOLD(siggen/sq1@1h,0.9,MUL(siggen/sc10+10@30m,siggen/rand1~0.5@36000),0)\",\"value\":\"calc/THRESHOLD(siggen/sq1@1h,0.9,MUL(siggen/sc10+10@30m,siggen/rand1~0.2@36000),0)\",\"description\":\"\",\"metaData\":\{\},\"hidden\":false,\"status\":\{\"_params\":\{\"contexts\":\{\}\}\},\"units\":\"\",\"enumerated\":null,\"replacements\":\{\},\"localData\":[]\}],\"axes\":[\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#ff7f0e\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false,\"groupType\":\"none\",\"groupFunctionType\":\"average\"\}],\"modes\":[\{\"mode\":\"interpolated\"\}],\"bounds\":[1647313200000,1647334800000],\"live\":false,\"liveOffset\":\"\",\"liveSnapTo\":\"\",\"refreshRate\":\"auto\",\"sync\":false,\"title\":\{\"main\":\"\",\"sub\":\"\",\"fgcolour\":\"#333333\",\"bgcolour\":\"#ffffff\",\"size\":\"24\",\"alignment\":\"center\"\},\"seamless\":false,\"locked\":true,\"tz\":\"Europe/London\",\"ampm\":false,\"numPoints\":\"361\",\"savedPoints\":[],\"type\":\"line\",\"allowExternalChanges\":true,\"scaleToFillHeight\":false,\"noLabelPrefixes\":false,\"enableTimeWindowShortcuts\":false,\"timeWindowShortcuts\":null,\"theme\":null,\"hideLegend\":false,\"hideYAxes\":false,\"hideXAxes\":false,\"isTimeBased\":true,\"invertAxes\":false,\"includeStats\":false,\"defaultMargin\":false\}],\"vars\":\{\},\"tags\":[]\}

Actual:

Epm macro trendmultichart