Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Adding To Stochastics
Collapse
X
-
Adding To Stochastics
Need some real basic help here. I want to add up/down arrows to existing Generic Stochastic Indicator. I am a newbie to programming, I do have the code but just looking for step by step instructions to add the arrows once the Stochastic cross either up or down. Little embarrassed asking. Thanks.Tags: None
-
Hello Labs905,
Thank you for your note.
There is no such thing as an embarrassing question. Feel free to ask whatever you need assistance or clarification on.
To answer your inquiry, you can use the CrossAbove and CrossBelow conditions to check when these two cross.
Sample -
Code:if(CrossAbove(K, D, 1)) DrawArrowUp("UpArrow" + CurrentBar, 0, K[0], Color.Blue); if(CrossBelow(K, D, 1)) DrawArrowDown("DownArrow" + CurrentBar, 0, D[0], Color.Red);
Attached FilesCal H.NinjaTrader Customer Service
-
Thank you so much for the quick reply. Awesome. Again, brutal question, now how do I now install this into my Ninja Platform? (see, newbie). Again my apologies for such trivial questions. I promise you this, once I start getting the hang of this, I will not be such a bother. Thanks so much for you help and understanding.
Comment
-
-
George Farmer: Easiest thing you can do is just to right click the file -> open as -> Notepad.
Labs905: Open NinjaTrader -> Tools -> New NinjaScript -> Indicator... -> Next -> *Give it a name* -> Generate -> *Remove all the contents in the newly generated indicator* -> *Copy all the contents from the .cs file and paste them into the generated indicator* -> Right Click -> Compile.
Now all you have to do is open a new chart and select the indicator named "NewStochastics".
Hope that helped.
- Alex
Comment
-
Many thanks Alex, will give it a go appreciated. FYI, it was left click.Last edited by Farmer George; 03-08-2015, 08:13 AM.
Comment
-
No problem, that is the way I personally find it easiest anyways.
Here is another way to do it by manually importing the .cs file (2nd post): http://www.ninjatrader.com/support/f...t=49880&page=2
Good luck with your project!
Comment
-
-
-
-
Sorry to bother once again. I clicked on the .cs file to download, my Microsoft Visual Studio 2005 Tools for Application window popped up, with nothing in it. I tried to download the link, and copy and paste, so far no luck. I know I am doing something wrong. any idea? thanks in advance.
Comment
-
I'm happy I could help, Labs905!
Farmer George: As for deleting indicators go to (from the Control Center) Tools -> Edit NinjaScript -> Indicators... -> *select an indicator and click delete*. You can only do this with the indicators you have made, not the default ones.
Which indicator list does not show your indicator? When you had copied the NinjaScript, did you remember to compile it?
You go to: Tools -> Edit NinjaScript -> Indicators... -> *select the indicator and open* -> right click and compile inside the editor (or just click F5 inside the editor, it's the same thing).
If you don't compile the script it wont show up anywhere.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 05:53 PM
|
0 responses
0 views
0 likes
|
Last Post
by cre8able
Today, 05:53 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
23 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
31 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
||
Started by catinabag, 04-13-2023, 05:46 AM
|
34 responses
1,464 views
0 likes
|
Last Post
by mcosta72
Today, 04:44 PM
|
||
Started by adeelshahzad, Today, 11:49 AM
|
6 responses
24 views
0 likes
|
Last Post
by mcosta72
Today, 04:35 PM
|
Comment