PDA

View Full Version : Inside BAr


PrTester
01-19-2008, 04:42 PM
Attach is an Indicator to help you identify the inside bars, includes an alert.(you can turn on/off the alert and modify the inside bar color)

Regards

NinjaTrader_Josh
01-19-2008, 05:52 PM
Cool. Thanks for the contribution.

NinjaCustomer
01-28-2008, 03:33 PM
I am new to NinjaScript... how do I import this indicator?

NinjaTrader_Ray
01-28-2008, 03:54 PM
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.

PrTester
01-28-2008, 05:12 PM
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.

It's posted with a zip format.

Regards,

NinjaCustomer
01-28-2008, 05:14 PM
It's posted with a zip format.

Regards,

cool, thanks!

Pipqueen
03-04-2008, 04:32 PM
:) Thank you! I Love it!

Attach is an Indicator to help you identify the inside bars, includes an alert.(you can turn on/off the alert and modify the inside bar color)

Regards

ryebank
11-24-2008, 10:01 AM
Great indicator thanks for the source code.

I was wondering if it could be tweaked slightly... If it's a down inside bar then have it one color, if it's an up inside bar then have it another?

Thanks
Rye

ryebank
11-24-2008, 11:36 AM
I've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.

PrTester
11-24-2008, 02:41 PM
I've been watching this indicator identify inside bars but i've noticed that it doesn't always identify them.

ryebank,

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.

ryebank
11-24-2008, 03:07 PM
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])

PrTester
11-24-2008, 03:31 PM
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])

Yes you are correct, just delete the other range and you will be ok.

ryebank
11-24-2008, 05:43 PM
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

PrTester
11-24-2008, 06:55 PM
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


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

thalestrader
02-06-2009, 10:04 PM
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

Kalle
02-07-2009, 12:13 PM
Just change the line

if(High[0] < High[1] && Low[0] > Low[1]

to this:

if(High[0] <= High[1] && Low[0] >= Low[1]


Regards,
Kalle

thalestrader
02-07-2009, 01:04 PM
Just change the line

if(High[0] < High[1] && Low[0] > Low[1]

to this:

if(High[0] <= High[1] && Low[0] >= Low[1]


Regards,
Kalle

Thank you!

Best Wishes,

thalestrader

price777999
03-07-2009, 01:50 PM
could someone post the mod that shows all the inside bars , i have no idea how to edit script.

cheers

price777999
03-07-2009, 02:08 PM
well i managed to edit the script sugested below but it still seams to miss some bars ?:confused:

price777999
03-07-2009, 02:23 PM
i figured it out ....dam im clever !:)

i would post it but ...no idea how to export:confused:

price777999
03-07-2009, 03:04 PM
think i did it....thanks PrTester !

whself beginner
03-07-2009, 03:13 PM
show on this version, you can play with spread.
can you define what is an insidebar?
then they indicator works.

best regards

mystiq
12-04-2011, 12:24 PM
think i did it....thanks PrTester !

...would this version allow me to find IB on a 6month BAR/TIMEFRAME?

mystiq
12-04-2011, 12:25 PM
show on this version, you can play with spread.
can you define what is an insidebar?
then they indicator works.

best regards

...would this version allow me to find IB on a 6month BAR/TIMEFRAME?

mystiq
12-04-2011, 12:29 PM
Attach is an Indicator to help you identify the inside bars, includes an alert.(you can turn on/off the alert and modify the inside bar color)

Regards


does this indy work in NT7?

NinjaTrader_AdamP
12-04-2011, 02:16 PM
Mystiq,

There may be issues since its 3 years old. Some 6.5 indicators work with NinjaTrader 7.