Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
new project candle
Collapse
X
-
new project candle
hello, I would like to create a strategy that opens a sell position to 'inside of a candle if the maximum is greater than 7 tick and a long position in a candle if the maximum is less than 7 tick, from the opening. Could you give me advice. Use the wizard creation strategy.Tags: None
-
Hello Helptrade,
I am happy to assist, however, I am uncertain of some of your terminology.
When you mention for the sell order 'if the maximum is greater than 7 tick', are you meaning the high of the most recently closed bar is more than 7 ticks from the low?
When you mention 'the maximum is less than 7 tick, from the opening', are you meaning that the Low of the bar is less than 7 ticks below the open? (Does the close need to be less than the open in this situation?)Chelsea B.NinjaTrader Customer Service
-
Hello Helptrade,
I'm not certain what the rules are. I can see you have marked a bar 7 ticks above the open.
Are you wanting to place a limit order that can fill intra-bar if the price touched the order?
Attached is a screenshot that shows how to place a sell limit order, 7 ticks above the close of the previous bar.
Are you wanting to detect for the current open bar if the price has risen 7 ticks from the entry?
If so, you will need to set your script to run with Calculate on bar close set to false (unchecked). And it would also be best to not allow the strategy to run historically (or add a secondary series of 1 tick so that the script can update on each tick when in historical data).
Attached is a screenshot of detecting the current close is greater than 7 ticks from the open.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by bortz, 11-06-2023, 08:04 AM
|
47 responses
1,605 views
0 likes
|
Last Post
by aligator
Today, 07:22 PM
|
||
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
8 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
4 views
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
13 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
Comment