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
NT8 Strategy Builder - Range exclusion - NO TRADE ZONE, i.e... an OR condition
Collapse
X
-
Hello JMont1,
Below are a few links to the help guide that touch on condition groups.
It is possible to use math and custom logic to retrieve the decimal part from a double value in an unlocked script, however this would not be possible using the Strategy Builder which is limited to left and right comparisons and cannot do math.
Below is a public link to a google search on getting the decimal from a double. Many coders have suggested using Math.Truncate().
- Likes 1
-
Is there a method or indicator that would separate out the CL handle from the cents? In the example above it is trying to NOT do any entries around the whole number price of 59.00 but the actual strategy plan would to never trade in the area of any price handle = 58.00, 59.00 60.00 so the strategy would not be concerned with the dollar value (handle) but just use the cent values of xx.97 to xx(+1).05 to avoid entry, Otherwise each instantiation I would have to input the current range zones rather than have it know to avoid all of these zones.
I am guessing I would need an indicator for this separation of the dollar from cents but not sure if even that can be accomplished.
Leave a comment:
-
-
-
NinjaTrader_Jim Yes, that is clear - and why I am asking for assistance with a method to do it with condition "If All"
There are other conditional statements that would also be on the step so All is required
Leave a comment:
-
Hello JMont1,
This is Jim responding on behalf of Chelsea who is out of the office at this time.
Let's say we have two conditions, Condition A and Condition B.
If All would mean if Condition A is true AND Condition B is true, do the following.
If Any would mean if Condition A is true OR if Condition B is true, do the following.
So using If Any, if the price is lower than 58.97, OR if the price is greater than 59.05, do the following.
Please let us know if you have any questions.
Leave a comment:
-
@NinjaTrader_ChelseaB, perhaps to be clearer, the request is that in a conditions and action with "If All" on the page -- how can price close be lower than or higher than a zone. So if price is lower than 58.97, it cannot also be higher than 59.05 at the same time. But the strategy would want to enter if lower than 58.97 OR higher than 59.05.
Any idea how to create an option or indicator like that for the "If All" Step?
Leave a comment:
-
Hello JMont1,
Yes, in your condition you can require the Close[0] price to be greater than a number OR below a number by using 'If Any' in either the condition set or in the individual group in a condition set in the Strategy Builder.
Leave a comment:
-
NT8 Strategy Builder - Range exclusion - NO TRADE ZONE, i.e... an OR condition
No Trade Range is a common concept for BOTs but does not seem a possibility within NT8 Strategy Builder since most strategy steps would be ALL" rather than "Any" where I would call this an OR capability.
No trade entries between CL price xx.97 to xx.03 for example.
So a rule of only enter short if close is below x price would allow a correct entry but then there is no way to say OR above x price. And no close is ver below AND above price zone.
Any way to create an indicator with that capability - like an S/R zone type?Tags: None
- Likes 1
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by trilliantrader, 04-18-2024, 08:16 AM
|
4 responses
18 views
0 likes
|
Last Post Today, 10:33 PM | ||
Started by mgco4you, Today, 09:46 PM
|
1 response
7 views
0 likes
|
Last Post Today, 09:56 PM | ||
Started by wzgy0920, Today, 09:53 PM
|
0 responses
9 views
0 likes
|
Last Post
by wzgy0920
Today, 09:53 PM
|
||
Started by Rapine Heihei, Today, 08:19 PM
|
1 response
10 views
0 likes
|
Last Post Today, 08:30 PM | ||
Started by Rapine Heihei, Today, 08:25 PM
|
0 responses
10 views
0 likes
|
Last Post Today, 08:25 PM |
Leave a comment: