Classification of evenets in Time (Arrow?)
Forums › ProRealTime English forum › General trading discussions › Classification of evenets in Time (Arrow?)
- This topic has 11 replies, 5 voices, and was last updated 7 months ago by Zigo.
-
-
11/24/2022 at 9:51 AM #20475111/25/2022 at 1:46 PM #20482211/25/2022 at 2:38 PM #20482511/25/2022 at 4:35 PM #20483011/25/2022 at 9:31 PM #20484011/25/2022 at 9:53 PM #204841
I use PRT V11.
1234567891011121314Defparam DRAWONLASTBARONLY=truecl=closeif cl>cl[1] thenDRAWSEGMENT(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]thenDRAWSEGMENT(barindex+2, cl, barindex+7, cl)coloured(255,55,0,255)DRAWTEXT(" #cl#(Dyn.Close)", barindex+8, close)coloured(255,55,0,255)elseDRAWSEGMENT(barindex+2, cl, barindex+5, cl)coloured(255,255,255)DRAWTEXT(" #cl#(Dyn.Close)", barindex+10, close)coloured(255,255,255,255)endifreturn1 user thanked author for this post.
11/27/2022 at 10:20 PM #204920Anyone?
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.
11/28/2022 at 4:14 AM #204925To 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).
1 user thanked author for this post.
04/12/2024 at 11:53 AM #231445Hello
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 you04/12/2024 at 12:32 PM #231449If 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)
1 user thanked author for this post.
04/12/2024 at 12:58 PM #231452hi.
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
12345678910111213141516171819202122// run as independant indicator// add as new 'Panel'defparam drawonlastbaronly = truedrawrectangle(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) thenr =255g=0elser = 0g = 255endifdrawcandle(open,high,low,close)coloured(r,g,0,255)bordercolor(r,g,0,255)return1 user thanked author for this post.
04/12/2024 at 1:42 PM #231453 -
AuthorPosts
Find exclusive trading pro-tools on