NexusFi: Find Your Edge


Home Menu

 





Need a Programming coach for a project...


Discussion in NinjaTrader

Updated
    1. trending_up 2,982 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

Need a Programming coach for a project...

  #1 (permalink)
 
Mojokix's Avatar
 Mojokix 
Seattle
 
Experience: Intermediate
Platform: Ninja, TS
Trading: Futures, EURUSD, EURJPY
Posts: 7 since Nov 2010
Thanks Given: 1
Thanks Received: 1

Hello Folks!

I am struggling with learning NinjaScript and although I am making progress, I really think I could benefit by someone looking over my virtual shoulder. I have found an indicator that I would like to convert to a strategy as a lesson and I need some help duplicating it and writing the order management part ... there could be some pay involved....takers?

Mojokix

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Spoo-nalysis ES e-mini futures S&P 500
28 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


Why don't you just show us what you are trying to do ?
You can take a look at the generic strategy made by @MWinfrey, you could find details here, which is a great strategy skeleton.
With it, you will just need to had your entry conditions, but the most difficult part is already done by this script.
This generic strategy is in the Elite forum, so please be careful with it.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
  #4 (permalink)
 
Mojokix's Avatar
 Mojokix 
Seattle
 
Experience: Intermediate
Platform: Ninja, TS
Trading: Futures, EURUSD, EURJPY
Posts: 7 since Nov 2010
Thanks Given: 1
Thanks Received: 1

Attached is an image of the indicator in action and below is what I would like to turn into conditions for entering ..

every time I try to make the Generic Strategy work I break NJ 7 so bad that it won't import scripts any more so I have to manually delete the .CS file to fix it... I am missing some basic understanding or something...



// Trend detection and alerts
if (C >= _bb.Upper[0] && C > _cma[0] && _macd[0] > 0)
{
_state = TrendState.Up;
this.BarColor = Color.DarkGreen;
if (_state != previousState)
{
this.PlaySound("Alert1.wav");
this.DrawArrowUp("up"+CurrentBar, 0, Low[0]-TickSize, Color.Cyan);
}
}
else if (C <= _bb.Lower[0] && C < _cma[0] && _macd[0] < 0)
{
_state = TrendState.Down;
this.BarColor = Color.DarkRed;
if (_state != previousState)
{
this.PlaySound("Alert1.wav");
this.DrawArrowDown("down"+CurrentBar, 0, High[0]+TickSize, Color.Magenta);
}
}

Attached Thumbnails
Click image for larger version

Name:	EJ Break out.jpg
Views:	204
Size:	442.8 KB
ID:	28819  
Started this thread Reply With Quote




Last Updated on January 20, 2011


© 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