Regards
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Inside BAr
Collapse
X
-
-
Unfortunately, the format (.ntns) was temporarily supported with an older beta version. We have since reverted this change.
If PrTester is willing to repost this with the latest beta version, it will be a (.zip) file which you can import via File > Utilities > Import NinjaScript.RayNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Ray View PostUnfortunately, the format (.ntns) was temporarily supported with an older beta version. We have since reverted this change.
If PrTester is willing to repost this with the latest beta version, it will be a (.zip) file which you can import via File > Utilities > Import NinjaScript.
Regards,
Comment
-
-
Inside Bar Calculator
I've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.Attached FilesLast edited by ryebank; 11-24-2008, 11:39 AM.
Comment
-
Originally posted by ryebank View PostI've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.
This logic behind the indi is the following :
First Calculate 4 previous range
range1 = Math.Abs(Close[0]-Open[0]);
range2 = Math.Abs(Close[1]-Open[1]);
range3 = Math.Abs(Close[2]-Open[2]);
range4 = Math.Abs(Close[3]-Open[3]);
Then
Check for InsideBar pattern
if(High[0] < High[1] && Low[0] > Low[1]
&& range4 < range3
&& range4 < range2
&& range4 < range1
where [0] is the Current Bar, [1] is the previous Bar and so on.
Hope that help.
Comment
-
Hi PrTester
Bear with we because i don't know how to program but does this mean i can change the code to calculate on 1 range ie 1 bar:
Change - if (CurrentBar < 4) return
To - if (CurrentBar < 1) return
range1 = Math.Abs(Close[0]-Open[0]);
range2 = Math.Abs(Close[1]-Open[1]);
Delete range3 and range4
Then
Check for InsideBar pattern
if(High[0] < High[1] && Low[0] > Low[1])
Comment
-
Originally posted by ryebank View PostHi PrTester
Bear with we because i don't know how to program but does this mean i can change the code to calculate on 1 range ie 1 bar:
Change - if (CurrentBar < 4) return
To - if (CurrentBar < 1) return
range1 = Math.Abs(Close[0]-Open[0]);
range2 = Math.Abs(Close[1]-Open[1]);
Delete range3 and range4
Then
Check for InsideBar pattern
if(High[0] < High[1] && Low[0] > Low[1])
Comment
-
Inside Bar
Thanks PrTester
I've made the changes and it now works how i'd like it to.
Can i ask, what is the relevance of having a range of 4 bars and only indentifying an inside bar (IB) based on this?
Could you, if possible, help me to modify the code so i can have different colours for for up and down IB's?
Thanks
Rye
Comment
-
Originally posted by ryebank View PostThanks PrTester
I've made the changes and it now works how i'd like it to.
Can i ask, what is the relevance of having a range of 4 bars and only indentifying an inside bar (IB) based on this?
Could you, if possible, help me to modify the code so i can have different colours for for up and down IB's?
Thanks
Rye
Just try to identify strong signals, post your conditions for up and down and I make the change or give you the lines to modify yours.
Regards
Comment
-
Hi there,
How would I edit the script so that the low of 0 could be > or = to low of 1 and the high of 0 could be < or = the high of 1? In other words, I want to define an inside bar as one in which the high or low might be equal to the high or low of the previous bar.
Thank you,
thalestrader
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
71 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
4 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
9 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
13 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
Comment