TL_SetStyle Bug
Forgotten Your Password?
Connect with Facebook
Frequent Questions

Coding Forum Collaborate, receive help, or discuss coding related issues.

Coding Forum Thread, TL_SetStyle Bug in Trading Resources; Hello everybody ! It tooks long time and investigations before I've found a bug which slowed down mysteriously but dramatically ...
Reply
2 2 Attachment(s)
 
LinkBack Thread Tools Display Modes

TL_SetStyle Bug  

  #1  
Old 09-26-2009, 05:13 AM
aaa's Avatar
aaa is offline aaa
aaa Ah! Ah! Ah!
 
Join Date: Jun 2008
Location: .
Posts: 408
Thanks: 226
Thanked 150 Times in 91 Posts


Hello everybody !

It tooks long time and investigations before I've found a bug which slowed down mysteriously but dramatically MC

In my pivot script I've added these lines

inputs:
...
PivotStyle( 2 ), // or 3
PivotSize ( 4 ),

...

TL_SetStyle(TL_PP, PivotStyle);
TL_SetSize(TL_PP, PivotPPSize );

Execpt 1 ( Tool_Solid ________________ )

all the others styles values must never be more than 1 !

Hope that it helps
Attached Images
File Type: jpg aa.jpg (104.0 KB, 80 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #2  
Old 09-26-2009, 10:06 AM
Tams's Avatar
Tams doesn't care about your sim blotter... LOL
 
Join Date: Sep 2008
Location: Geelong
Posts: 2,234
Thanks: 1,250
Thanked 939 Times in 558 Posts
Originally Posted by aaa View Post
...
all the others styles values must never be more than 1 !

Hope that it helps

not sure if I understand what you mean.
__________________

It appears to be some great stuff and if you ever feel like discussing a possible business arrangement, let me know. I'm always looking for ways to improve. .....LOL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #3  
Old 09-26-2009, 10:07 AM
Tams's Avatar
Tams doesn't care about your sim blotter... LOL
 
Join Date: Sep 2008
Location: Geelong
Posts: 2,234
Thanks: 1,250
Thanked 939 Times in 558 Posts
Originally Posted by aaa View Post
[IMG]
It tooks long time and investigations before I've found a bug which slowed down mysteriously but dramatically MC

see this post...
http://www.traderslaboratory.com/for...html#post64333



.
__________________

It appears to be some great stuff and if you ever feel like discussing a possible business arrangement, let me know. I'm always looking for ways to improve. .....LOL

Last edited by Tams; 09-26-2009 at 10:30 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #4  
Old 09-26-2009, 05:05 PM
aaa's Avatar
aaa is offline aaa
aaa Ah! Ah! Ah!
 
Join Date: Jun 2008
Location: .
Posts: 408
Thanks: 226
Thanked 150 Times in 91 Posts
that's because there is an error in coding:
the code is adding a NEW trendline at every bar.
the dotted line you see is not a dotted line...
each dot is actually a trendline; if you click on the dot, you can drag the dot out and see the trendline.

You were right Tams and I don't know why I haven't read this post before = I should wear glasses, or stop drinking !!!



In a script, If we add

TL_SetSize(Value99, 4 ); // 4 is an example, in fact a thickness more than 0

to a trendLine (value99) Dashed or Dotted

It transforms each Dash or Dot in an object

Pivots starts to be heavy to manage for the GPU/CPU

This is why it is not possible to increase the weight in the format study (?)



I hope that my post is clearest now and I'll be please to clearer it more if needed.

Sincerely Yours

aaa
Attached Images
File Type: jpg aa.jpg (24.6 KB, 43 views)

Last edited by aaa; 09-26-2009 at 05:19 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #5  
Old 09-26-2009, 05:41 PM
Tams's Avatar
Tams doesn't care about your sim blotter... LOL
 
Join Date: Sep 2008
Location: Geelong
Posts: 2,234
Thanks: 1,250
Thanked 939 Times in 558 Posts
Originally Posted by aaa View Post
...
This is why it is not possible to increase the weight in the format study (?)

First thing first... the picture above is for PLOT, not trendline.
__________________

It appears to be some great stuff and if you ever feel like discussing a possible business arrangement, let me know. I'm always looking for ways to improve. .....LOL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #6  
Old 09-26-2009, 05:43 PM
Tams's Avatar
Tams doesn't care about your sim blotter... LOL
 
Join Date: Sep 2008
Location: Geelong
Posts: 2,234
Thanks: 1,250
Thanked 939 Times in 558 Posts
that's because there is an error in coding:
the code is adding a NEW trendline at every bar. <-- I mean it should not be doing it. It should draw ONE line and that's it.
the dotted line you see is not a dotted line...
each dot is actually a trendline; if you click on the dot, you can drag the dot out and see the trendline.

go to your chart...

click on your trendline... hold down the mouse... and DRAG the line away.

what do you see?

do you see another line there?



.
__________________

It appears to be some great stuff and if you ever feel like discussing a possible business arrangement, let me know. I'm always looking for ways to improve. .....LOL

Last edited by Tams; 09-26-2009 at 05:59 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: TL_SetStyle Bug  

  #7  
Old 09-28-2009, 03:32 AM
aaa's Avatar
aaa is offline aaa
aaa Ah! Ah! Ah!
 
Join Date: Jun 2008
Location: .
Posts: 408
Thanks: 226
Thanked 150 Times in 91 Posts
do you see another line there?

Before = Yes = CPU > 40 %

Now = No = CPU < 10 %

YhanX Tams, always helpfull for beginners

Have a nice Week
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (10-28-2009)
Reply

Tags
trendline




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

» »

» Invite Friends