I am new to NT. wanted a bit of help regarding connectivity. I am a profession fx trader just stepped into automation testing on G7 crosses for bband breakouts. I am having a bit difficulty to program without any manual. is there any NT manual available on website where i could get examples
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bband breakout
Collapse
X
-
Bband breakout
Hi guys,
I am new to NT. wanted a bit of help regarding connectivity. I am a profession fx trader just stepped into automation testing on G7 crosses for bband breakouts. I am having a bit difficulty to program without any manual. is there any NT manual available on website where i could get examplesTags: None
-
amit_rwd, welcome to our forums!
For starting out with indicators, please check into this link -
For strategies, please check into this -
For our 'point and click' strategy wizard interface, this one will be a helpful guide -
The NinjaScript language reference can be found under the NinjaScript section in our help guide, just press F1 in the software to access it anytime.
-
inside bar
Hi ,
i had a look at the manual thanks . While trading a break of inside bar i am facing a bit problem. the criteria is when a inside bar is established we need to trade a break of low or high of inside bar. An inside bar(IB) has its body engulfed within previous bar.
So i programmed as below
high(0) < high(-1) (high of current < then high of previous)
and low(0) > low (-1) (low of current) > low of previous)
offset type i have selected price
then
shortposition
but it seems the mechanics are different and i am not getting my results.
same case with bollinger bands . if i wanted to make sure that the close of candle is greater than uppper band 1 period ago it is saying i canot have negative value
what is want is some scenario like this
check if close of current candle > upper band then buy on a break of candle close(above upperband)
Comment
-
Hi danny sorry to be pain . order management if i would like to take profit when price = middle band how can i do that. I also want to put my stop on the high price of previous candle high(0).
I have only limited options in take profit section wherby strategy actions are limited.
Comment
-
Are you working in the wizard amit_rwd? Then you could check for price being equal to the middle band and then issue a ExitLong / ExitShort command - http://www.ninjatrader-support.com/H...APosition.html
For the stop you can check if your strategy position is long / short and then place an ExitLongStop / ExitShortStop order at this price as a condition.
Comment
-
Hi I tried the command where getcurrentask() <= sma(20)[0] but it seems that as soon as the price touches the middle band(sma20) it doesnt book profit but instead it waits for a close of candle and closes.
what i mean from above command is if i have shorted on top of band then cover the position when current ask price is equal to or less than 20 ma price. ( Less indicates if price has closed below 20 ma then value will be less than current 20 ma)
[IMG]file:///C:/Users/boxr/AppData/Local/Temp/moz-screenshot.jpg[/IMG][IMG]file:///C:/Users/boxr/AppData/Local/Temp/moz-screenshot-1.jpg[/IMG]
Comment
-
amit_rwd, this is expected for backtesting and for running the strategy in realtime with CalculateOnBarClose = true - http://www.ninjatrader-support.com/H...BarClose1.html
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
574 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment