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.Brandon H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rhyminkevin, Today, 04:58 PM
|
3 responses
47 views
0 likes
|
Last Post
by Anfedport
Today, 05:24 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
5 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
50 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment