Script Convert Indicator Set To Comma Separated

Avatar
  • updated

Hello Community,

I have created a script in Powershell that converts the values of an indicator to the values needed to use in CP (CustomIndy) >= version 2.49

Image 3450

CommunityPowerEA_Custom_Indicators_Settings.ps1

Avatar
Ulises Cune

You must have both files in the same directory. Search Youtube/Google how to run a Powershell script.

Avatar
Asad

Hey Ulises, 

I am trying to start the script but I am getting this error. 

What am I doing wrong here?

Image 5956

Avatar
Ulises Cune

BugFix

Edit .ps1

Replace:

#Number 

if ($value -match "^[\d\.]+$")

By:

#Number 

if ($value -match "^[\d\.\-]+$")

Add "\-"

Avatar
Ulises Cune

You have to save the indicator configuration and then drag this file (*.set) to the script to then copy the value from the Texbox below called "Indicator parameters (comma separated):" to the CP indicator, for example to #1 and set it. paste in the parameter "Indicator parameters (comma separated):" as indicated

The script automates putting all indicator values separated by commas.

Image 4483

Image 4484

Avatar

thank you for make script this

help me to put text mode in EA set

Avatar
Ulises Cune
Quote from Gulm Veriine

i dont see numbers

Could you attach the .set file?

Avatar
Gulm Veriine

i dont see numbers

Avatar
Jerome Powell

Wow thank you for work Ulises, this will help alot!! I try it asap.