PET-D indicator

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #19623 quote
    arnauarnau
    Participant
    New
    Hello everyone, Could someone tell me where or how could I get the PET-D indicator for ProRealTime? Thank you in advance šŸ™‚
    #19626 quote
    WingWing
    Participant
    Veteran
    As far as I know, the PET-D indicator is not very well known publically. After all, ‘someone’ (the creator) is hyping it to shreads and selling it for few hundred dollars. EDIT: Apparently $2,995. I looked it up a few months ago, and someone said that the PET-D behaves very similar to a comparing price to a simple exponential average of 15 periods (http://www.protraderstrategies.com/steven-primo-dyamic-duo/). Not exactly of course, but close enough. If you combine that with whether the bar is red/green and it’s body/range ratio, then maybe you can create something similar. I googled it and it seems like the MT4 code for PET-D could be found in the file for this strategy. It would need to be converted for PRT: https://www.forexstrategiesresources.com/scalping-system-iv/452-pet-d-scalping-system/ EDIT: Took a look at the code. Apparently this is what you get for that price:
    //------------------------------------------------------------------
    #property indicator_chart_window
    #property indicator_buffers 2
    #property indicator_color1  Lime
    #property indicator_color2  Red
    
    //
    //
    //
    //
    //
    
    //extern int Length = 8;
    //extern int Price  = PRICE_CLOSE;
    
    //
    //
    //
    //
    //
    
    double bartu[];
    double bartd[];
    double trend[];
    double vel[];
    
    //-------------------------------------------------------------------
    //
    //-------------------------------------------------------------------
    //
    //
    //
    //
    //
    
    int init()
    {
       IndicatorBuffers(4);
          SetIndexBuffer(0,bartu); SetIndexStyle(0,DRAW_HISTOGRAM);
          SetIndexBuffer(1,bartd); SetIndexStyle(1,DRAW_HISTOGRAM);
          SetIndexBuffer(2,vel);
          SetIndexBuffer(3,trend);
       return(0);
    }
    int deinit() { return(0); }
    
    //-------------------------------------------------------------------
    //
    //-------------------------------------------------------------------
    //
    //
    //
    //
    //
    
    int start()
    {
       int counted_bars=IndicatorCounted();
          if(counted_bars<0) return(-1);
          if(counted_bars>0) counted_bars--;
             int limit = MathMin(Bars-counted_bars,Bars-1);
    
       //
       //
       //
       //
       //
       
       for(int i=limit; i>=0; i--)
       {
          //vel[i] = iVelocity(iMA(NULL,0,1,0,MODE_SMA,Price,i),Length,i);
          vel[i] = iMA(NULL,0,8,0,MODE_EMA,0,i);
             bartu[i] = EMPTY_VALUE;
             bartd[i] = EMPTY_VALUE;
                if (iClose(NULL,0,i )> vel[i]) trend[i] =  1;
                if (iClose(NULL,0,i) < vel[i]) trend[i] = -1;
                   if (trend[i]== 1) { bartu[i] = High[i]; bartd[i] = Low[i]; }
                   if (trend[i]==-1) { bartd[i] = High[i]; bartu[i] = Low[i]; }
       }
       return(0);
    }
    
    //-------------------------------------------------------------------
    //
    //-------------------------------------------------------------------
    //
    //
    //
    //
    //
    
    //------------------------------------------------------------------
    //
    //------------------------------------------------------------------
    //
    //
    //
    //
    //
    Nicolas thanked this post
    #19628 quote
    arnauarnau
    Participant
    New
    Oh wow, Ā I didn’t know about all this. I am gonna keep looking after it. I am going to download this and see how it works. Thank you for your time!! have a good trade 😀
    #19631 quote
    NicolasNicolas
    Keymaster
    Legend
    This indicator paints candlesticks in green when the current Close is above a exponential moving average of 8 periods and red if it is below it. This can be coded the same way within the new version of prorealtime and the custom candlesticks construction, do you still want it to be coded?
    #34782 quote
    alfalf
    Participant
    New
    Hi people, Anyone tried to decode it for pro real time? Would be great! Thanks, Alfred
    #34792 quote
    zilliqzilliq
    Participant
    Master
    And they sell it 3000 USD !!! It’s madness !
    #46436 quote
    alfalf
    Participant
    New
    Hello, Hopefully someone can decode it and make it usefull for pro real code:) Wouldn,t that be great!! Greetz from The Netherlands,
    #46439 quote
    WingWing
    Participant
    Veteran
    It is already “decoded”. The whole indicator is basically:
    PETD=1
    If close<Exponentialaverage[8] then
    PETD=-1
    Endif
    Return PETD
    
    Or am I wrong?
    #258761 quote
    bennettbennett
    Participant
    New

    Hi do you have this PET-D code in Mql5 for MT5 please

    #258774 quote
    robertogozzirobertogozzi
    Moderator
    Legend


    bennett wrote: Hi do you have this PET-D code in Mql5 for MT5 please

    This forum is devoted to the ProReatTime platform only. Coding for other platforms is not allowed.

    You need to ask for paid programming services at https://www.prorealcode.com/trading-programming-services/.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTimeā„¢ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

PET-D indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
arnau @arnau Participant
Summary

This topic contains 9 replies,
has 7 voices, and was last updated by robertogozzirobertogozzi
6 months, 3 weeks ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/02/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...