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 |

Putting Text in a Column Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ethanbenjamini
Posted : Saturday, November 3, 2012 6:36:19 AM
Registered User
Joined: 6/22/2010
Posts: 27

I'd like to create criteria that produce a text that can be displayed in a column. ie to test for conditions and output a word.

I found an exaple question from 2008 in which you said it could not be done - but lots has changed since then. Here is that example;

If {
[(Bar.Close(n-4) > Bar.Close(n-3)) AND
(Bar.Close(n-3) > Bar.Close(n-2)) AND
(Bar.Close(n-2) > Bar.Close(n-1)) AND
(Bar.Close(n-1) > Price(n))] Then
Column.Value = “SHORT”
}
ELSEIF{
[(Bar.Close(n-4) < Bar.Close(n-3)) AND
(Bar.Close(n-3) < Bar.Close(n-2)) AND
(Bar.Close(n-2) < Bar.Close(n-1)) AND
(Bar.Close(n-1) < Price(n))] Then
Column.Value = &ldquo;LONG&rdquo;
}
ELSE{
Column.Value = &ldquo;&rdquo;
}
ENDIF
 
The code example is not important to me - I'm looking for the script to output text.
 
Is there a listing of  script codes and thier formating criteria? ie the format the system expects for an IF statement a above?
 
Thanks,
Ethan
Bruce_L
Posted : Monday, November 5, 2012 9:14:42 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There is not a way to do this currently. Thank you for the suggestion. It has been assigned case number 9193.

The PCF Formula Descriptions topic contains a compehensive list of the syntax which is valid in the Personal Criteria Formula Language and the Handy PCF example formulas to help you learn the syntax of PCFs! topic has some basic examples of how to use the syntax in PCFs.



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