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.
|
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
|