Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-13-2010, 11:59 AM   #1
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Power Language Problem

Hi

I've addedd Xtension Line 2 an indicatort with

tl_new_self

The pblem is that Multicharts doesn't erase the INTRABAR drawned line after the 1rst bar

Each Bar it moves 2 the left like in my snapshots ( please use a 1 mn resolution = it's quicker 2 C it)

Very annoying

Is there a kind Power Language Xpert 2 help me 2 resolve that pblem?

rgds

aaa

PS Hope that it's not a bug


Attached Thumbnails
Power Language Problem-snap7.jpg  
Attached Files
File Type: pla MACD Xtension.pla (3.4 KB, 1 views)
File Type: txt MACD Extension Example.txt (598 Bytes, 6 views)

Last edited by aaa; 05-13-2010 at 12:08 PM.
aaa is offline  
Reply With Quote
Old 05-13-2010, 01:12 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Power Language Problem

you can see how i do it:

Moving Average with extension
http://www.traderslaboratory.com/for...sion-5642.html


128.84
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 05-13-2010, 01:22 PM   #3
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Power Language Problem

U forgot that I'm a fan of your indicator TAMS !

I've learned all from them !

Sorry but B4 posting I've tried also your Obliq Line Xtension code with the same problem

If U have time 2 load on your graph the MACD Xample U'll C that's there is a bug (?)

Code:
 
inputs: FastLength( 2 ), SlowLength( 4 );
variables: var0( 0 ) ;
var0 = MACD( Close, FastLength, SlowLength ) ;
Plot1( var0, "MACD" ) ;
// TAMS Indicator Oblique
 
  variables:
  id.tl.Obl( -1 );
 
 if currentbar = 1  then
  id.tl.Obl = tl_new_self(date, time[1], var0[1], date, time, var0 );
 
   tl_setbegin(   id.tl.Obl, date, time[1], var0[1]);     
   tl_setend(    id.tl.Obl, date, time,    var0);     
   tl_setextright( id.tl.Obl, true); 
 
   tl_setcolor( id.tl.Obl, white  );
   tl_setsize(  id.tl.Obl, 1 );
 
{
// Indicator Horizontal
 variables: 
 Old.id.tl.Hor( 0 ),
 id.tl.Hor(  0 ),
 id.tl.Hor.ext( 0 );
 
 If TL_Exist(     Old.id.tl.Hor) then
  TL_Delete( Old.id.tl.Hor);   
 
 if lastbaronchart then
 begin
  id.tl.Hor.ext = tl_new_self(d, t, var0, d, t, var0);
  id.tl.Hor     = TL_SetExtRight( id.tl.Hor.ext , True );  
  Old.id.tl.Hor = id.tl.Hor.ext ; 
 end;
  tl_setsize(  id.tl.Hor.ext, 1 );
  tl_setcolor( id.tl.Hor.ext, white )
 
}
aaa is offline  
Reply With Quote
Old 05-13-2010, 01:29 PM   #4

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Power Language Problem

I don't use delete... LOL
you can only delete something if you know which is the one you want to delete.
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 05-13-2010, 01:31 PM   #5
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Power Language Problem

sorry I dono understand...

OK understood now
aaa is offline  
Reply With Quote
Old 05-13-2010, 01:31 PM   #6

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Power Language Problem

Code:
 If TL_Exist(     Old.id.tl.Hor) then
  TL_Delete( Old.id.tl.Hor);

What is Old.id.tl.Hor
Where did it come from ?!?!?
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 05-13-2010, 01:34 PM   #7
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Power Language Problem

It's a code found on TL that works 100% (guaranteed) perfectly

I suggest that U try with your code

// TAMS Indicator Oblique

And U'll C the same prblem

I'm afraid that tl_new_self is bugged

I guarantie that these codes works perfectly on a main chart like with an average

Last edited by aaa; 05-13-2010 at 01:39 PM.
aaa is offline  
Reply With Quote
Old 05-13-2010, 01:38 PM   #8

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Power Language Problem

Quote:
Originally Posted by aaa »
It's a code found on TL that works 100% (guaranteed) perfectly

I suggest that U try with your code

// TAMS Indicator Oblique

It's the same prblem
hahaha... I only understand External Oblique


Attached Thumbnails
Power Language Problem-external-oblique.jpg  
__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Ninja? bailey123 Trading and the Markets 7 05-09-2010 04:34 PM

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