NexusFi: Find Your Edge


Home Menu

 





Convert this NT code to EL, Please


Discussion in EasyLanguage Programming

Updated
    1. trending_up 3,719 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 8 posts
    2. attach_file 3 attachments




 
Search this Thread
  #1 (permalink)
lizmerrill
san francisco, calif
 
Posts: 13 since Sep 2009
Thanks Given: 0
Thanks Received: 2

Can any savvy NT coders, recode the attached code for NT to Tradestation Easylanguage.
Would really appreciate it.

Blessings to All,

Liz


Attached Files
Elite Membership required to download: Lin_Reg_Color_Paint_v01.cs
Elite Membership required to download: @SUM.cs
Elite Membership required to download: @LinReg.cs
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


ok, this is what you like to convert i think :




its the LinReg that colors its line and the Bars depending on up / down (blue / red)
and a flat-definition (yello Bars / gray line)

now what is your question to the algo ?


max-td
Reply With Quote
  #4 (permalink)
lizmerrill
san francisco, calif
 
Posts: 13 since Sep 2009
Thanks Given: 0
Thanks Received: 2

when does the lr line change color, ...when the angle crosses a critical level, or when the lr line changes direction...what is the conditions for color change in the lr line?

thanks


Reply With Quote
  #5 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

its an angle-algo :

an angle below the value is flat / gray
an angle above it is colored


max-td
Reply With Quote
  #6 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

once it was a 2-step angle- check for flat, soft and strong angle with multiple colors
.
but this is out of function in this special linReg inidi here.
its a leftover from an other variation with MAs.

thats why you have angle1 + angle2 in the code.


max-td
Reply With Quote
  #7 (permalink)
lizmerrill
san francisco, calif
 
Posts: 13 since Sep 2009
Thanks Given: 0
Thanks Received: 2

So again, how does the color change for the lr line:
correct me:
if the slope of the lr line is up ( either by lr>lr[1] ) and angle 1 or angle2 is greater than threshold, then lr line is blue???
(if so, why not just one input for angle, why angle1 and angle2?


Reply With Quote
  #8 (permalink)
lizmerrill
san francisco, calif
 
Posts: 13 since Sep 2009
Thanks Given: 0
Thanks Received: 2

let me try again, after rereading your earlier response:
if lr is pointed up ( lr> lr[1]) and angle is greater than threshold, then paint line blue, right?
if lr is pointed up, and angle is <=threshold, then paint line gray for flat..?

do you use the slope to assess then direction of the lr line, or just lr>lr[1] etc?

Blessings,

Liz


Reply With Quote
  #9 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

OK, there we go :



lizmerrill View Post
let me try again, after rereading your earlier response:


if lr is pointed up ( lr> lr[1]) and angle is greater than threshold, then paint line blue, right? exactly


if lr is pointed up, and angle is <=threshold, then paint line gray for flat..? exactly


do you use the slope to assess then direction of the lr line, or just lr>lr[1] etc?

>>>>

this is the first check of the indicator >> if ( Rising (LinReg(Input,period))) --

and later it goes on with an

else (means - if not rising = falling )
for the other side

thats how its done in this code

hope it helps!


max-td
Reply With Quote




Last Updated on January 20, 2011


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts