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,085 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?

  #21 (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

Thinking of a slightly new direction. All the charts are created with those two oscillators that are very similiar. Difference is one counts swings and has a smoothing factor. The other does not, but they are built almost identically.

What I am thinking is combining these two into their own indicator, then I'd have access to everything right there, and I can reference everything directly.

Ugh.

Edit-----
Looks like my indicator, nor the original for that matter will not compile, even though the original still works.
"That type of namespace name 'List' could not be found (are you missing a using directive or an assembly reference?) - CS0246

Missing a dll. Right-click and adding reference, the one called, "NInjatrader.vendor" does not seem to fix this?


Started this thread Reply With Quote

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
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #22 (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

Edit-----
Looks like my indicator, nor the original for that matter will not compile, even though the original still works.
"That type of namespace name 'List' could not be found (are you missing a using directive or an assembly reference?) - CS0246

Missing a dll. Right-click and adding reference, the one called, "NInjatrader.vendor" does not seem to fix this?



Ok got it! Looks like I didn't have the proper directive at the top of my code. It is compiling now.

Note: If anyone installed that indicator set for the original at the top, that wasn't the latest one. I will update that post in a minute. I unistalled my original ninja installation, and have to go grab the back up off my server.

So I will replace that post when I attached the indicator in a few.

Started this thread Reply With Quote
  #23 (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 got it! Looks like I didn't have the proper directive at the top of my code. It is compiling now.

Note: If anyone installed that indicator set for the original at the top, that wasn't the latest one. I will update that post in a minute. I unistalled my original ninja installation, and have to go grab the back up off my server.

So I will replace that post when I attached the indicator in a few.

Ok, updated with the correct NT file in this post here:

Started this thread Reply With Quote
Thanked by:
  #24 (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,353


forrestang View Post
Ok, updated with the correct NT file in this post here:


Ok, looks like you are moving right along. Do you need anything specifically right now?

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
  #25 (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
Ok, looks like you are moving right along. Do you need anything specifically right now?

Thanks for asking. I can't think of anything that I need specifically.

I guess if you have an opportunity, can you take a look at the two scripts that will be in your indicator folder after you import the package I posted. The two original that matter are called "ERG_Str1" and "ERG_Trade."

Initially my idea was to try and create a brand new indicator, and just reference the parts of those two indicators listed above to plot the things I wanted. Everything I want to do is based on the Y position of those oscilators and the colors they produce. But then I realized I could not reference the color of those oscillators, you would have to reference exactly how those colors occur, which I think might get a bit complicated.

So, then I figured I'd just create ONE indicator containing all the logic of those two indicators via copying and pasting, and duplicating/renaming what I need. Then I could reference everything directly.

If you could take a look at those indicators, and let me know if my plan makes any sense at all?

Started this thread Reply With Quote
  #26 (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

I have all the logic for one indicator in my script(ERG_Trade), I am now working on getting the 2nd indicator(ERG_Str1) to work along side it in the same file.

Started this thread Reply With Quote
  #27 (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
I have all the logic for one indicator in my script(ERG_Trade), I am now working on getting the 2nd indicator(ERG_Str1) to work along side it in the same file.

Oh boy.... my alternative way to do this is a bit rough too

Started this thread Reply With Quote
  #28 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090

signal looks awesome, is it repainted in real time?

Reply With Quote
  #29 (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


cory View Post
signal looks awesome, is it repainted in real time?

If you mean those PPFs that are on the chart, no.

If you look at that pic, it is confirmed and painted steady when the Oscilator on the 2nd pane switches color.

Attached Thumbnails
Click image for larger version

Name:	when.jpg
Views:	292
Size:	126.5 KB
ID:	39511  
Started this thread Reply With Quote
Thanked by:
  #30 (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
Oh boy.... my alternative way to do this is a bit rough too

I'm going back to "Plan A" of trying to reference these indicators from my own script.

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