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.BertrandNinjaTrader Customer Service
-
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.BertrandNinjaTrader Customer Service
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.htmlBertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
148 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,283 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Comment