Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
greater equal >= and strategy is only picking up the equal
Collapse
X
-
greater equal >= and strategy is only picking up the equal
in my strategy i have less than or equal to 3 ticks from line and greater than or equal to -3 ticks from line. it seems the strategy is only executing when it equals the 3. not, when its in the range. any suggestions?Tags: None
-
Hello SteveReiza,
Thank you for your post.
Can you share the line of code that is doing this comparison?
It may also help to add print statements to see how this condition is evaluating.
Below is a link to a forum post that demonstrates using informative prints to understand behavior and includes a link to a video recorded using the Strategy Builder to add prints.
Please let me know if I can assist further. Gaby V.NinjaTrader Customer Service
-
Comment
-
Hello SteveReiza,
Add a new condition set with no conditions and print the time of the bar and all values being compared along with labels for each value and comparison operator.
Below is a link to a forum post that demonstrates using prints and TraceOrders to understand behavior. Please watch the video 'Debugging using prints with the Strategy Builder'.
The output should appear just like the condition but with values included.
Save the output to a text file (right-click the output window select Save as) and attach this to your next post.Chelsea B.NinjaTrader Customer Service
Comment
-
i think its skipping the conditions so i added 20 bar minimum to the strategy. i think that might help.
is that correct, to have the 3 ticks on the bollinger like that?
Comment
-
Hello Steve,
In order to determine why exactly the condition is not evaluating as true, it is necessary to add prints to the script that print the values used for the logic of the script to understand how the script is evaluating.
Please follow the instructions Chelsea provided for creating a print statement and enabling TraceOrders. If you need any assistance creating a print or analyzing the output, please let me know.Gaby V.NinjaTrader Customer Service
Comment
-
thanks for the reply. alright, i'll do that. i am seeing the entry conditions this morning. but, the strategies aren't executing. i'll dial in on the print and see what's happening. thanks again!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by proptradingshop, Yesterday, 11:30 AM
|
9 responses
30 views
0 likes
|
Last Post
|
||
Started by NRITV, Today, 09:05 AM
|
1 response
11 views
0 likes
|
Last Post
|
||
Started by xiinteractive, Today, 08:29 AM
|
1 response
7 views
0 likes
|
Last Post
|
||
Started by DT215, 08-08-2023, 11:03 AM
|
3 responses
445 views
0 likes
|
Last Post
|
||
Started by Thomas79, Today, 08:14 AM
|
1 response
11 views
0 likes
|
Last Post
|
Comment