NexusFi: Find Your Edge


Home Menu

 





EasyLanguage SuperTrend indicator


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 11 posts (59 thanks)
    2. looks_two ABCTG with 9 posts (6 thanks)
    3. looks_3 chtangwin with 6 posts (26 thanks)
    4. looks_4 Sam7768 with 5 posts (2 thanks)
      Best Posters
    1. looks_one Big Mike with 5.4 thanks per post
    2. looks_two chtangwin with 4.3 thanks per post
    3. looks_3 cedar with 1.3 thanks per post
    4. looks_4 ABCTG with 0.7 thanks per post
    1. trending_up 188,946 views
    2. thumb_up 104 thanks given
    3. group 42 followers
    1. forum 87 posts
    2. attach_file 9 attachments




 
Search this Thread
  #11 (permalink)
jvbehar
Miami, Florida USA
 
Posts: 5 since Dec 2010
Thanks Given: 0
Thanks Received: 0

Hello BigMike/Others: Can you suggest a way to get the formal algorithm for the SuperTrend Indicator?

I converted Roonius' v2.3 Ninja script available at tradingstudies.com to TS EasyLanguage successfully but from time to time the price and the indicator diverge due to conditions that are no being contemplated by the code. In order to correct that I need to know the algorithm, have not been able to figure out the underlying theory by looking at the code's logic ("reverse engineering").

Roonius has not responded but perhaps someone out there can point me in the right direction.

Thanking you in advance,

JVBehar


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
CME Lists U.S. Election Event Contracts as 2028 Democrat …
Prediction Markets & Event Contracts
SEC and CFTC Unlock Customer Cross-Margining for Treasur …
Treasury Notes and Bonds
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
CFTC Advances Prediction Markets Regulation -- Chairman …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
5 thanks
  #12 (permalink)
 Sam7768 
Dallas, Texas, USA
 
Experience: Beginner
Platform: NT 6.5 & Tradestation
Trading: Equities & ES
Posts: 47 since Sep 2010
Thanks Given: 21
Thanks Received: 9

---

Thanks Mike, this is great.

Need some guidance from Tradestation gurus...how do I covert txt files in to ELD files? I tried to important txt files but TS is not accepting them.

Thanks much....


Reply With Quote
  #13 (permalink)
 Sam7768 
Dallas, Texas, USA
 
Experience: Beginner
Platform: NT 6.5 & Tradestation
Trading: Equities & ES
Posts: 47 since Sep 2010
Thanks Given: 21
Thanks Received: 9


Found the answer. Posting below for future use...

https://www.tradestation.com/Discussions/Topic.aspx?Topic_ID=110336&PAGE=1&


Reply With Quote
Thanked by:
  #14 (permalink)
 
Serger's Avatar
 Serger 
Quebec
 
Experience: Intermediate
Platform: Multicharts 64 +VolProfile
Broker: Interactive Brokers
Trading: Ym, Es
Posts: 74 since Oct 2010
Thanks Given: 64
Thanks Received: 25

Newbie to code
I try to make a signal whit Big Mike SuperTrend ... . but any resultats have you idea why ?
I have compile it and any error ???
{ Super Trend strategy }

inputs: price(Close), SuperTrend( 21 ), upColour(Blue), downColour(Red);
variables: Avg(0), colour(0);



if Avg > Avg[1] then colour = upColour;
if Avg < Avg[1] then colour = downColour;


{buy sell Criteria}

if colour[1] <> colour then
if colour = upColour then
Buy ( "jup" ) next bar at market ;

if colour[1] <> colour then
if colour = downColour then
sell short ( "jdn" ) next bar at market ;



Thank you for your help if ......


Reply With Quote
  #15 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0

Good evening everyone ... sorry for my english I have a problem .... use of tradepulse fastbrokers and should use the language .... I have a easy language code for the Hull .... but I do not agree and I several mistakes .... can someone help me ... This applies to the 3d right? Thanks


Reply With Quote
  #16 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


Tom Joad View Post
Good evening everyone ... sorry for my english I have a problem .... use of tradepulse fastbrokers and should use the language .... I have a easy language code for the Hull .... but I do not agree and I several mistakes .... can someone help me ... This applies to the 3d right? Thanks

In order to help, you'll need to describe the exact problem. A screenshot is helpful.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:
  #17 (permalink)
Tom Joad
Milano
 
Posts: 13 since May 2011
Thanks Given: 29
Thanks Received: 0


Big Mike View Post
In order to help, you'll need to describe the exact problem. A screenshot is helpful.

Mike

Thank you Mike...(Big Mike)
I managed to solve right now and your disponibilita'e'ottima. I am happy to be part of this community ', I have some language problem but I think I make it a nice day


Reply With Quote
  #18 (permalink)
 Lamboo 
Stockholm
 
Experience: Intermediate
Platform: Nanotrader/ tradestaion
Broker: WHS / TS
Trading: EC / SI / ES / BP
Posts: 19 since Mar 2011
Thanks Given: 8
Thanks Received: 5

Hello Mike,

I impoted this supertrend in TS but both lines stay RED even though the settings are right red and blue.



Lamboo


Reply With Quote
  #19 (permalink)
 Sam7768 
Dallas, Texas, USA
 
Experience: Beginner
Platform: NT 6.5 & Tradestation
Trading: Equities & ES
Posts: 47 since Sep 2010
Thanks Given: 21
Thanks Received: 9


Big Mike View Post
In order to help, you'll need to describe the exact problem. A screenshot is helpful.

Mike

Hello Mike, and other Tradestation Experts,

I am trying to write a strategy (in Tradestation) based on the super trend...

" if st cross below close then buy ("buy") next bar at market;"

Attached a screen shot. At times, even though close is above Supertrend, Supertrend does not change (which is a good thing), and price comes back to below the super trend, but how do I code this?

If I say "st cross below close" the strategy triggers a buy even though the Supertrend does not change the side.

Any advice / suggestions?

Sam


Attached Thumbnails
Click image for larger version

Name:	Picture1.png
Views:	858
Size:	284.5 KB
ID:	39028  
Reply With Quote
  #20 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557


Sam,

You need to post your full code so someone can look it over and duplicate the issue. You can post just a minimal signal that you confirm duplicates the problem.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Started this thread Reply With Quote




Last Updated on March 19, 2026


© 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