Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicators

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

    Indicators

    I have some favorite indicators i would like to migrate from another platform to NT. I am not very computer savy. Is there any one who can help me translate into NT code ...?

    #2
    Drop us the code and a description of what the indicator does. Maybe even a screenshot of it in your other platform and we'll see what we can do.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Ok ...will send them in the am...Thanks

      Comment


        #4
        Indicator Migration

        This is Tradestation code for a double stochastic

        [LegacyColorValue = true];
        {_DStoc: Double Stochastic}
        Inputs: DStLen(NumericSimple);
        Vars: Num(0),Denom(0),Ratio(0),PctK(0),DNum(0),DDenom(0) ,
        DRatio(0),DPctK(0);
        {Stoc}
        Num=C-_Lst(L,DStLen);
        Denom=_Hst(H,DStLen)-_Lst(L,DStLen);
        Ratio=IFF(Denom>0,(Num/Denom)*100,Ratio[1]);
        PctK=IFF(CurrentBar=1,Ratio,PctK[1]+(.5*(Ratio-PctK[1])));
        {DStoc}
        DNum=PctK-_Lst(PctK,DStLen);
        DDenom=_Hst(PctK,DStLen)-_Lst(PctK,DStLen);
        DRatio=IFF(DDenom>0,(DNum/DDenom)*100,DRatio[1]);
        DPctK=IFF(CurrentBar=1,DRatio,DPctK[1]+(.5*(DRatio-DPctK[1])));

        _DStoc=DPctK;

        Comment


          #5
          Do you have a screenshot?

          Thanks.

          Comment


            #6
            Yes ..in a pdf file ...how do I send it...?

            Comment


              #7
              Double Stochastics

              I posted this indicator in the new File Sharing section.

              http://www.ninjatrader-support.com/v...2746#post12746

              I created this for a trading group some months ago.
              RayNinjaTrader Customer Service

              Comment


                #8
                Indicator Migration

                That works well.
                Could you apply this zero lag algoirithim to it...? This code is a TS function called "Zero lag"

                [LegacyColorValue = true];

                Inputs: Price(NumericSeries), Length(NumericSimple);
                Vars: aa(0), bb(0), CA(0), CB(0), CC(0), CD(0), Pricea(0) ;

                aa = expvalue(-1.414*3.14159 / Length);
                bb = 2*aa*Cosine(1.414*180 / Length);
                CB = bb;
                CC = -aa*aa;
                CA = 1 - CB - CC;
                CD = CA*Price + CB*CD[1] + CC*CD[2];
                ZeroLag = CD;

                If Length < 3 then ZeroLag = Price;


                Here is the actual TS Doub STO code with the zero lag applied..._DSTOC is the Doub Sto function I emailed prior...


                [LegacyColorValue = true];
                Inputs:OverBot(90),overSold(10),DSTlen(10),Priceac tionfilter(5);
                Vars: DoubleStoch(0),dir(0);

                DoubleStoch =zerolag( _Dstoc(DSTLen),priceactionfilter);

                Plot1(DoubleStoch,"DblStoc");
                Plot2(OverBot,"Over Bot");
                Plot3(OverSold,"Over Sold");


                If Plot1>Plot1[1] Then Dir=1;
                If Plot1<Plot1[1] Then Dir=-1;

                If Dir>0 Then SetPlotcolor(1,cyan);
                If Dir<0 Then Setplotcolor(1,magenta);


                If Dir[1] <0 and Dir > 0 Then alert("DS Rising");
                If Dir[1] >0 and Dir < 0 Then alert("DS Falling");

                Comment


                  #9
                  Unfortunately I can't but anyone willing can take the code I published and modify it.
                  RayNinjaTrader Customer Service

                  Comment


                    #10
                    Here you are :

                    http://www.ninjatrader-support.com/v...96&postcount=3

                    I didn't know whether you overlay it with DoubleStochastics, but you can certainly do that manually by adding both to the same pane.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by StevenNelson, Yesterday, 03:24 PM
                    1 response
                    6 views
                    0 likes
                    Last Post NinjaTrader_Jason  
                    Started by my-trade, Yesterday, 10:45 AM
                    1 response
                    14 views
                    0 likes
                    Last Post NinjaTrader_Jason  
                    Started by s.kinra, Yesterday, 11:36 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post s.kinra
                    by s.kinra
                     
                    Started by oz187, Yesterday, 11:31 PM
                    0 responses
                    7 views
                    0 likes
                    Last Post oz187
                    by oz187
                     
                    Started by donalwelli, Yesterday, 11:26 PM
                    0 responses
                    5 views
                    0 likes
                    Last Post donalwelli  
                    Working...
                    X