New functions, please advise.  [SOLVED]

Questions about MultiCharts and user contributed studies.
wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

New functions, please advise.

Postby wilkinsw » 25 Sep 2018

Hi,

I was wondering why have the following functions been added:

AccuracyGetNamedDouble
AccuracyGetNamedInt
AccuracySetNamedDouble
AccuracySetNamedInt

Do they 100% replace the older:

GetNamedDouble
GetNamedInt
SetNamedDouble
SetNamedInt

?

I'm curious as to what might be wrong with the older functions. Should I change all instances of code using the older functions?


Seperately on just one of my machines i've found these non-compilable functions and have no idea where they came from:
non compilable.PNG
(10.69 KiB) Downloaded 654 times

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: New functions, please advise.

Postby TJ » 25 Sep 2018

They have been around since 2015

wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

Re: New functions, please advise.

Postby wilkinsw » 25 Sep 2018

Ha, yep I'm so slow on the uptake.

Yet I can't find any supporting literature anywhere on them.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: New functions, please advise.

Postby TJ » 25 Sep 2018

They are for GV

wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

Re: New functions, please advise.

Postby wilkinsw » 25 Sep 2018

I've made this confusing by asking two questions.

1) Why were these created:

AccuracyGetNamedDouble
AccuracyGetNamedInt
AccuracySetNamedDouble
AccuracySetNamedInt

2) I've found some Global variable functions on one machine that don't compile and aren't on any other machine I run MC64 on.

TJ, do you (or any other MC user) possess any of these exact GV associated functions:
non compilable.PNG
(10.69 KiB) Downloaded 646 times
I might've exactly imported them with something else. I'm hoping they are superfluous. Do I need them?

wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

Re: New functions, please advise.

Postby wilkinsw » 25 Sep 2018

Regarding my second question.

Why doesn't this compile:

Code: Select all

external: "GlobalVariable.dll", int, "GV_SetInteger64", int, int64 ;

inputs:
int ElementLocation( numeric ),
int64 GVValue( numeric ) ;

variables:
int RtnVal( -1 ) ;


if LastBarOnChart then
RtnVal = GV_SetInteger64( ElementLocation, GVValue ) ;

GVSetInteger64 = RtnVal ;

Value1 = Ticks ; { Force RadarScreen to update every tick. }

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: New functions, please advise.

Postby TJ » 25 Sep 2018

What's the error message?

wilkinsw
Posts: 662
Joined: 21 Apr 2013
Has thanked: 154 times
Been thanked: 104 times

Re: New functions, please advise.

Postby wilkinsw » 25 Sep 2018

error.PNG
(4.08 KiB) Downloaded 644 times

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: New functions, please advise.

Postby ABC » 26 Sep 2018

wilkinsw,

they are likely functions for a 3rd party add-on indicator or strategy and are closed code. If that is the case they are automatically installed with Multicharts. The vendor has likely created separate functions of existing ones (you would have to contact the vendor to find out what they do exactly) in order to prevent public functions to become locked.
In the past this was not necessarily the case and when vendors used public functions they became closed code after a Multicharts installation/update which created problems for all other users using these functions. Therefore it's good that they create their own versions now.

Regards,

ABC
1) Why were these created:

AccuracyGetNamedDouble
AccuracyGetNamedInt
AccuracySetNamedDouble
AccuracySetNamedInt

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: New functions, please advise.  [SOLVED]

Postby Henry MultiСharts » 26 Sep 2018

Exactly as ABC stated above: In MultiCharts 9.0 Release 4 we've added copies of GlobalVariable functions that are utilized by the prebuilt addons. This is something that was reported by ABC here: http://www.multicharts.com/discussion/v ... 859#p82770


Return to “MultiCharts”