PROXY COT

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37056 quote
    unkownunkown
    Member
    New

    Hello,

    Just registered a couple of days ago and happy to have found this site.

    Is there anybody here that would know how to create the PROXY COT indicator in Prorealtime?

    The formula I found was: MovingAvg(Open-Close, bars used in average)/MovingAvg(Range,bars used in average)*50 +50

    But not sure how to integrate this in Prorealtime.

    Any help is welcome.

    Thanks,

    Ed

    #37090 quote
    NicolasNicolas
    Keymaster
    Legend

    This code snippet would do the trick, you can adjust the period of the moving in the code by yourself:

    //MovingAvg(Open-Close, bars used in average)/MovingAvg(Range,bars used in average)*50 +50
    
    period=50
    cot = average[period](open-close)/average[period](range)*50+50
    
    return cot

    I don’t know how it is useful and relevant compared to the real Commitments Of Traders, but this is what the formula returned on a chart (example attached).

    atxeel thanked this post
    proxy-cot-commitments-of-traders.png proxy-cot-commitments-of-traders.png
    #37100 quote
    unkownunkown
    Member
    New

    Thanks a lot, Nicolas.

    This is exactly what I meant.

    I’d use it like this: above 55, be ready to buy, below 40, be ready to sell (of course if it agrees with other indicators as f.e. slow stochastics).

    Mary thanked this post
Viewing 3 posts - 1 through 3 (of 3 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

PROXY COT


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
unkown @unkown Member
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by unkownunkown
9 years, 4 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/30/2017
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...