rsi_filter = rsi < rsi_upper and rsi > rsi_lower
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
RSI Filter Below upper and lower
Collapse
X
-
RSI Filter Below upper and lower
I am trying to create a strategy in the Strategy Builder but i cant find how i can set a // RSI filter to RSI is less than Upper (60) and Greater than RSI Lower band (40)
rsi_filter = rsi < rsi_upper and rsi > rsi_lowerTags: None
-
Originally posted by NinjaTrader_Emily View PostHello SevanKambel,
Thank you for your post.
You may compare the values of multi-plot indicators in the Strategy Builder and set up conditions like the following examples:Please let us know if we may be of further assistance.
Comment
-
-
Hello SevanKambel,
Thank you for your reply.
What is the calculate property set to for your strategy? If you have it set to calculate On Bar Close, this would be expected because the script would only run through the OnBarUpdate() logic on the close of each bar. If you would like intrabar actions in real time, you will need to set the calculate property to On Price Change. For more information:- https://ninjatrader.com/support/help...tegyProperties
- https://ninjatrader.com/support/help.../calculate.htm
Please let me know if I may be of further assistance.
Emily C.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Emily View PostHello SevanKambel,
Thank you for your reply.
What is the calculate property set to for your strategy? If you have it set to calculate On Bar Close, this would be expected because the script would only run through the OnBarUpdate() logic on the close of each bar. If you would like intrabar actions in real time, you will need to set the calculate property to On Price Change. For more information:- https://ninjatrader.com/support/help...tegyProperties
- https://ninjatrader.com/support/help.../calculate.htm
Please let me know if I may be of further assistance.Last edited by SevanKambel; 04-12-2023, 07:13 PM.
Comment
-
Hello SevanKambel,
Thank you for your reply.
The offset setting is disabled for a Cross Above or Cross Below condition because only the value for the series selected is compared. This is mentioned in the release notes here:
Are you observing this behavior in real-time or on historically processed orders? I suggest adding print statements to the Strategy Builder to review all values used in your conditions. For more information about using Prints to debug and understand your script's behavior, along with a video about adding prints in the Strategy Builder, please see the following links:Thank you for your patience. Please let me know if I may be of further assistance.Emily C.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ETFVoyageur, Today, 08:39 AM
|
8 responses
13 views
0 likes
|
Last Post Today, 09:55 AM | ||
Started by tkaboris, Yesterday, 07:53 PM
|
5 responses
18 views
0 likes
|
Last Post
by tkaboris
Today, 09:40 AM
|
||
Started by GLFX005, Today, 09:31 AM
|
1 response
7 views
0 likes
|
Last Post Today, 09:40 AM | ||
Started by tgn55, Today, 09:15 AM
|
1 response
4 views
0 likes
|
Last Post Today, 09:34 AM | ||
Started by grebow25, Today, 09:20 AM
|
0 responses
3 views
0 likes
|
Last Post
by grebow25
Today, 09:20 AM
|
Comment