NexusFi: Find Your Edge


Home Menu

 





Can someone convert this to Ninjascript? (Thinkscript)


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one adii800 with 1 posts (2 thanks)
    2. looks_two jonesy73 with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 AndrasNagy with 1 posts (1 thanks)
    1. trending_up 2,568 views
    2. thumb_up 3 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

Can someone convert this to Ninjascript? (Thinkscript)

  #1 (permalink)
 
AndrasNagy's Avatar
 AndrasNagy 
WOODLAND, CA Yolo
 
Experience: Intermediate
Platform: TWS, StreetSmartEdge
Broker: Interactive Brokers, Schwab
Trading: Options, Mutual Funds, ES
Posts: 22 since Jun 2020
Thanks Given: 15
Thanks Received: 12

# Mobius
# SuperTrend
# Chat Room Request
input AtrMult = 1.0;
input nATR = 4;
input AvgType = AverageType.HULL;
input PaintBars = yes;
def ATR = MovingAverage(AvgType, TrueRange(high, close, low), nATR);
def UP = HL2 + (AtrMult * ATR);
def DN = HL2 + (-AtrMult * ATR);
def ST = if close < ST[1] then UP else DN;
plot SuperTrend = ST;
SuperTrend.AssignValueColor(if close < ST then Color.RED else Color.GREEN);
AssignPriceColor(if PaintBars and close < ST

then Color.RED

else if PaintBars and close > ST

then Color.GREEN

else Color.CURRENT);

AddChartBubble(close crosses below ST, low[1], low[1], color.PINK);
AddChartBubble(close crosses above ST, high[1], high[1], color.LIGHT_GREEN, no);
# End Code SuperTrend

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
What is Markets Chat (markets.chat) real-time trading ro …
Trading Reviews and Vendors
Increase in trading performance by 75%
The Elite Circle
Better Renko Gaps
The Elite Circle
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (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,441 since Jun 2009
Thanks Given: 33,215
Thanks Received: 101,599

You'll probably get a better response here:



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 Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (permalink)
adii800
Santa Clara + California/USA
 
Posts: 10 since Feb 2020
Thanks Given: 24
Thanks Received: 5


This is the supertrend indicator by Mobius correct?

I too wanted this on Ninjatrader (8) some time ago and scoured the web and eventually found the attached file.

Can't remember the exact source though, its been a while

BTW this is the indicator for Ninja trader 7, If someone were to convert this to NT8 that would be awesome.

Do let us know what strategies you come up with using this!

Best of luck

Attached Files
Elite Membership required to download: SuperTrend.zip
Reply With Quote
Thanked by:
  #4 (permalink)
jonesy73
London, Canada
 
Posts: 7 since Apr 2023
Thanks Given: 3
Thanks Received: 1

Hi, wondering if there is a tool available that will convert NT7 code to NT8 or if someone has already converted the supertrend indicator to NT8.



adii800 View Post
This is the supertrend indicator by Mobius correct?

I too wanted this on Ninjatrader (8) some time ago and scoured the web and eventually found the attached file.

Can't remember the exact source though, its been a while

BTW this is the indicator for Ninja trader 7, If someone were to convert this to NT8 that would be awesome.

Do let us know what strategies you come up with using this!

Best of luck


Reply With Quote




Last Updated on May 21, 2023


© 2024 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 - Privacy Policy - Downloads - Top
no new posts