Announcement

Collapse
No announcement yet.

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 georgeinharmony, Today, 12:06 AM
    2 responses
    12 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by Prisalice, Yesterday, 07:07 AM
    2 responses
    16 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Futurestrader00, Yesterday, 12:04 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Blairski, Yesterday, 11:26 PM
    0 responses
    9 views
    0 likes
    Last Post Blairski  
    Started by aligator, Yesterday, 02:38 PM
    0 responses
    10 views
    0 likes
    Last Post aligator  
    Working...
    X