| Automated Trading Black box systems, strategy automation, algorithmic trading, etc... |
![]() | | Tweet | |
| | #1 | ||
![]() | TradeStation Easy Language Reutrn Statement I am currently working on a tradestation function which requires early return. Please find an example attached below: if (x=y) then return if(y>3) then return y=y+1; Note that there seems to be no return statement for easy langauge. It would be really nice if someone can provide me with some advice. Thanks in advance | ||
| |
|
| | #2 | ||
![]() Join Date: Feb 2008 Location: There is no place like home! Posts: 249 Thanks: 235
Thanked 160 Times in 86 Posts
Blog Entries: 20 | Re: TradeStation Easy Language Reutrn Statement if (x <> y) and (y <= 3) then y = y + 1; ???
__________________ As no two people see the same view along the Way, all trips from here to there are imaginary; all truth is a tale I am telling myself. --- Brion Gysin, "The Process" | ||
| |
|
| | #3 | ||
![]() Join Date: Nov 2007 Location: boonies Posts: 1,178 Thanks: 299
Thanked 299 Times in 213 Posts
Blog Entries: 104 | Re: TradeStation Easy Language Reutrn Statement One solution is within the function dim a variable and set it via your various conditions then at the end of your code set functionname = the variable you used. like… vars: yvariable (... ; if (x=yvariable ) or (yvariable >3) then yvariable = 0 // assign a 'unusable' value here else yvariable = yvariable +1; functionname = yvariable; then test in object calling the function if it returned 'unusable' value else use it... clunky but... hth | ||
| |
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy Language Help | JKLM | Automated Trading | 7 | 02-11-2009 12:17 AM |
| Easy Language - Question | ephi144 | Coding Forum | 1 | 01-25-2009 11:15 PM |
| Help with Easy Language | BrianA | Coding Forum | 29 | 01-13-2009 04:32 PM |
| Easy Language in OEC, Help with Channel Indicator | popstocks | Coding Forum | 10 | 11-07-2008 07:09 PM |
| Easy Language Strategy Help | Marc33139 | Automated Trading | 3 | 07-28-2008 12:35 PM |