![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Nov 2008
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
|
Hello,
A common requirement of my indicators is taking square root and raising to the power n. What are people using to make math functions like this work in NinjaScript. I've seen the System.Math.sqrt() call and the other System.Math calls. Does anyone use a reliable library with overloaded operators to make the syntax less painfull. Any other way to make the syntax less painfull like perhaps a "with" statement? |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
Hi The Kid,
One of our NinjaScript trainees will respond to you later today. Thank you for your patience.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
The Kid,
You can just do Math.Sqrt(). This is general C# programming and it may be best to direct your search over to the MSDN docs for more information on Math functions.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 618
Thanks: 12
Thanked 24 times in 18 posts
|
http://msdn.microsoft.com/en-us/libr...rt(VS.71).aspx
scroll down left half of screen and select what ever you need. Info displays on the right. RJay |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| murry math indicator calculated every 2 hours | walrus | NinjaScript File Sharing Discussion | 32 | 12-08-2010 12:37 PM |
| Murrey Math Indicator | PrTester | NinjaScript File Sharing Discussion | 28 | 10-13-2010 12:03 PM |
| Problem using Math.ceiling & .floor | kuroro13 | General Programming | 3 | 07-29-2008 02:08 PM |
| Murrey math indicator | bamazu | Indicator Development | 2 | 01-04-2008 07:44 PM |
| Is it possible to call ATI functions from NinjaScript? | BCA | Strategy Development | 3 | 04-17-2006 05:36 AM |