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
B line
Collapse
X
-
Hello,
Over bought and over sold can be defined different ways so I put in 4 different colors splitting on 80, 50, and 20 to cover two different schools of thought.Last edited by NinjaTrader_Ben; 01-07-2009, 08:16 AM.
-
I don't know. You should ask Ninja Trader Ben who has written this code.
But you could differentiate the overbought line from the oversold line by giving them different colors.
Jaap
Leave a comment:
-
B-LINE indicator
is it possible to modify this indicator to plot a one color when oversold and another color when overbought
Leave a comment:
-
Originally posted by NinjaTrader_Ray View PostHi Jaap,
We have some new staff members that are ramping in supporting NinjaScript. I will assign this request as a training task for one of them. Give us a week or so to get this done.
Leave a comment:
-
Hello Ben, Thank you very much for your quick and nice translation of the TS code.
The Bline works great in Ninja Trader.
Jaap
Leave a comment:
-
Hello Jaap,
Thank you for your EasyLanguage to NinjaScript translation request.
Your translated indicator is attached.
Import instructions:- Download the file contained in this thread to your PC desktop
- From the Control Center window, select the menu File > Utilities > Import NinjaScript
- Select the downloaded file
No, DFull is not plotted or used within the calculation, but I did translate it. DFull is probably a leftover from a variation of the indicator calculation. It can be eliminated from the code.Attached FilesLast edited by NinjaTrader_Ben; 10-14-2008, 02:19 PM.
Leave a comment:
-
What is DFull used for? Is it also plotted ?
I put your code in an indicator, but it does not seem complete.
TW
Originally posted by Jaap8242 View PostHello,
In Tradestation I use an indicator, the B-line, which is a kind of LT stochastic indicator. Originally developed by Judy McKeigan ( Buffy) at dacharts.com.
I'm not familiar with the Ninja program code. Therefore I have copied the TS code of the B-line.
Input: Price(Close), Length1(35), Length2(10), Length3(1), OverBought(80), OverSold(20),
MidColor(White),OBOSColor(Red);
Variables: KFast(0), KFull(0), DFull(0), LL(O), HH(0);
LL = Lowest((High+Low)/2, Length1);
HH = Highest((High+Low)/2, Length1);
KFast = 100 * IFF(HH-LL=0,0,(((High+Low)/2) - LL)/(HH- LL));
KFull = Average(KFast, Length2);
DFull = Average(KFull, Length3);
If KFull <= 80 and KFull >= 20 then
Plot1(KFull,"Stoc",MidColor,Default,2) else
Plot1(KFull,"Stoc",OBOSColor,Default,2);
Plot3(OverBought, "OverBought");
Plot4(OverSold, "OverSold");
I hope that someone can translate this into Ninja code.
Jaap
Leave a comment:
-
Hi Jaap,
We have some new staff members that are ramping in supporting NinjaScript. I will assign this request as a training task for one of them. Give us a week or so to get this done.
Leave a comment:
-
B line
Hello,
In Tradestation I use an indicator, the B-line, which is a kind of LT stochastic indicator. Originally developed by Judy McKeigan ( Buffy) at dacharts.com.
I'm not familiar with the Ninja program code. Therefore I have copied the TS code of the B-line.
Input: Price(Close), Length1(35), Length2(10), Length3(1), OverBought(80), OverSold(20),
MidColor(White),OBOSColor(Red);
Variables: KFast(0), KFull(0), DFull(0), LL(O), HH(0);
LL = Lowest((High+Low)/2, Length1);
HH = Highest((High+Low)/2, Length1);
KFast = 100 * IFF(HH-LL=0,0,(((High+Low)/2) - LL)/(HH- LL));
KFull = Average(KFast, Length2);
DFull = Average(KFull, Length3);
If KFull <= 80 and KFull >= 20 then
Plot1(KFull,"Stoc",MidColor,Default,2) else
Plot1(KFull,"Stoc",OBOSColor,Default,2);
Plot3(OverBought, "OverBought");
Plot4(OverSold, "OverSold");
I hope that someone can translate this into Ninja code.
JaapTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by PhillT, Today, 02:16 PM
|
2 responses
3 views
0 likes
|
Last Post
by PhillT
Today, 02:33 PM
|
||
Started by Kaledus, Today, 01:29 PM
|
3 responses
9 views
0 likes
|
Last Post Today, 02:24 PM | ||
Started by frankthearm, Yesterday, 09:08 AM
|
14 responses
47 views
0 likes
|
Last Post Today, 02:19 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
2 responses
14 views
0 likes
|
Last Post Today, 02:05 PM | ||
Started by PaulMohn, Today, 12:36 PM
|
2 responses
17 views
0 likes
|
Last Post
by PaulMohn
Today, 01:48 PM
|
Leave a comment: