TRAILING PRICE ALERT INDICATOR

post your indicators here

Moderator: moderators

User avatar
TheRumpledOne
rank: 10000+ posts
rank: 10000+ posts
Posts: 11396
Joined: Sun May 14, 2006 9:31 pm
Reputation: 45
Location: Oregon
Real name: Avery T. Horton, Jr.
Gender: None specified
Contact:

TRAILING PRICE ALERT INDICATOR

Postby TheRumpledOne » Tue Jul 18, 2006 3:28 pm

Code: Select all

{ _Price_Alert_Trail }


{Attn: TradeStation
if this indicator is posted on the TradeStation Forum, I, TheRumpledOne, did NOT post it there,
so I can't be blamed for this indicator having my contact info.}


{Programmer:  Avery T. Horton, Jr.  aka TheRumpledOne,
gifts and donations accepted, PO Box 43575, Tucson, AZ 85733 }

{ © Copyright 2006 Avery T. Horton, Jr.}
   
inputs:
      
iStartPrice( 1.2500 ),
iTrailingPrice( .0010 ),   
iTargetColor1(red),

Price( Close ) ,
      
iDrawLines(true);


Vars:
   
HH(iStartPrice),
xTrailPrice(0);

{ PRICE ALERT ONE }


if high > HH
and lastbaronchart
   then HH = high ;


xTrailPrice = HH - iTrailingPrice ;
   
if price <= xTrailPrice
then begin
   Alert( "Trailing Price Hit" );
End; // if price <= xTrailPrice


If iDrawLines and HH > 0
   then Plot1( HH, "StartPriceHH", iTargetColor1  ) ;

If iDrawLines and iStartPrice > 0
   then Plot2( xTrailPrice, "TrailPrice1", iTargetColor1  ) ;



They have trailing price for strategies so why not for charts/radar?

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

Return to “Tradestation indicators”