Learning By Example [Request] - futures io
futures io



Learning By Example [Request]


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one ReximusMaximus with 4 posts (3 thanks)
    2. looks_two userque with 2 posts (2 thanks)
    3. looks_3 brach with 2 posts (1 thanks)
    4. looks_4 bobwest with 1 posts (0 thanks)
    1. trending_up 665 views
    2. thumb_up 6 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Learning By Example [Request]

(login for full post details)
  #1 (permalink)
 ReximusMaximus 
SAINT LOUIS
 
Experience: Advanced
 
Posts: 32 since Aug 2019
Thanks: 5 given, 20 received

I'm looking to learn ninjascript to write some basic strategies. I'm a discretionary trader but prefer to automate my entries.

I've been using MQL4 and EasyLanguage for years for this, and now would like to tackle NinjaScript.

What is the best way to get ahold of some sample code for a strategy I'm going to begin testing? Is there a place where people will do this in the elite section (I rarely visit this site so am totally ignorant), or is it preferred that I post a job description somewhere?

It's remarkably simple as my exits (my edge) are discretionary.

Entry would be a break (I use pending stop market orders) X ticks across the extreme of the "swing" indicator.

Three filters:
1. Long above/short below - current session open price.
2. Long above/short below - current VWAP.
3. Long above zero/short below zero - cumulative volume delta (bid/ask).

