NexusFi: Find Your Edge


Home Menu

 





TOS - Ninjascript


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one dsraider with 7 posts (4 thanks)
    2. looks_two bambangww with 3 posts (0 thanks)
    3. looks_3 MAWA with 2 posts (0 thanks)
    4. looks_4 shodson with 1 posts (1 thanks)
      Best Posters
    1. looks_one lolu with 2 thanks per post
    2. looks_two shodson with 1 thanks per post
    3. looks_3 papa15 with 1 thanks per post
    4. looks_4 dsraider with 0.6 thanks per post
    1. trending_up 21,051 views
    2. thumb_up 8 thanks given
    3. group 16 followers
    1. forum 26 posts
    2. attach_file 2 attachments




 
Search this Thread

TOS - Ninjascript

  #1 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

Hi All,

I'm using a really, really, really good indicator for TOS which I'd like to convert to ninjascript and use in an automated strategy. Unfortunately, I only speak thinkscript so if anyone is willing to do this, I think we'll both be very happy with the outcome. My current success rate with this strategy is 85 - 90%. Please reply if interested and I'll email my TOS code.

Thanks in advance,
Dave

Moderator Notice
Moderator Notice


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Deepmoney LLM
Elite Quantitative GenAI/LLM
NexusFi Journal Challenge - April 2024
Feedback and Announcements
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
27 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (permalink)
 
DavidHP's Avatar
 DavidHP 
Isla Mujeres, MX
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
Frequency: Every few days
Duration: Minutes
Posts: 1,609 since Aug 2009
Thanks Given: 11,328
Thanks Received: 2,743


dsraider View Post
Hi All,

I'm using a really, really, really good indicator for TOS which I'd like to convert to ninjascript and use in an automated strategy. Unfortunately, I only speak thinkscript so if anyone is willing to do this, I think we'll both be very happy with the outcome. My current success rate with this strategy is 85 - 90%. Please reply if interested and I'll email my TOS code.

Thanks in advance,
Dave

Wow that is a pretty impressive success rate.
What type of indicator is it?
Can you post a chart?

Thanks

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on Twitter Reply With Quote
  #3 (permalink)
 eone 
Toronto, ON
 
Experience: Beginner
Platform: NinjaTrader
Posts: 108 since Sep 2009
Thanks Given: 32
Thanks Received: 28


You have invoked some interest. Let us see the chart.

Reply With Quote
  #4 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

On the advice of a fellow trader, I installed SuperTrend and played around with the inputs (3, VMA, 1.23, 3, ATR). It's a pretty dead on match for what I'm using on TOS. I would post a chart but it's asking me for a URL and I'm barely capable of shutting down properly...

Give this a whirl on the 1600 tick (or chart of your choosing - I'll be testing many, now that I can), remembering to only enter if the 20k vol Double MA (5 HMA, 45 VMA) agrees.

Thanks for showing interest. If I have another update, I'll be certain to post.

Dave

Reply With Quote
Thanked by:
  #5 (permalink)
erraimo
Italy
 
Posts: 4 since Jan 2010
Thanks Given: 2
Thanks Received: 0

Thanks a lot. Is it possible for you to post the script of tos? Can you post an immage to explain better? To do this you can clic on Insert Immage icon. Which time frame do you use and where do yuo have better results? (futures?)
Bye

Reply With Quote
  #6 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

erraimo,

I'd love to post a pic (especially since I did really well today) but as previously stated, the insert image icon is asking me for a URL. If you can show me how to just upload what I have directly, I'd be more than happy to.

I'm using this on the 1600 Tick chart and I ONLY trade the ES.

Reply With Quote
  #7 (permalink)
 timefreedom 
Indianapolis, IN USA
 
Experience: Advanced
Platform: Ninjatrader TOS Custom
Broker: Several
Trading: ES CL ZB
Posts: 374 since Dec 2009
Thanks Given: 226
Thanks Received: 381

Hi Ds,
I use both TOS and Ninja - has been quite a slow and tedious process helping to prod TOS into their Active Trader releases over the past year. They keep improving but it's frustrating when you compare their thinkscript with ninjascript for example. (Or when they come out with a "whistles & bells" upgrade when we need basic tools like range bars, volume bars, user defined tick bars, etc. Anyway, I've coded several indies for both TOS and Ninja and will be glad to help if I can. Good trading.

Reply With Quote
  #8 (permalink)
 
lolu's Avatar
 lolu 
Lagos, Nigeria
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader, SierraChart
Trading: Euro Currency & Oil
Frequency: Daily
Duration: Hours
Posts: 2,552 since Jun 2009
Thanks Given: 1,049
Thanks Received: 1,678


dsraider View Post
erraimo,

I'd love to post a pic (especially since I did really well today) but as previously stated, the insert image icon is asking me for a URL. If you can show me how to just upload what I have directly, I'd be more than happy to.

I'm using this on the 1600 Tick chart and I ONLY trade the ES.

The first process is to paste/save your screen shot/image on a folder (e. g. Desktop, My Documents, etc). Then go through the normal process of posting, then you'll see the "Manage Attachments" link (see attached snapshot) in the "Additional Options" pane. Click on the "Manage Attachments" link to choose where you must have pasted/saved your screen snapshot file, then click on "Upload".

On the other you can attach your template (which is already in the "My Documents\NinjaTrader 6.5\templatesChart" folder, using the same process of "Manage Attachments".

Lolu

Attached Thumbnails
Click image for larger version

Name:	ManageAttachment.png
Views:	557
Size:	180.8 KB
ID:	7169  
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #9 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87

lolu - Thanks for the directions. Big Mike, since I see you checked out this thread, thank you very, very much for these indicators. This is yesterday's 1600 tick ES chart. Since I scalp, yesterday I was 100%. I've received several PMs telling me it's next to impossible to write a strat that enters when these two indicators agree. I don't understand why but maybe this pic will give someone an idea of which I haven't yet thought.

Happy Trading,
Dave

Attached Thumbnails
Click image for larger version

Name:	strategy.JPG
Views:	1088
Size:	163.4 KB
ID:	7176  
Reply With Quote
  #10 (permalink)
dsraider
New York, NY
 
Posts: 142 since Dec 2009
Thanks Given: 41
Thanks Received: 87


Okay, since TSSupertrend apparently hates me, I tried ATR Trailing instead, for now. I came up with the following, which compiles, but doesn't seem to work how it should:

(For longs)...

if ((DoubleMA(5, NinjaTrader.Indicator.MAV.MAType.HMA, 45, NinjaTrader.Indicator.MAV.MAType.VMA).Signal[0] == 1) && (ATRTrailing(4, 10, 0.02).Upper[0] == 1))
EnterLongLimit(DefaultQuantity, 0, "");

(For shorts)...

if ((DoubleMA(5, NinjaTrader.Indicator.MAV.MAType.HMA, 45, NinjaTrader.Indicator.MAV.MAType.VMA).Signal[0] == -1) && (ATRTrailing(4, 10, 0.02).Lower[0] == -1))
EnterShortLimit(DefaultQuantity, 0, "");

Both seem to be entering at the same time. It's strange. I'm sure it's something small, so if someone sees it, please let me know.

Thanks,
Dave

Reply With Quote




Last Updated on February 11, 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