proxy cot trading

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #242885 quote
    Coded1
    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

    #242917 quote
    Iván González
    Moderator
    Master

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

    #242927 quote
    Coded1
    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
    JS
    Participant
    Senior

    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
    #242932 quote
    Coded1
    Participant
    New

    thanks JS

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

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 Coded1
1 year ago.

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