Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

what is 'overload' ? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
jrf-word
Posted : Monday, July 26, 2010 10:52:59 PM
Registered User
Joined: 7/19/2010
Posts: 5

'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:macdavgcrs
'|*** Example: plot = price.close - price.close(1)
'|******************************************************************
'=========================================================================
'=== convert: (avg/price.close)*100 to remove $ uom
'=== is me.isfirstbar first physical entry in table, left to right ?????
'=========================================================================
Dim pmvavg20 As Single = price.close       'AVG(20)
plot pmvavg20

'??? what is "overload resolution failed because no accessible 'plot' accepts this
'??? number of arguments.
 

 

Bruce_L
Posted : Tuesday, July 27, 2010 9:39:32 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please keep in mind when reading my explanation that I am not a programmer and that there may be subtleties that I am missing in both my interpretation and explanation.

Overload is multiple variables or functions with the same name differentiated only be the number and type of arguments. An overload resolution fails when a valid variable or function is detected but where the number of and types of arguments do not match any of the definitions for that name.

The problem in this particular case appears to be the lack of an = sign between plot and pmvavg20 in the last line. What seems to be happening is that pmvavg20 is being interpreted as an argument for Plot. This produces the message given above and (at least on my computer) an additional complaint that the argument is not in parentheses.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.