NexusFi: Find Your Edge


Home Menu

 





Need a Programming coach for a project...


Discussion in NinjaTrader

Updated
    1. trending_up 3,408 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?
SEC Chairman Calls for New Golden Age of SEC-CFTC Regula …
Traders Hideout
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Iran War Prediction Markets: Ceasefire 16%, Ground Invas …
Prediction Markets & Event Contracts
Iran Ceasefire Surges to 19.5% on US 15-Point Plan -- 82 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
21 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
2026 Fire Horse
5 thanks
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,756 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,632


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 X 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:	282
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