SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : TA-Quotes Plus

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Ken Adams who wrote (5104)7/2/1998 6:34:00 PM
From: TechTrader42  Read Replies (2) of 11149
 
Ken and Ed: Sorry, I've been absent from my post.

The info you're looking for is in the help file. Go to: 4. Scans, then 4.9 Dictionary of scan functions; then Print/Println:

Formatting strings and numbers

You can also format individual items in your Print and Println statements, by specifying the length of an items and whether it should be right or left justified. For numerical values, you can specify the number of decimal places to print. See the example below.
Example 4:

Exchange AMEX;

If Close(0) > 50.0 then

Println Symbol: -10, Close(0):8:3, Description:44;

endif;

The first value printed is the symbol of the stock selected. This symbol will be left justified (as signified by the minus sign on the 10) using a minimum of 10 columns.
The next value to be printed is the latest close for the selected stock. This value will be right justified using a minimum of 8 columns. The ":3" signifies the number of digits to the right of the decimal point to print. If the close for a stock is 52.5, the value printed will be " 52.500" .
The last string to be printed is the description of the current selected stock. This value will be right justified using a minimum of 44 columns.
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext