Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1688

Feeds & Internet Data • Re: Market Prices

$
0
0
Hello Mordasius - your help is much appreciated!

I love your approach to add new variables DecPlacesX so that we can set individual decimals per stock! Proposal: This fits perfectly into Stocksymbols.inc like this (better than putting it into MarketPrices.ini I think):

Code:

Label-1="-"Symbol1=.DJIDecPlaces1=2Label-2="-"Symbol2=.FTSEDecPlaces2=0Label-3="-"Symbol3=.SPXDecPlaces3=1...
However, I followed your instructions line by line (even not yet putting DecPlacesX in Stocksymbols.inc, which works just the same) and I have to report it does not work. I even reverted back to your original script Market_Prices_by_mordasius_dchxbyy.rmskin just to confirm it's not caused by other modifications I made. But the error persists: I think the error is caused by the Substitute=",":"" in [mIndex1_Price]. This seems to return "0" all the time! However, I also found Calc: Extra operation as error in the Log, so the Calc measure is the issue?! Fixing this is currently above my head... Thanks for looking into this!

More improvements you probably already considered:
1) For consistency put FormatPrice.lua into the @Resources subfolder and call the script with ScriptFile=#@#FormatPrice.lua
2) For the other meters after [LabelPrice1] surely we need to modify MetMeaTemplate.inc at [LabelPrice_^1^] , correct? I think I will manage doing that, once the decimal trick above works!
3) Stupid question: Does the FormatPrice lua script keep the thousands separator commas? E.g. 12,345.67 should not be displayed as 12346 (assuming 0 digits are set) but rather as 12,346 ... Can the script do that?

Substitute-PROBLEM - see these screenshots before & after below:
Image

Image

Looking for the Calc Extra operation error, I found this hint - I have a feeling this is the way to go, but I may be completely wrong:
You could also have the calc measure disabled then use finishaction on webparser to enable it. This is the way to handle webparsers

Statistics: Posted by emp00 — Yesterday, 7:36 pm



Viewing all articles
Browse latest Browse all 1688

Trending Articles