NexusFi: Find Your Edge


Home Menu

 





Need a Programming coach for a project...


Discussion in NinjaTrader

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




 
Search this Thread
  #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?
Netherlands & Germany Surge as World Cup Field Narro …
Prediction Markets & Event Contracts
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,758 since Jun 2009
Thanks Given: 3,828
Thanks Received: 4,644


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)
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:	307
Size:	442.8 KB
ID:	28819  
Started this thread Reply With Quote




Last Updated on January 20, 2011


© 2026 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 - Downloads - Top
no new posts