Supercharts realtime

Discussion in 'Trading Software' started by Breakout, Apr 30, 2002.

  1. Hi...I was wondering if one of you guys who use Tradestation could help a lowly Supercharts user. I want to see the formula Tradestation uses for their MACD indicator. I can't see it because I don't have Powereditor. I have this...MACD(PRICE,FASTMA,SLOWMA),but the canned MACD also has an MACDMA which is what I want to know how to express for a custom indicator. Thanks
     
  2. Woody

    Woody

    inputs:
    FastLength( 12 ),
    SlowLength( 26 ),
    MACDLength( 9 ) ;

    Plot1( MACD( Close, FastLength, SlowLength ), "MACD" ) ;
    Plot2( XAverage( Plot1, MACDLength ), "MACDAvg" ) ;
    Plot3( Plot1 - Plot2, "MACDDiff" ) ;
    Plot4( 0, "ZeroLine" ) ;

    { Alert criteria }
    if Plot3 crosses over 0 then
    Alert( "Bullish alert" )
    else if Plot3 crosses under 0 then
    Alert( "Bearish alert" ) ;