Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
MA Extention Details »»
MA Extention
Platform: , by pitrader pitrader is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: Unknown Rating:
Released: 02-27-2011 Last Update: Never Installs: 0
 
No support by the author.

I need a little help with some coding. I have a TS MA that has a TL attached to it in order to extend the MA off into the future. I cannot figure out how to set the color of the TL within the code. I have the code below and would appreciate it if somebody could help me out.

Thanks.

Pi

inputs: Price( (high+low)/2), Length( 21), Displace( 0) ;
variables: Avg( 0 ),
TL (-1);
Avg = AverageFC( Price, Length ) ;

if Displace >= 0 or CurrentBar > AbsValue( Displace ) then
begin
Plot1[Displace]( Avg, "Avg" ) ;
Once TL=TL_New(Date,Time,0,Dat e,Time,0);

TL_SetEnd(TL,Date[Displace],Time[Displace],Plot1 [Displace] );
TL_SetBegin(TL,Date[Displace+1],Time[Displace+1],Plot1[Displace+1]);
TL_SetExtRight(TL,true) ;

End;
{ Alert criteria }
if Displace <= 0 then
begin
if Price crosses over Avg then
Alert( "Price crossing over average" )
else if Price crosses under Avg then
Alert( "Price crossing under average" ) ;
end ;

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Reply

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


All times are GMT -4. The time now is 11:06 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.