View internal function code
Results 1 to 3 of 33

Thread: View internal function code

  1. #1
    Hey guys. I have a simple question.

    I am trying to convert a metatrader indior to tradestation.
    In tradestation, you can start any fuction and view the internal calculations quite easily. Can I start a fuction within metatrader and do the same?

    I want to see the internal code of iWPR (%R). This inputs the duration and change values, but does not yield the same results as the tradestation equivalent does.

    Thank you for you help.

    mrLogik

  2. #2
    And the code for TS:

    *****************************************
    Description: Percent R
    Given By: Omega Research, Inc. (c) Copyright 1999
    *****************************************

    Inputs: Length(NumericSimple);
    Factors: HiLoDiff(0);

    HiLoDiff = Highest(High, Length) - Lowest(Low, Length);

    If HiLoDiff lt;gt; 0 Subsequently
    PercentR = 100 - ((Highest(High, Length) - Close) / HiLoDiff) * 100
    Else
    PercentR = 0;

  3. #3
    %R = (HIGH(i-n)-CLOSE)/(HIGH(i-n)-LOW(i-n))*100

    Where:
    CLOSE #8212; is now #8217;s final price;
    HIGH(i-n) #8212; would be the highest high over a number (n) of previous intervals;
    LOW(i-n) #8212; is the lowest low over a number (n) of previous intervals.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.