Page tree

Versions Compared

Key

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

Wave Generation

Syntax: function amplitude +/- y-offset @ period +/- x-offset (in seconds)

Function supported are:

  • sin (sine)
  • cos (cosine)
  • saw (saw wave)
  • sq (square wave)
  • sc (S-curve)

EG: siggen/sin10-30@1d+1h → Sine Wave of amplitude 10 with a -30 y-axis offset. A period of 1d with 1h x-axis offset.

NOTE: the x-offset has to be positive if using (1m,1d,1h ..) if you need negative use -1000 which is the same as -1000s

Ramp Generation

Syntax: function amplitude  @ CyclicTimePeriod 

CyclicTimePeriod: day, bday, month or year

EG: siggen/ramp10@day → Ramp Wave of amplitude 10. A period of 1d.

Random Value Signal

Syntax: function average ~ range  @ smoothingFactor

EG: siggen/rand10~5@3600000 → Random Value signal with a mean of 10 and a range of +/- 5. A smoothing factor of 3600000 (default).

NOTE: Positive values only. If you require a negative random number then multiply it by -1.


Constant Value Generation

Syntax: value

EG: siggen/10 → A flat signal with value 10.

Epm macro trendmultichart
config\{\"promptIfDirtyClose\":true,\"layout\":0,\"height\":800,\"width\":0,\"seamless\":false,\"sync\":false,\"charts\":[\{\"trends\":[\{\"type\":\"datatag\",\"name\":\"siggen/sin10+20@1d+1h\",\"value\":\"siggen/sin10+20@1d+1h\",\"20@5d+1h\",\"description\":\"\",\"metaData\":\{\},\"hidden\":false,\"status\":\{\"_params\":\{\"contexts\":\{\}\}\},\"units\":\"\",\"enumerated\":null,\"replacements\":\{\},\"localData\":[]\},\{\"type\":\"datatag\",\"name\":\"siggen/cos20+20@5d-3600\",\"value\":\"siggen/cos20+20@5d-3600\",\"description\":\"\",\"metaData\":\{\},\"hidden\":false,\"status\":\{\"_params\":\{\"contexts\":\{\}\}\},\"units\":\"\",\"enumerated\":null,\"replacements\":\{\},\"localData\":[]\},\{\"type\":\"datatag\",\"name\":\"siggen/saw5+15@5d+2h\",\"value\":\"siggen/saw20+15@5d+2h\",\"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\":\"#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\":\"#ff7f0e\",\"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\":\"#2ca02c\",\"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\"\}],\"bounds\":[16448304000001642325460000,16449168000001644917460000],\"live\":truefalse,\"liveOffset\":\"\",\"liveSnapTo\":\"\",\"refreshRate\":\"auto\",\"sync\":false,\"title\":\{\"main\":\"\",\"sub\":\"\",\"fgcolour\":\"#333333\",\"bgcolour\":\"#ffffff\",\"size\":\"24\",\"alignment\":\"center\"\},\"seamless\":false,\"locked\":true,\"tz\":\"Europe/Oslo\",\"ampm\":false,\"numPoints\":1000,\"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\":[]\}