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!
See more
See less

Partner 728x90

Collapse

Volume Rank Indicator

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

    Volume Rank Indicator

    Can someone help me to transform this indicator for ninja?

    {---------- Volume-Rank-----------}


    Calc Close: Close();
    Calc High: High();
    Calc Low: Low();
    Calc Open: Open();
    Calc Volume: Volume();

    Calc CloseVortag: Ref(Close,-1);
    Calc Mittelwert: (High+Low)/2; //Mittelwert aus Hoch und Tief

    Calc UpClose: If(Close>CloseVortag,1,0); // UpClose
    Calc DownClose: If(Close<CloseVortag,1,0); // DownClose
    Calc UpBar: If(Close>Open,1,0); // UpBar

    Calc DownBar: If(Close<=Open,1,0); //DownBar
    Calc UpMid: If(Close>Mittelwert,1,0); //UpMid
    Calc DownMid: If(Close<Mittelwert,1,0); //DownMid


    // Berechnung des Aufwärtsvolumens:

    Calc V1: If(UpClose=1 AND UpBar =1 AND UpMid=1, Volume*3,0);
    Calc V2: If(UpClose=1 AND UpBar =1 AND DownMid=1, Volume*2,0);
    Calc V3: If(UpClose=1 AND DownBar =1 AND DownMid=1, Volume*1,0);

    // Berechnung des Abwärtsvolumens:

    Calc V4: If(DownClose=1 AND DownBar =1 AND DownMid=1, Neg(Volume*3),0);
    Calc V5: If(DownClose=1 AND DownBar =1 AND UpMid=1, Neg(Volume*2),0);
    Calc V6: If(DownClose=1 AND UpBar =1 AND UpMid=1, Neg(Volume*1),0);



    Calc VRankUp: V1+V2+V3;
    Calc VRankDown: V4+V5+V6;

    Calc VRank: VRankUp+VRankDown;

    //VRank

    GD(VRank, Perioden_GD_VRank, E)

    Parameter für Perioden_GD_VRank / Standardwert = 21

    #2
    Hello mazzhats,
    Unfortunately we do not convert custom codes. You can contact one of our independent NinjaScript consultants to convert the code. You can get the list of our NinjaScript consultants from here http://www.ninjatrader.com/partners#...pt-Consultants

    Please let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Brevo, Today, 01:45 AM
    0 responses
    4 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    3 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    241 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    384 views
    1 like
    Last Post Gavini
    by Gavini
     
    Started by oviejo, Today, 12:28 AM
    0 responses
    6 views
    0 likes
    Last Post oviejo
    by oviejo
     
    Working...
    X