| 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 | ||
![]() | 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 | ||
![]() | 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 | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy Language Help | JKLM | Automated Trading | 7 | 02-10-2009 11:17 PM |
| Easy Language - Question | ephi144 | Coding Forum | 1 | 01-25-2009 10:15 PM |
| Help with Easy Language | BrianA | Coding Forum | 29 | 01-13-2009 03:32 PM |
| Easy Language in OEC, Help with Channel Indicator | popstocks | Coding Forum | 10 | 11-07-2008 06:09 PM |
| Easy Language Strategy Help | Marc33139 | Automated Trading | 3 | 07-28-2008 11:35 AM |