I would enter with multiple contracts (let's say three for this example) with one stop, and exit with three targets.

Is this something I should go somewhere else and post a job for coders to bid on? I would really prefer to have the code rather than just the compiled program, so that I can learn and build upon the code as a learning exercise. I've found quite a few coders who do not like to share their code, so I'm not sure if this request will wrong people the wrong way.

Thanks for taking the time to read this, and please point me in the right direction if you're able.

Started this thread Reply With Quote
The following user says Thank You to ReximusMaximus for this post:

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(304 thanks from 30 posts)
looks_twoSalao's Journalby Salao
(81 thanks from 13 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(50 thanks from 21 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(38 thanks from 16 posts)
looks_5Maybe a little bit different journalby Malykubo
(17 thanks from 18 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
The Crude Dude Oil Trading System
123 thanks
Big Mike in Ecuador
51 thanks
Help improve the FIO community
38 thanks
Next New Poll Ideas/Suggestions
20 thanks
futures io site changelog and issues/problem reporting
17 thanks
 
(login for full post details)
  #2 (permalink)
userque
Chicago IL
 
 
Posts: 180 since Apr 2016
Thanks: 487 given, 126 received


ReximusMaximus View Post
I'm looking to learn ninjascript to write some basic strategies. I'm a discretionary trader but prefer to automate my entries.

I've been using MQL4 and EasyLanguage for years for this, and now would like to tackle NinjaScript.

What is the best way to get ahold of some sample code for a strategy I'm going to begin testing? Is there a place where people will do this in the elite section (I rarely visit this site so am totally ignorant), or is it preferred that I post a job description somewhere?

It's remarkably simple as my exits (my edge) are discretionary.

Entry would be a break (I use pending stop market orders) X ticks across the extreme of the "swing" indicator.

Three filters:
1. Long above/short below - current session open price.
2. Long above/short below - current VWAP.
3. Long above zero/short below zero - cumulative volume delta (bid/ask).

I would enter with multiple contracts (let's say three for this example) with one stop, and exit with three targets.

Is this something I should go somewhere else and post a job for coders to bid on? I would really prefer to have the code rather than just the compiled program, so that I can learn and build upon the code as a learning exercise. I've found quite a few coders who do not like to share their code, so I'm not sure if this request will wrong people the wrong way.

Thanks for taking the time to read this, and please point me in the right direction if you're able.

Your strategy would be easy to 'code' in NT; even with the strategy builder, it seems.

You could, first, try to code it using NT's strategy builder. SB uses English, not code.

You can then 'look' at the code NT generated from your 'English.' This becomes the 'sample code' you asked about.

Also, sample code is on the internet. There are statements/keywords that are found in nearly all Ninjascripts (NS), and nearly no where else. After looking at a few scripts, you'll see what I mean. You can google these statements/keywords/phrases to find additional scripts.

Sample Code:

https://ninjatrader.com/support/forum/forum/ninjascript-educational-resources/reference-samples

You can find lots of information in NT forums.

Reply With Quote
The following user says Thank You to userque for this post:
 
(login for full post details)
  #3 (permalink)
 brach 
Austin
 
Experience: Intermediate
Platform: NT, SC, MT
Trading: NQ, ES, Micros
 
brach's Avatar
 
Posts: 79 since May 2018
Thanks: 160 given, 209 received


When I started this video by Big Mike helped me. With that, plus some googling and finding examples in the NT forums, I was able to create my first live trading algo. This is based on NT7... I haven't made the move to NT8 yet.

Link:

Reply With Quote
The following user says Thank You to brach for this post:
 
(login for full post details)
  #4 (permalink)
 ReximusMaximus 
SAINT LOUIS
 
Experience: Advanced
 
Posts: 32 since Aug 2019
Thanks: 5 given, 20 received


userque View Post
Your strategy would be easy to 'code' in NT; even with the strategy builder, it seems.

You could, first, try to code it using NT's strategy builder. SB uses English, not code.

You can then 'look' at the code NT generated from your 'English.' This becomes the 'sample code' you asked about.

Also, sample code is on the internet. There are statements/keywords that are found in nearly all Ninjascripts (NS), and nearly no where else. After looking at a few scripts, you'll see what I mean. You can google these statements/keywords/phrases to find additional scripts.

Sample Code:

https://ninjatrader.com/support/forum/forum/ninjascript-educational-resources/reference-samples

You can find lots of information in NT forums.

Thanks for taking the time to reply.

My first inclination was to use the strategy builder to generate the sample code to learn from, however they removed VWAP and CVD due to some sort of technical issues according to their support team, this is what prompted me to come here.

And yes, I am very aware I can just google it. The purpose of this post was to save time, I am open to posting a job description in order to save that time but as you said I can just google it myself and spend that time.

Started this thread Reply With Quote
The following user says Thank You to ReximusMaximus for this post:
 
(login for full post details)
  #5 (permalink)
 ReximusMaximus 
SAINT LOUIS
 
Experience: Advanced
 
Posts: 32 since Aug 2019
Thanks: 5 given, 20 received


brach View Post
When I started this video by Big Mike helped me. With that, plus some googling and finding examples in the NT forums, I was able to create my first live trading algo. This is based on NT7... I haven't made the move to NT8 yet.

Link:

Thanks, I'm on NT8, how much of this content is relevant between versions?

Started this thread Reply With Quote
The following user says Thank You to ReximusMaximus for this post:
 
(login for full post details)
  #6 (permalink)
userque
Chicago IL
 
 
Posts: 180 since Apr 2016
Thanks: 487 given, 126 received


ReximusMaximus View Post
Thanks, I'm on NT8, how much of this content is relevant between versions?

I think you would confuse yourself trying to learn NT8, by learning NT7 first.

Also, I wasn't just telling you to "google it." You can google ninjascript and not find much sample code.

I told you to google the unique statements/keywords etc. that are in each ninjascript, to help you find sample scripts.

There is a big difference in the two search approaches; and doing the one I recommended is not intuitive for beginners, imo.

I'm sure we can help with such a simple strategy. As you proceed, if you choose to try to code it yourself, post whatever code you've written between CODE tags here ... and we'll see how it goes.

Reply With Quote
The following user says Thank You to userque for this post:
 
(login for full post details)
  #7 (permalink)
 brach 
Austin
 
Experience: Intermediate
Platform: NT, SC, MT
Trading: NQ, ES, Micros
 
brach's Avatar
 
Posts: 79 since May 2018
Thanks: 160 given, 209 received


ReximusMaximus View Post
Thanks, I'm on NT8, how much of this content is relevant between versions?

I haven't created anything substantial with Ninjascript 8 yet. If you search for ninjascript on the futures.io youtube channel you can probably find a couple of videos that cover v8.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
 ReximusMaximus 
SAINT LOUIS
 
Experience: Advanced
 
Posts: 32 since Aug 2019
Thanks: 5 given, 20 received


userque View Post
I think you would confuse yourself trying to learn NT8, by learning NT7 first.

Also, I wasn't just telling you to "google it." You can google ninjascript and not find much sample code.

I told you to google the unique statements/keywords etc. that are in each ninjascript, to help you find sample scripts.

There is a big difference in the two search approaches; and doing the one I recommended is not intuitive for beginners, imo.

I'm sure we can help with such a simple strategy. As you proceed, if you choose to try to code it yourself, post whatever code you've written between CODE tags here ... and we'll see how it goes.

Gotcha, thanks

Started this thread Reply With Quote
 
(login for full post details)
  #9 (permalink)
 bobwest 
Site Moderator
Sarasota FL
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
 
bobwest's Avatar
 
Posts: 6,458 since Jan 2013
Thanks: 48,934 given, 21,595 received


ReximusMaximus View Post
I'm looking to learn ninjascript to write some basic strategies. I'm a discretionary trader but prefer to automate my entries.

I've been using MQL4 and EasyLanguage for years for this, and now would like to tackle NinjaScript.

What is the best way to get ahold of some sample code for a strategy I'm going to begin testing? Is there a place where people will do this in the elite section (I rarely visit this site so am totally ignorant), or is it preferred that I post a job description somewhere?

It's remarkably simple as my exits (my edge) are discretionary.

Entry would be a break (I use pending stop market orders) X ticks across the extreme of the "swing" indicator.

Three filters:
1. Long above/short below - current session open price.
2. Long above/short below - current VWAP.
3. Long above zero/short below zero - cumulative volume delta (bid/ask).

I would enter with multiple contracts (let's say three for this example) with one stop, and exit with three targets.

Is this something I should go somewhere else and post a job for coders to bid on? I would really prefer to have the code rather than just the compiled program, so that I can learn and build upon the code as a learning exercise. I've found quite a few coders who do not like to share their code, so I'm not sure if this request will wrong people the wrong way.

Thanks for taking the time to read this, and please point me in the right direction if you're able.

One idea is that you can post your request in the free NT strategy thread. If you specify clearly what you are looking for, it may attract some attention and someone may be willing to give it a shot.

Link is here:



You can also often get help in NinjaScript coding by posting in the free NT indicator thread. I know you are not looking for an indicator, but if you have some particular coding question, you may find help there as well:



Since participation is by volunteers, you can't be guaranteed that someone will pitch in, but they often do. See if these work out for you.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Visit my futures io Trade Journal Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Learning By Example [Request]


Last Updated on March 8, 2021


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April

An Introduction to CME Group Micro Bitcoin Futures w/David Lerman

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
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.
no new posts