![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
|
Hi;
Can anybody help please, I am, unfortunately, having to trade with the T4 platform for the next 2 weeks and am trying to write a code in xml. I have the bulk of it but I am trying to convert the VMA indicator and dont understand the code text for the smoothing constant: double sc = 2.0 / (double)(period + 1); in xml I have got sc = 2.0/ ?what?(period + 1); obviously I dont know what the ?what? should be. Can anybody help please to explain what the 'double' is. I have looked it up in the C# ref guide on line but still don't understand - something to do with converting it to 1 decimal place or something I think. Any help gratefully appreciated. Ben |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using StdDev in a formula | stocktraderbmp | Indicator Development | 16 | 01-11-2012 03:22 AM |
| Formula of Slope | msamadov | General Programming | 2 | 11-11-2011 05:34 AM |
| TSV: Time segmented volume formula conversion | skynetman | Indicator Development | 11 | 04-28-2011 04:27 AM |
| Can I get the Formula? | un$ane | Strategy Development | 1 | 06-26-2009 05:16 AM |
| CCI formula | pipsheker | General Programming | 2 | 05-17-2008 06:57 AM |