My first task is to set up a strategy to get a bell to ring when I have a reversal and then get 2 range bars to complete in the same direction. Can anyone give me a pointer where to start
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bar after bar strategy
Collapse
X
-
Bar after bar strategy
Hi, I am New to this forum. I have been working through the NT Help but with little success. Watched the weekly Auto Trading webinars - but they only ever show the SMA crossover.
My first task is to set up a strategy to get a bell to ring when I have a reversal and then get 2 range bars to complete in the same direction. Can anyone give me a pointer where to startTags: None
-
Hello,
What is the definition of a red bar? It is a close that is lower or equal to its open.
Therefor you will want to setup your condition to check to see if the close is less then the open price.
Finally you would want to check to see if the bar behind that was also a down bar. You do this by using the same statement added it instead of for the current bar set the BarsAgo property to 1. Once both these conditions are added it will be checking for 2 down bars.
-Brett
Comment
-
I have set up the following strategy on Range bars (see attached screen shot) - Set1 Green bar forms followed by Red bar. When New bar opens ( which has to be lower than 1st red bar) ring a bell. Set2 Reverse of this.
However, some of the time the bell only rings on the formation of the 3rd Bar and sometimes it works the way that (i think) that I have set it up. What is causing my problem?
I can't see where the attachment is gone - hopefully it is attached. If not I will do it again
Comment
-
Brett Thank you for your help, but I am still in trouble.
Green bar forms followed by Red bar. When New(3rd) bar opens ( which has to be lower than 1st red bar) ring a bell and visa versa for the reverse. So when I have a string of consecutive red and green bars form the bell rings for each new bar - which is correct the way that I have set it up.
However, if I have a string of red bars followed by a green bar the bell should ring on the formation of the next bar, but it only rings on the formation of the following bar if the 2nd bar is also green (so on the formation of the 4th bar)
Comment
-
Sorry, I dont exactly follow your description.
However you must think about it from a code perspective. Code will always do what you ask to do, and if you are getting a result you did not expect you would need to try to figure out why the code is giving you that.
You may find this information helpful in that regaurd:
If still unable to get started it my be that you need a NinjaScript consultant to you with you to help you code this.
You can contact one of our NinjaScript consultants to assist you with coding this or you can use our NinjaScript guide and forums to code this indicator yourself if you are a programmer.
NinjaScript Consultants:
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
12 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
Comment