Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

tbalanco

Members
  • Content Count

    2
  • Joined

  • Last visited

Personal Information

  • First Name
    Tem
  • Last Name
    Balanco
  • Country
    United States

Trading Information

  • Vendor
    No
  1. Hi, I appreciate your assistance. Would you mind showing me how I can edit my existing standard code in Tradestation included below with your suggestion? Again, I would greatly appreciate it. Unfortunately, not a programmer even at this basic level. My Code from Tradestation standard 3 averages: inputs: Price( Close ), FastLength( 4 ), MedLength( 9 ), SlowLength( 18 ), Displace( 0 ) ; variables: FastAvg( 0 ), MedAvg( 0 ), SlowAvg( 0 ) ; FastAvg = AverageFC( Price, FastLength ) ; MedAvg = AverageFC( Price, MedLength ) ; SlowAvg = AverageFC( Price, SlowLength ) ; if Displace >= 0 or CurrentBar > AbsValue( Displace ) then begin Plot1[Displace]( FastAvg, "FastAvg" ) ; Plot2[Displace]( MedAvg, "MedAvg" ) ; Plot3[Displace]( SlowAvg, "SlowAvg" ) ; { Alert criteria } if Displace <= 0 then begin Condition1 = Price > FastAvg and FastAvg > MedAvg and MedAvg > SlowAvg ; if Condition1 and Condition1[1] = false then Alert( "Bullish alert" ) else begin Condition2 = Price < FastAvg and FastAvg < MedAvg and MedAvg < SlowAvg ; if Condition2 and Condition2[1] = false then Alert( "Bearish alert" ) ; end ; end ; end ;
  2. Hi, I was wondering if there is a script or a way to display the number of the moving average graphically on the moving average line? Here is a screen shot of my Tradestation daily chart mocked up with what I would like to do: http://screencast.com/t/nA9x96kP7 Any code out there that can help with this? Thank you in advance. Tem
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.