NexusFi: Find Your Edge


Home Menu

 





Need a Programming coach for a project...


Discussion in NinjaTrader

Updated
    1. trending_up 2,984 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?
MC PL editor upgrade
MultiCharts
Cheap historycal L1 data for stocks
Stocks and ETFs
About a successful futures trader who didnĀ“t know anyth …
Psychology and Money Management
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
 
  #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:	206
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