Welcome to the Traders Laboratory Forums.
TradeStation Custom Programming Discuss projects, ideas, obstacles in programming with TradeStation.

Reply
Old 08-03-2011, 06:40 PM   #1

Tradewinds's Avatar

Join Date: Nov 2008
Location: Northeast U.S.
Posts: 891
Ignore this user

Thanks: 373
Thanked 231 Times in 164 Posts
Blog Entries: 6

Default Indicator Style Settings Easy Language

In the Easy Language code editor, you can right click and bring up "Properties". This sets the default settings that are applied when an indicator is first inserted. You can also click the "Default" button to do the same thing. I like to set the defaults so that I don't need to designate in the code what I want the Style settings to be. For example:

Plot1(High + 0.1, "Plot Name", Blue, Default, 3);

I can just use:


Plot1(High + 0.1, "Plot Name");

And set the color and line weight in the default.
__________________
Precise, "dialed-in", targeted combination setups, like opening a combination lock; is the experience you should be having while trading. Dial left, right, left, . . . click - the lock opens.
Tradewinds is offline  
Reply With Quote
Old 08-03-2011, 08:41 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Default Indicator Style Settings Easy Language

Quote:
Originally Posted by Tradewinds »
In the Easy Language code editor, you can right click and bring up "Properties". This sets the default settings that are applied when an indicator is first inserted. You can also click the "Default" button to do the same thing. I like to set the defaults so that I don't need to designate in the code what I want the Style settings to be. For example:

Plot1(High + 0.1, "Plot Name", Blue, Default, 3);

I can just use:


Plot1(High + 0.1, "Plot Name");

And set the color and line weight in the default.
Your first line is called "Hard code".
ie you don't want to change things around.

Your second line is called "No code".
ie you want to change things around at the chart level.


The third choice is called "Soft code".
ie you want things changed automatically based on predefined conditions.


eg.

Code:
var: 
color(0);

if MA > MA[1] then 
color = blue
else 
color = red;

Plot1(High + 0.1, "Plot Name", color);
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Language prabuc Introduce Yourself 2 08-12-2010 03:06 PM
MCFX Power Language(Easy Language) Coding Issue fireworkz Coding Forum 4 02-28-2010 11:32 AM
Easy Language Indicator Help eggzactly Coding Forum 7 10-31-2009 08:38 PM
Help with OEC Indicator Easy Language minitrader Open E Cry 3 10-23-2009 12:26 PM
Easy Language in OEC, Help with Channel Indicator popstocks Coding Forum 10 11-07-2008 06:09 PM

All times are GMT -4. The time now is 09:59 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.