[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Variable Inputs [again...]



PureBytes Links

Trading Reference Links

Dimitris,

Sorry but I don't understand your question.

StrExtract is a function that operates on single STRING
not on arrays/numbers. 

StrExtract( fullstring, nth)

nth substring (comma separated) from fullstring.

There is no 'variable period' because no periods are ever considered.

fullstring looks like this:

"AAPL,INTC,MSFT"

and when you call
StrExtract( "AAPL,INTC,MSFT", 1 )

it will return "INTC"

the nth is an index (single number) to comma-separated substring.

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 14, 2003 3:01 PM
Subject: [amibroker] Variable Inputs [again...]


> Tomasz,
> I have almost created the Inspection Points Equity check for the 
> whole database.
> At the end of the IB code I have a difficulty because
> StrExtract( list, item ) 
> does not accept variable item.
> The most profitable item is #72 for 6 months, #4 for the next 4 
> months etc.
> I know [out of the loop] the function
> item=D
> and D is integer, but StrExtract( list, item ) stops the code.
> Any tip to overcome this ?
> [In AA there is no problem, Status("STOCKNUM") varies from 0 to 100 
> and can do the job]
> TIA
> Dimitris Tsokakis
> 
> 
> 
> Send BUG REPORTS to bugs@xxxxxxxxxxxxx
> Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/JYdFFC/XP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/