Classification of evenets in Time (Arrow?)

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #204751 quote
    Zigo
    Participant
    Master

    Is it possible to arrange the values of different events in aan arrow of time?

    #204822 quote
    Zigo
    Participant
    Master

    Yes it can.

    #204825 quote
    GraHal
    Participant
    Master

    Is your screenshot above using the PRT Platform ONLY?

    #204830 quote
    Zigo
    Participant
    Master

    Yes

    #204840 quote
    GraHal
    Participant
    Master

    What Version PRT Platform are you using to provide the information you show in your screenshot above, for example the Dyn Close Line?

    #204841 quote
    Zigo
    Participant
    Master

    I use PRT V11.

    Defparam DRAWONLASTBARONLY=true
    
    cl=close
    if cl>cl[1] then
    DRAWSEGMENT(barindex+2, cl, barindex+7, cl)coloured(0,105,255,255)
    DRAWTEXT(" #cl#(Dyn.Close)", barindex+10, close)coloured(0,105,255,255)
    elsif cl <cl[1]then
    DRAWSEGMENT(barindex+2, cl, barindex+7, cl)coloured(255,55,0,255)
    DRAWTEXT(" #cl#(Dyn.Close)", barindex+8, close)coloured(255,55,0,255)
    else
    DRAWSEGMENT(barindex+2, cl, barindex+5, cl)coloured(255,255,255)
    DRAWTEXT(" #cl#(Dyn.Close)", barindex+10, close)coloured(255,255,255,255)
    endif
    return
    GraHal thanked this post
    #204920 quote
    Zigo
    Participant
    Master

    Anyone?

    The JK indicator gives signals down and up. (red and blue)

    How can you program and record the last ten times of these signals in PRT language.

    Oldest = e.g. T1 then T2…… T10 in the attached example 8 signals down and 2 signals up.

    #204925 quote
    robertogozzi
    Moderator
    Master

    To record the last N signals you need to use an N-element array for each datum you are interested in.

    If you want to save the BarIndex of the signal you may use $SignalBAR[N].

    If you also need to save the type (Long, Short), then you may also use $SignalTYPE[N], and so on…

    I recommend that you initialize to 0 all N elements on barindex 0, the very first bar.
    Whenever s new signal is returned, shift all elements from 1 to N-1 one place, then store the new signal as element 1 (your former element 10 will be dropped).

    You will always have the last N signals in the correct order.

    Any N-element stored with 0 is a void signal, not yet filled.

    Since the first element in the array is element 0, which may slightly complicate maths on element indexing, I recommend initializing N+1 elements (elements 0 to 10 for 10 elements, instead of 0-9, then using only elements 1 to 10).

    Zigo thanked this post
    #231445 quote
    Zigo
    Participant
    Master

     

    Hello

    I have been looking into Eliott wave indicator for years and found that the workable cycles for traders can be reduced to three levels and have incorporated them into an indicator. (123xyz). The fastest cycle starts at a red (short) or green (long), rectangle, the middle cycle starts at a red (short) or green (long) triangle and the main cycle starts at a red (short) or a green (long) ellipse.
    123XYZ is an empirical approach to wave theory. An example of this can be seen in the attached image.
    In the large rectangles you can see the three symbols short and also the three symbols long. The symbols are also programmed.
    One question remains how should I program the colour of the symbols, if I use coloured(r,g,b) the edges are coloured, but how can I fill the symbols with e.g. the same colour.
    Thank you

    #231449 quote
    JS
    Participant
    Senior

    If the “symbols” are based on the “Draw” command, you can use “FillColor”…

    DRAWRECTANGLE(barindex, close, barindex[5], close[5])FILLCOLOR(255,0,0)

    DRAWELLIPSE(barindex[5], close, barindex[10], close[5])FILLCOLOR(0,255,0)

    Zigo thanked this post
    #231452 quote
    druby
    Participant
    New
    hi. With draw (rectangle,triangle,ellipse,candle) you can add  the ‘BORDERCOLOR(r,g,b,a) statement in the line. Adding this, changes object from a border to fill’ed object. Coloured(r,g,b,a)  controls the fill’ed part when bordercolor used. When BORDERCOLOR(r,g,b,0) used, object is fill’ed only, no border if transparency is zero. Using these allows combinations of  border/fill’ed as well as colour combinations. druby
    // run as independant indicator
    // add as new 'Panel'
    
    defparam drawonlastbaronly = true
    
    drawrectangle(barindex+2,high,barindex+10,low)coloured(0,0,255,255)bordercolor(0,0,0,0)
    
    drawtriangle(barindex+10,high,barindex+10,low,barindex+20,close)coloured(0,255,0,255)bordercolor(0,0,0,0)
    
    drawellipse(barindex+20,high,barindex+30,low)coloured(225,255,0,255)bordercolor(0,0,0,0)
    
    
    if open = max(open,close) then
    r =255
    g=0
    else
    r = 0
    g = 255
    endif
    drawcandle(open,high,low,close)coloured(r,g,0,255)bordercolor(r,g,0,255)
    
    return
    Zigo thanked this post
    #231453 quote
    Zigo
    Participant
    Master
    @ JS thanks a lot. This technic I knew. @Druby thats exacly what I menth, thank you very much.
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.

Classification of evenets in Time (Arrow?)


General trading discussions

New Reply
Author
author-avatar
Zigo @zigo Participant
Summary

This topic contains 11 replies,
has 5 voices, and was last updated by Zigo
1 year, 9 months ago.

Topic Details
Forum: General trading discussions
Language: English
Started: 11/24/2022
Status: Active
Attachments: 4 files
Logo Logo
Loading...