Tick counter and current line price
Forums › ProRealTime English forum › ProBuilder support › Tick counter and current line price
- This topic has 9 replies, 5 voices, and was last updated 1 year ago by JC_Bywan.
-
-
11/21/2022 at 5:32 PM #20458111/21/2022 at 6:43 PM #204584
Hello,
(1/2) … Assuming your platform is in French, click on “prix” in top left corner of price window, then click on “configurer”, a window opens, if in the left part “prix” is selected, then, in the right part you might have to scroll down or widen the window to see appearing at the bottom “Ajout de ligne” with 4 buttons to choose from, the first one being “prix actuel” (see attached image). It will move with current price.
11/21/2022 at 6:50 PM #204586(2/2) … Now, for the counter, it will count remaining time if chart is in classic timeframe, or remaining ticks if chart is in (x) ticks timeframe.
From same price properties window as above (click on « price » then « configurer »), you need to select « échelle » this time, and on the right side, select box « afficher le décompte pour la clôture de la barre » (see attached image).
1 user thanked author for this post.
11/21/2022 at 9:56 PM #20459711/22/2022 at 6:02 AM #204607Hello gianpre,
Yes, this can be coded yourself.
I guess you should tell for either function why you want to code this yourself. If you don’t explain that in the context of the standard functionality not sufficing, you will get the same answer JC_Bywan gave you because it does not need to be coded and maybe nobody is going to invest the time required making a code for something which already exists (I hope this comes across as logic).
Anyway, the answer is Yes (via Indicator code).
11/22/2022 at 9:29 AM #204614Rough idea for the ticks counter:
1234567891011121314defparam drawonlastbaronly=trueif opentimestamp<>$lastopen[0] then$lastopen[0]=opentimestamp$count[0]=0endifif close<>$close[0] then$close[0]=close$count[0]=$count[0]+1drawtext($count[0],-20,-20) anchor(topright)drawhline(close)endifreturn11/22/2022 at 12:25 PM #20464111/22/2022 at 12:50 PM #204642@Nicolas, great stuff. But it does not work well (yet). I quickly tried to make it work but there is more to it.
In your sample code the counter counts per price change (as captured by the indicator code). This will be solvable by the seconds constant, but in the end it will fail because nothing will show when the price does not move. That, I think, will leave the standard solution as the only reliable solution (for gianpre, see below the “10s” in the top-right corner).
05/08/2023 at 11:40 PM #21432605/09/2023 at 11:38 AM #214364Hello @Yossua,
If you want to see the horizontal line moving with bar close in (x) ticks in this PRTv12 version, instead of using “usar otro periodo” you can use the menu choice just above in your screen capture: “Ajuste el periodo a la unidad temporal del grafico” (and to see full line you can also tick option “extender por todo el grafico”), as in attachment 1 (French version but same menu location).
If you want to see the countdown to the end of the bar in the right margin, you can right-click in right margin, then last choice for zone configuration, or another path is directly from same window as your screen capture and clicking on third tab for “scale”, then tick box for countdown as in attachment 2.
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on