proxy cot trading

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242885 quote
    Coded1Coded1
    Participant
    New

    Hello fellow traders,

    I’m new here and would love to see this indicator added to the PRT graphs.

    Please have a look at this website in order to understand what it is all about: Buy the ‘MetaCOT 2 Movement Index MT4’ Technical Indicator for MetaTrader 4 in MetaTrader Market

    I’m sure it would be very helpful voor every trader.

    Thanks for any help and good trading!

    Ed

    metacot-2-movement-index-mt4-screen-6122.png metacot-2-movement-index-mt4-screen-6122.png
    #242917 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Hi! If you have the code, maybe we can help you translate it.

    #242927 quote
    Coded1Coded1
    Participant
    New

    Thanks Iván,

    code:

    Express LW_Proxy_Index_COT

    Vars

    Numeric
    i;

    Series
    CoT,
    xrange,
    xOmC,
    span,
    OmC;

    Input
    $Period(1, 500, 50),
    $Multiplicator(1, 500, 50);

    Calculation
    SetYscaleFormat(“%9.2f”);
    If IsFirstBar() then
    begin
    for i = 0 to FinalBarIndex()
    begin
    span[-i] = h[-i] – l[-i];
    OmC[-i] = o[-i] – c[-i];
    end
    MovingAverage(OmC, xOmC, $Period);
    MovingAverage(span, xrange, $Period);
    end
    Cot = xOmC/(xRange*$Multiplicator)+$Multiplicator;

    Interpretation
    begin
    end

    plot(CoT, lightblue, 1);//@@@cs:279245-3426050-147030_cs@@@

     

    This would produce a proxy COT graph but I’d need one step more and that’s to make a momentum indicator out of the indicator above.

    Regards,

    Ed

    #242929 quote
    JSJS
    Participant
    Master

    First attempt:

    Once Period=50
    Once Multiplier=0.1
    Once MomentumPeriod=50
    
    Span=High-Low
    OmC=Close-Open
    
    xRange=Average[Period](Span)
    xOmC=Average[Period](OmC)
    
    CoT=xOmC/(xRange*Multiplier)+Multiplier
    
    xMomentum=CoT-CoT[MomentumPeriod]
    
    Return CoT Style(Histogram) as "Proxy COT" Coloured("Lime"), xMomentum as "COT Momentum" Coloured("DarkGrey")
    Iván González thanked this post
    Scherm­afbeelding-2025-01-21-om-19.01.48.png Scherm­afbeelding-2025-01-21-om-19.01.48.png
    #242932 quote
    Coded1Coded1
    Participant
    New

    thanks JS

Viewing 5 posts - 1 through 5 (of 5 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 trading


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Coded1 @coded1 Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by Coded1Coded1
1 year, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/20/2025
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...