TRAILING PRICE ALERT INDICATOR
Posted: 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?