TradersStudio , Traders Tips.

Discussion in 'Events' started by Murray Ruggiero, Oct 22, 2008.

  1. Gyles

    Gyles

    Welcome, Derrick1983 for your kind words. Am providing with one more simple translation as below.

    The original TradeStation code is here, http://www.tssupport.com/support/base/?action=article&id=1324

    Code:
    Sub Reversal123()
    
                    Dim VALUE1 As BarArray
                    Dim VALUE2 As BarArray
                    Dim CONDITION1 As BarArray
                    Dim CONDITION2 As BarArray
                    Dim CONDITION3 As BarArray
                    Dim CONDITION4 As BarArray
                    Dim CONDITION5 As BarArray
                    Dim CONDITION6 As BarArray
                    Dim CONDITION7 As BarArray
                    Dim VALUE1CONDITION8 As BarArray
                    Dim CONDITION8 As BarArray
    
                    If BarNumber=FirstBar Then
                                    VALUE1 = 0
                                    VALUE2 = 0
                                    CONDITION1 = 0
                                    CONDITION2 = 0
                                    CONDITION3 = 0
                                    CONDITION4 = 0
                                    CONDITION5 = 0
                                    CONDITION6 = 0
                                    CONDITION7 = 0
                                    VALUE1CONDITION8 = 0
                                    CONDITION8 = 0
                    End If
    
                    VALUE1=SlowK(9, 0)
                    VALUE2=SlowD(9, 0)
                    CONDITION1=CLOSE[2] < CLOSE[1]
                    CONDITION2=CLOSE > CLOSE[1]
                    CONDITION3=VALUE1>VALUE1[1]
                    CONDITION4=VALUE2<50
                    CONDITION5=CLOSE[1]>CLOSE[2]
                    CONDITION6=CLOSE50
    
                    If CONDITION1 AND CONDITION2 AND CONDITION3 AND CONDITION4 Then
                                    Buy("", 1, 0, Market, Day)
                    End If
    
                    If CONDITION5 AND CONDITION6 AND CONDITION7 AND CONDITION8 Then
                                    Sell("", 1, 0, Market, Day)
                    End If
    
    End Sub
    
    Please let me know if you have any queries?
     
    #11     Aug 29, 2009
  2. Thanks again! Gyles, it was really good to have more examples. :)

    A question please, "So, are BarArray like the standard variables in TradeStation?"
     
    #12     Sep 1, 2009
  3. Gyles

    Gyles

    Thanks Derrick1983 for your kind words. :)

    The answer is "Yes".
     
    #13     Sep 2, 2009
  4. Gyles, Thanks for the answer. :)
    One more question please, "Is the translation easy with set rules or you need to know programming basics to be able to do this?
     
    #14     Sep 11, 2009
  5. #15     Sep 11, 2009
  6. Gyles

    Gyles

    Welcome, Derrick1983. :)
    Please have a look at the following threads for a better understanding of the above:

    1. Programming your Trading Ideas in TradersStudio and TradeStation
    2. What do you think of TradersStudio?
    3. Wealth Lab Pro: Good of bad?

    Please also see the following video:
    Videos

    In the meantime, shall try to make this easier through more explanations and screen shots.
     
    #16     Sep 23, 2009
  7. Gyles

    Gyles

    Derrick1983, the above link does not seem to work. Please give the correct link. Thanks! :)
     
    #17     Sep 24, 2009
  8. Murray Ruggiero

    Murray Ruggiero Sponsor

    We were a bit behind putting up traders tips but now have them listed to date on our site.
     
    #18     Sep 28, 2009
  9. Thanks for pointing it out, Gyles :) I was surprised to know that and was wondering why no new posts are coming there. Shall contact the administrator of the Yahoo group and let you know of the link as soon as possible.
     
    #19     Sep 28, 2009