Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Candle strategy High/Low
Collapse
X
-
Candle strategy High/Low
I hope someone could help I want to test a strategy where the system goes long once a 5pt candle move has been detected. I dont want the system to go long on the next candle but once high/low equal 5 pts or 20 ticks. How would I write this code in the wizard. please advise. I have attached a photo to help. -
Hello wallsteetking,
If you want to work with High - Low, this is available in the wizard as Range, under the Indicator category.
If you want to create a rule based on a specific Range value:
On the left expand Indicators, then select Range
In the middle select the comparison operator you want to use.
On the right expand Misc and choose Numeric value to specify the value you want to check for.
Additional help working with the strategy wizard and the condition builder is available here:
Ryan M.NinjaTrader Customer Service
-
Help needed
First of all thank you for getting me 1 step closer to finding ou,t how to make this strategy work. However, my main issue is ninjatrader goes long on the second candle (see picture) I want it to go long ON the candle that made the first 5pt range. Again thank you for your help
Comment
-
This is the way the backtesting order placement works. Conditions are evaluated at bar close. If true, orders are submitted to the next bar after the condition. To backtest with intrabar granularity requires adding an additional series and submitting to that secondary series. This type of strategy cannot be created in the strategy wizard.
To have conditions evaluated and orders submitted on the same bar requires a real time strategy with CalculateOnBarClose = false.Ryan M.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mly916, Today, 09:48 PM
|
1 response
11 views
0 likes
|
Last Post Today, 11:54 PM | ||
Started by Mikey_, Today, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Today, 09:21 PM
|
||
Started by cre8able, Today, 05:53 PM
|
3 responses
14 views
0 likes
|
Last Post
by cre8able
Today, 09:20 PM
|
||
Started by Aryan Kumar, Today, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Today, 09:04 PM
|
||
Started by yertle, Yesterday, 05:49 PM
|
3 responses
16 views
0 likes
|
Last Post
by Mindset
Today, 08:38 PM
|
Comment