Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about the Accumulation/Distribution Range Breakout Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    Accumulation/Distribution Range Breakout strategy was published in the August 2018 Stocks and Commodities article titled 'Portfolio Strategy Based On Accumulation/Distribution' by Domenico D'Errico.

    #2
    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])
    {
    I would suggest adding some prints to output these values to get a better idea of how numerically a short condition might need to be formed, that would let you know what operators would be needed to make a new condition.

    Comment


      #3
      Can someone help me with explaining the amount to buy section? Is it in USD or Contracts/Shares?

      Comment


        #4
        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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        128 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        74 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        116 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        110 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        88 views
        0 likes
        Last Post CarlTrading  
        Working...
        X