Automatic daily updating for Free Quotes not happening?

Questions about MultiCharts .NET and user contributed studies.
Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Automatic daily updating for Free Quotes not happening?

Postby Talky_Zebra » 12 Mar 2024

Hi all,

I noticed that daily updating for Free Quotes (ie: ^VIX, ^IXIC from yahoo) does not occur automatically after applying it to a chart. For instance, I set up a chart with IXIC on Friday, but as of this morning (more than one full trading day had past) it did not have the data for yesterday.

What's the setting for this so that I do not have to refresh this every day?

Thanks

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Automatic daily updating for Free Quotes not happening?

Postby Polly MultiCharts » 12 Mar 2024

Hello Talky_Zebra,

Free Quotes is free end-of-day historical daily bars coming from Yahoo Finance. It doesn't provide real-time data so it is expected that the charts will not update automatically.
In order to request historical data anew, you need to reload the charts via View → Reload.

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Automatic daily updating for Free Quotes not happening?

Postby Talky_Zebra » 12 Mar 2024

But, is there a way to set it up to refresh each day with "yesterday's" update?

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Automatic daily updating for Free Quotes not happening?

Postby Polly MultiCharts » 13 Mar 2024

Talky_Zebra,

As a workaround you might try creating a custom study that will automatically reload your chart. You can refer to these keywords:

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Automatic daily updating for Free Quotes not happening?

Postby Talky_Zebra » 13 Mar 2024

Thanks Polly, I see what needs to be done.

But wait, are those regular PowerLanguage commands? I don't see them in the .NET docs.

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Automatic daily updating for Free Quotes not happening?

Postby Polly MultiCharts » 14 Mar 2024

Talky_Zebra,

Yes, these are PL Keywords. In MultiCharts .NET you can refer to these keywords:
  • ExecControl.RecalcLastBarAfter()
  • ChartCommands.CommandLine()
  • DateTime.Now()

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Automatic daily updating for Free Quotes not happening?

Postby Talky_Zebra » 14 Mar 2024

Thanks again Polly. I found the following code, which when added to a simple indicator will update most, but not all charts.

Code: Select all

ExecControl.RecalcLastBarAfter(new TimeSpan(0, 0, 1));
This leads to another question. I cannot seem to find a description of the parameters for TimeSpan() in any of the codebase documentation (Programming guide PDF, web docs, or the IDE help docs). Can't find Now() either (via google there are too many false positives. :cry:

Maybe Now() is the better choice? Hard to tell without some sort of reference. If you find a link, I'd like to read about how to use these and understand the differences.

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Automatic daily updating for Free Quotes not happening?

Postby Polly MultiCharts » 15 Mar 2024

Talky_Zebra,

This class is not specific to MultiCharts .NET, so if there is no description of it in MultiCharts guides, you might want to find some additional info on the Internet in third party resources.

HellGhostEvocatorX
Posts: 80
Joined: 10 Feb 2022
Has thanked: 52 times
Been thanked: 11 times

Re: Automatic daily updating for Free Quotes not happening?

Postby HellGhostEvocatorX » 17 Mar 2024

Take a look at chatgpt, chatgpt is ideal for such “simple” questions https://chat.openai.com/share/72380861- ... a49884f6bc

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Automatic daily updating for Free Quotes not happening?

Postby Talky_Zebra » 21 Mar 2024

Polly and Hellghost thank you.

I am new to C# so did not initially understand that TimeSpan is not part of the PowerLanguage namespace. (I am coming over to MC from MT4/MT5, and I am not really a coder.) I'm very comfortable with C style syntax.... but still naive about many details about both MC and C#. So I am learning both simultaneously.

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Talky_Zebra

Postby Talky_Zebra » 25 Mar 2024

Hi Polly, to the above, can you direct me to a full list of CommandLine commands and their syntax? I am looking to understand what's in the toolkit.

The best I could find was a few from Josh's tutorials and this page: https://www.multicharts.com/trading-sof ... ommandLine

Is that the full list?

Thanks

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: Automatic daily updating for Free Quotes not happening?

Postby Polly MultiCharts » 27 Mar 2024

Talky_Zebra,

You can refer to the list of the supported commands on this page.


Return to “MultiCharts .NET”