#P_rSymbol_Properties

EasyLanguage and other code for TradeStation
User avatar
progster
Posts: 948
Joined: Thu Jul 26, 2007 7:20 pm
Contact:

#P_rSymbol_Properties

Postby progster » Sun Mar 18, 2012 2:19 pm

Provides a RadarScreen/Scanner overview of symbol properties: MM, PS, BPV, TickPts, TickDlrs

P_rSymbol_Properties_01.png

Being able to access and view this information can be helpful when using other platforms in conjuction with TS, where such information needs to be keyed into a symbol definition database by the user.

Enjoy!

Code: Select all

{   
   Indicator:   #P_rSymbol_Properties
   
   Provides a RadarScreen/Scanner overview of symbol properties.
   
   MM, PS, BPV, TickPts, TickDlrs

}

vars:
   MM( MinMove ),
   PS( PriceScale ),
   BPV( BigPointValue ),
   TickPts( 0 ),
   TickDlrs( 0 );
   

Once Begin
   if (MM <= 0) then RaiseRuntimeError( "Error - Reported MinMove <= 0." ) ;
   if (PS <= 0) then RaiseRuntimeError( "Error - Reported PriceScale <= 0." ) ;
   if (BPV <= 0) then RaiseRuntimeError( "Error - Reported BigPointValue <= 0." ) ;
End;

   
TickPts = MM / PS ;

TickDlrs = BPV * TickPts ;

Plot10(MM, "MM");
Plot12(PS, "PS");
Plot14(BPV, "BPV");
Plot16(TickPts, "TickPts");
Plot18(TickDlrs, "TickDlrs");
You do not have the required permissions to view the files attached to this post.

User avatar
progster
Posts: 948
Joined: Thu Jul 26, 2007 7:20 pm
Contact:

Re: #P_rSymbol_Properties

Postby progster » Mon Mar 19, 2012 2:21 pm

Attached is a RadarScreen workspace with lots of futures symbols loaded and displaying their properties.

P_rSymbol_Properties_02.png
You do not have the required permissions to view the files attached to this post.


Return to “TradeStation Code”

Who is online

Users browsing this forum: No registered users and 1 guest