NexusFi: Find Your Edge


Home Menu

 





Basic NinjaScript Help


Discussion in NinjaTrader

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




 
Search this Thread

Basic NinjaScript Help

  #1 (permalink)
 
Joseph689's Avatar
 Joseph689 
San Jose, Ca
 
Experience: Beginner
Platform: MetaTrader 4
Broker: Interactive Brokers
Trading: Forex
Posts: 121 since Sep 2012
Thanks Given: 114
Thanks Received: 40

Hello everyone,

I have some ideas for a basic time period type of indicator, but I really want to learn to do it on my own, and learn at the same time.

I know that c# and NinjaScript are the same, but yet there are differences in getting NT to draw on the chart exactly what you want.

I really would appreciate if someone would share with me a piece of code that would do the following; draw a box that would go from the high to the low, spanning a specific time period. The time period, box color/opacity, should all be adjustable.

This would get me started, and I would learn from the code and it would give me a starting point.


Thank you in advance.

Joseph

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
Bigger Wins or Fewer Losses?
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
33 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
HumbleTraders next chapter
11 thanks
  #3 (permalink)
 tulanch 
Salt Lake City, UT
 
Experience: Intermediate
Platform: SC, NT, MT
Broker: AMP
Trading: NQ ES YM Bonds
Posts: 265 since Mar 2010
Thanks Given: 50
Thanks Received: 387


Have you looked at their help documentation - use the help button in the menu and look for sample or example indicator code. There is an entire section on this.

I highly suggest their basic indicator tutorial to help get you started.

Then you should start looking at the available API, for example Drawxxxx where xxxx is items like Text, Arrow, Diamond, etc... Area/Region allows you to draw a box on the screen.

Many times the API call you want to use has example code in their definition. But you can also google for the call and many times find examples. Also use this forum and the NT Support Forum.

Another thing, if you see an indicator that is doing what you want to do, see if you can get the .cs file (source file). Review the file looking of the API call of interest and get a feel for how it was done there.

Reply With Quote
Thanked by:




Last Updated on October 28, 2013


© 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