I noticed it only goes long; is there a way to set it to take shorts also?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Question about the Accumulation/Distribution Range Breakout Strategy
Collapse
X
-
Question about the Accumulation/Distribution Range Breakout Strategy
I'm testing the Accumulation/Distribution Range Breakout Strategy on my simulation account.
I noticed it only goes long; is there a way to set it to take shorts also?
Tags: None
-
Hello jorgehach3,
Thank you for the post.
The script is currently made to only enter long and exit long, that is based on the conditions it uses.
To make it go short depends on how you could re use the values which the original condition uses. You would have to make another set of conditions to enter short and exit short but you would need to first determine if the values you can use in the condition make sense in any way to do that for a short side.
This is the condition used to enter long, if the values used here can be re used in an opposite way you could make a short condition:
Code:if (ToDay(Time[0]) > 20030101 && Close[0] > Top[0] && Bot[0] > Bot[12] && SMA(Volume, VolAvg)[VolDelay] > VolRatio * SMA(Volume, VolAvg)[VolAvg + VolDelay]) {
JesseNinjaTrader Customer Service
-
Hello ahpeak951,
Thanks for your notes.
AmountToBuy is a user-defined variable in the Accumulation/Distribution Range Breakout Strategy that refers to USD, not Contracts/Shares.
The script divides the AmountToBuy by the Close[0] price and adds the ProfitQuantity to calculate the number of shares to buy.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Chuso, 01-14-2025, 03:41 AM
|
5 responses
24 views
0 likes
|
Last Post Today, 07:26 AM | ||
Started by reynoldsn, Yesterday, 02:47 PM
|
1 response
12 views
0 likes
|
Last Post Today, 07:25 AM | ||
Started by alphatango, 01-13-2025, 11:58 AM
|
2 responses
12 views
0 likes
|
Last Post
by alphatango
Yesterday, 03:35 PM
|
||
Started by terryreeves_, Yesterday, 04:13 PM
|
1 response
7 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by sweeper2024, 01-13-2025, 06:09 AM
|
4 responses
27 views
0 likes
|
Last Post
by sweeper2024
Today, 06:40 AM
|
Comment