Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

any takers on this one

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • chartlearner
    replied
    Hey RJ,

    I have included a screenshot of the Trix I modified in TS along with the code. I hope this helps. I am looking to get this one to change colors like the one in the image if you can.

    Thanks, Tom



    Code:
    [LegacyColorValue = false]; 
    { 2-Line TRIX indicator for Jongseon Kim's TAOSC article
    "When and When Not To Trade", TAOSC - Jan. 2004 }
    inputs:
     SigLineXMALen1( 3) ,
     TRIXLength( 3.75) ,
     SigLineXMALen2( 4.5) ;
     
    variables:
     EMA1( 0 ),
     EMA2( 0 ),
     EMA3( 0 ),
     TRIXLine( 0 ),
     SignalLine1( 0 ),
     SignalLine2( 0 ) ;
    
    EMA1 = XAverage( Close, TRIXLength ) ;
    EMA2 = XAverage( EMA1, TRIXLength ) ;
    EMA3 = XAverage( EMA2, TRIXLength ) ;
    if EMA3[1] <> 0 then 
     
     { Ensure not about to divide by zero }
     TRIXLine = 10 * ( EMA3 - EMA3[1] ) / EMA3[1] ;
    SignalLine1 = XAverage( TRIXLine, SigLineXMALen1 ) ;
    SignalLine2 = XAverage( TRIXLine, SigLineXMALen2 ) ;
    Plot1( TRIXLine, "TRIXLine1" ) ;
    Plot2( SignalLine1, "SignalLine1" ) ;
    Plot3( SignalLine2, "SignalLine2" ) ;
    Plot1( TRIXLine, "TRIXLine1" ) ;  
    if TRIXLine >= TRIXLine[1] then 
     SetPlotColor(1,rgb (0,127,255)){slateblue}
    else 
     SetPlotcolor(1,rgb(255,36,0)); 
    Plot2( SignalLine1, "SignalLine1" ) ;  
    if SignalLine1 >= SignalLine1[1] then 
     SetPlotColor(2,green) 
    else 
     SetPlotcolor(2,Magenta); 
     
    Plot3( SignalLine2, "SignalLine2" ) ;
    if SignalLine2 >= 0 then
     SetPlotcolor (3,DarkGreen)
    else
     SetPlotcolor (3,darkred);
    Attached Files

    Leave a comment:


  • jaybird151
    replied
    thanks for all the hard work--------looking forward to see what you have come up with




    thanks

    Leave a comment:


  • eDanny
    replied
    Preferable tonight so I can be trying tomorrow morning.

    Leave a comment:


  • RJay
    replied
    Yeah !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I found it !!!!!!!!!!!!!!

    I'm going to watch this indicator for a while to make sure its going to be OK.

    I will post updated zip files later tonight or later in the day tomarrow.

    I will also be posting something special I think you'll like.

    It will be worth the wait.

    RJay

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    Briefly looked at the code guys, you could try using a short Momentum() to realize this indicator - http://www.ninjatrader-support.com/H.../Momentum.html

    Leave a comment:


  • RJay
    replied
    Originally posted by eDanny View Post
    Too bad since it is useless updating a bar late.
    Guys,

    When I first ported this indicator. I saw its potential. Rest assured I will pursue this until all issues have been resolved.

    RJay

    Leave a comment:


  • RJay
    replied
    Ok shoot me. I couldn't see the problem becouse I was working with historic data over the weekend. This morning with a live feed I can clearly see the problem.

    I wasn't happy with my initial porting of this indicator. So I'm glad I put some time into it.

    I originally thought the problem was with this line of code getting zero's in the numerator or denominator.

    TRIXLine1.Set(10 * ( EMA3[0] - EMA3[1] ) / EMA3[1] );

    I believe I have covered that possibility with this weekend's updates.

    I am out of position now but I may know what's wrong, AGAIN!!!

    If anyone else figures it out, go ahead and post it.

    Stay tuned,

    RJay

    Leave a comment:


  • eDanny
    replied
    Too bad since it is useless updating a bar late.

    Leave a comment:


  • chartlearner
    replied
    Hey guys,

    Thanks for the hard work. Unfortunately,I tried the newest version Trix2v2 and still have the same problem.

    Thanks, Tom

    Leave a comment:


  • RJay
    replied
    I guess I just don't know when to quit.

    try this one.

    RJay

    PS. It has a different name on it so dup your strategy and add new indicator.

    Zip file updated in a later posting.

    Zip file deleted.
    Last edited by RJay; 12-16-2008, 01:24 PM.

    Leave a comment:


  • Kowal
    replied
    Originally posted by rt6176 View Post
    Code had a math issue that needed correcting.

    Hopefully this is the last change.

    RJay
    Hi,

    I have just finished testing new new version. I fell bad being messenger of another bad news - its giving EMA3[0] = 0 still, no exceptions.
    Maybe its time to cry now? ;-)

    Regards

    Leave a comment:


  • RJay
    replied
    Code had a math issue that needed correcting.

    Hopefully this is the last change.

    RJay

    Zip file updated in a later posting.

    Zip file deleted.
    Last edited by RJay; 12-16-2008, 01:24 PM.

    Leave a comment:


  • RJay
    replied
    Sorry, I'm having issues with the loop commands covering this condition.

    If this doesn't work, There is one more thing I can try.

    Please test and let me know.

    Thanks,

    RJay

    (Zip file has been updated again. See next post for download!!!!!!!)
    Last edited by RJay; 12-14-2008, 06:39 AM.

    Leave a comment:


  • Kowal
    replied
    Originally posted by rt6176 View Post
    Can someone test to see if this version is working OK???

    It always looked alright on my computer.

    Thanks,

    RJay
    Hi,

    first of all thanks a lot for posting new version!
    However it works exactly the same as the previous one ;-( When starting strategy with CalculateOnBarClose set to False it gives me EMA3[0]=0 what makes indicator and strategy useless.
    Rjay: did you check it with false? and did work out? Hmm...

    Regards

    Leave a comment:


  • RJay
    replied
    Originally posted by chartlearner View Post
    Thanks for the hard work! The only problem I am having is when I set it to calc on close=false it becomes 1 line scrunched together?

    Thanks, Tom
    Can someone test to see if this version is working OK???

    It always looked alright on my computer.

    Thanks,

    RJay

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by SalmaTrader, 07-07-2026, 10:26 PM
0 responses
35 views
0 likes
Last Post SalmaTrader  
Started by CarlTrading, 07-05-2026, 01:16 PM
0 responses
20 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 06-17-2026, 10:32 AM
0 responses
12 views
0 likes
Last Post CaptainJack  
Started by kinfxhk, 06-17-2026, 04:15 AM
0 responses
18 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 06-17-2026, 04:06 AM
0 responses
20 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Working...
X