switching chart type during optimization from Easy Language

Questions about MultiCharts and user contributed studies.
krzysiaczek99
Posts: 19
Joined: 23 Sep 2012
Been thanked: 2 times

switching chart type during optimization from Easy Language

Postby krzysiaczek99 » 12 Jul 2023

Hi all,

Is it possible to switch chart type in EL script e.g for one value from optimizer to be OHLC and another RENKO? ChatGPT says its possible
saying I can use SetChartType or ChartType but they don't compile.
Yes, `ChartType` and `SetChartType` are common for both Easy Language and Power Language¹.

If you're using MultiCharts and `ChartType` and `SetChartType` are not recognized during compilation, it's possible that you are using an older version of MultiCharts that doesn't support these reserved words. You can try using the following code instead:
```
ChartType = 1;
```

I hope this helps! Let me know if you have any other questions.

Source: Conversation with Bing, 12/07/2023
(1) ui.Chart.setChartType | Google Earth Engine | Google for Developers. https://developers.google.com/earth-eng ... tcharttype.
(2) Chart.ChartType property (Excel) | Microsoft Learn. https://learn.microsoft.com/en-us/offic ... .ChartType.
(3) XlChartType enumeration (Excel) | Microsoft Learn. https://learn.microsoft.com/en-us/offic ... lcharttype.

User avatar
Kate MultiCharts
Posts: 597
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: switching chart type during optimization from Easy Language

Postby Kate MultiCharts » 17 Jul 2023

Hi krzysiaczek99,

No, it's not possible I'm afraid.


Return to “MultiCharts”