PDA

View Full Version : Trying to Write Simple Indicator


Sandmansmx
03-15-2011, 09:33 PM
I would like (ATR) * (1.618), but since this is my first try, an algebraic equation evidently doesn't do it in NT. Can anyone help. Thanks.

NinjaTrader_Bertrand
03-16-2011, 03:49 AM
Welcome to our forums here, you could for example express it as double value in NinjaScript :

double myATR = ATR(14)[0] * 1.618;

For generally getting started on right track into the NinjaScript environment, please see those tutorials we have ready - http://www.ninjatrader.com/support/helpGuides/nt7/tutorials.htm

Sandmansmx
03-16-2011, 10:29 AM
Thank you so much.