is there a CSV Function? or a list of string functions

Studies that have been contributed to the community by other users. If you’ve got something useful to share, that’s great!
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

is there a CSV Function? or a list of string functions

Postby arjfca » 06 Jul 2011

Hello

I'm reading and capturing a string from a text file.
ex: DataReady,EUR.USD,Buy Stop,37000,1.4367,Stop Loss, 1.4345

Now, I want to place all the appropriates value to a is corresponding variables

Code: Select all

Dataready (False), // String is valid, go on
Market (""), // Market name
OrdertoExecute (""), // Buy Stop, Sell Stop, Buy Market, Sell market etc
QTY (0), // QTY
OrderPrice (0), // Entry price for the order
StopLoss (0); // Exit Price for the order
I do have the Instr instruction that I could use, but I don't found a function to read x characters from the characters position value in the string determined by Instr.

Martin

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

Re: is there a CSV Function? or a list of string functions

Postby TJ » 06 Jul 2011

look up MidStr

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

Re: is there a CSV Function? or a list of string functions

Postby TJ » 06 Jul 2011

press [F1] gives you the complete list

Image
Attachments
text.jpg
(14.51 KiB) Downloaded 1015 times


Return to “User Contributed Studies and Indicator Library”