NexusFi: Find Your Edge


Home Menu

 





Can someone convert this to Ninjascript? (Thinkscript)


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one Big Mike with 1 posts (0 thanks)
    2. looks_two AndrasNagy with 1 posts (1 thanks)
    3. looks_3 adii800 with 1 posts (2 thanks)
    4. looks_4 jonesy73 with 1 posts (0 thanks)
    1. trending_up 2,579 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?
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
 
  #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,469 since Jun 2009
Thanks Given: 33,247
Thanks Received: 101,669

You'll probably get a better response here:



Mike



Join the free Markets Chat beta: one platform, all the trade rooms!

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