NexusFi: Find Your Edge


Home Menu

 





Want to create an indicator and have no idea where to start?


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 58 posts (9 thanks)
    2. looks_two ThatManFromTexas with 16 posts (5 thanks)
    3. looks_3 LostTrader with 6 posts (2 thanks)
    4. looks_4 cory with 5 posts (3 thanks)
      Best Posters
    1. looks_one cory with 0.6 thanks per post
    2. looks_two ThatManFromTexas with 0.3 thanks per post
    3. looks_3 LostTrader with 0.3 thanks per post
    4. looks_4 forrestang with 0.2 thanks per post
    1. trending_up 26,103 views
    2. thumb_up 20 thanks given
    3. group 5 followers
    1. forum 93 posts
    2. attach_file 30 attachments




 
Search this Thread

Want to create an indicator and have no idea where to start?

  #11 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


ThatManFromTexas View Post
Which one caused the error?

It was this one:

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
30 thanks
Tao te Trade: way of the WLD
26 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
20 thanks
  #12 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,355


forrestang View Post
It was this one:


Ok, skip that one. It was exported in NT 6.5.

If the others worked, they should give you a basis to build from.

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #13 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



TMFT View Post
Ok, skip that one. It was exported in NT 6.5.

If the others worked, they should give you a basis to build from.

Do you, or anyone for that matter know where any good BASIC tutorials are that explain syntax, and the basic structure of how the files are created?

I think trying to sort through most of these files at the beginning trying to understand them is a bit of trouble for me.

I kind of want to create something from scratch so that I understand what is going on.

Started this thread Reply With Quote
  #14 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,355


forrestang View Post
Do you, or anyone for that matter know where any good BASIC tutorials are that explain syntax, and the basic structure of how the files are created?

I think trying to sort through most of these files at the beginning trying to understand them is a bit of trouble for me.

I kind of want to create something from scratch so that I understand what is going on.

Not the way you want.

If you go to NT Support forum they will refer you to their sample code and suggest you read them and copy and paste.

Try this

https://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?VideoLibrary

NinjaTrader Version 7

Reference Samples - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
  #15 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


ThatManFromTexas View Post
Not the way you want.

If you go to NT Support forum they will refer you to their sample code and suggest you read them and copy and paste.

Try this

https://www.ninjatrader-support.com/HelpGuideV6/helpguide.html?VideoLibrary

NinjaTrader Version 7

Reference Samples - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Thanks. Ya, I've been there. I'm going to just have to start from the beginning and hope I can get something workable. Reading the manual now.

Started this thread Reply With Quote
  #16 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Woot! "Phase 1" of my hopeless journey complete!

As mentioned, I am working with 3 oscilators( 2 histograms and 1 regular oscilator). I have FINALLY figured out how to get access to them, and have successfully painted an arrow based on the vertical position of these oscilators on the chart. I.e. if >10, draw an arrow. This is just so I can see what is going on.

Now I need to continue, and get access to the colors of these histograms.

After that, it will be getting access to some color bars that one of the oscilators paints which might be a bit more complicated as it is based on the swings.

Then it will simply be all the various conditional statements to create my logic.

Started this thread Reply With Quote
  #17 (permalink)
 
ThatManFromTexas's Avatar
 ThatManFromTexas 
Houston,Tx
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: TF
Posts: 2,265 since Feb 2010
Thanks Given: 1,206
Thanks Received: 4,355


forrestang View Post
Woot! "Phase 1" of my hopeless journey complete!

As mentioned, I am working with 3 oscilators( 2 histograms and 1 regular oscilator). I have FINALLY figured out how to get access to them, and have successfully painted an arrow based on the vertical position of these oscilators on the chart. I.e. if >10, draw an arrow. This is just so I can see what is going on.

Now I need to continue, and get access to the colors of these histograms.

After that, it will be getting access to some color bars that one of the oscilators paints which might be a bit more complicated as it is based on the swings.

Then it will simply be all the various conditional statements to create my logic.


Post what you have written so far so others can give you pointers.

Either add the indicator as an attachment (paper clip) or copy the code and paste it here with the Code symbol "#" .

I'm just a simple man trading a simple plan.

My daddy always said, "Every day above ground is a good day!"
Reply With Quote
Thanked by:
  #18 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


ThatManFromTexas View Post
Post what you have written so far so others can give you pointers.

Either add the indicator as an attachment (paper clip) or copy the code and paste it here with the Code symbol "#" .

Ok, here is it is. These are ProfLogic's indicators that he gives to anyone who requests them.

I have attached the NT7 file itself along with the template I use. Also is my .cs file that I created. And a picture of how I have mine set up. Let me know if there is something that is unclear, or if I have mis attached the files.

Two separate indicators are on the chart.

Attached Thumbnails
Click image for larger version

Name:	Prime2011-05-27_171601.jpg
Views:	331
Size:	254.9 KB
ID:	39467  
Attached Files
Elite Membership required to download: ProfTest.cs
Elite Membership required to download: ERG_PL5_Alert_Smooth.xml
Elite Membership required to download: ERG_NT7 2011-05-12.zip
Started this thread Reply With Quote
Thanked by:
  #19 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047


forrestang View Post

...........Now I need to continue, and get access to the colors of these histograms.



Ok, looks like NT does NOT allow direct reference of the color bars, or colors of the oscillators. It seems you can set it, but you can't reference it later. So, i'll have to figure out how to recreate the conditions that make the colors within the studies.

Started this thread Reply With Quote
  #20 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047



forrestang View Post
Ok, looks like NT does NOT allow direct reference of the color bars, or colors of the oscillators. It seems you can set it, but you can't reference it later. So, i'll have to figure out how to recreate the conditions that make the colors within the studies.

Ok, color is based on the slope. But also there is a buffer factor added into the color change of the histogram.

Example, If Hist[0] > Hist[1], then slope is up and color is green. BUT... for it to change back to black, it has to change by a greater amount than the buffer(default is 0.1).

Started this thread Reply With Quote




Last Updated on January 20, 2012


© 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