Cursor Data exclusion
Forums › ProRealTime English forum › ProRealTime platform support › Cursor Data exclusion
-
-
03/06/2025 at 12:06 PM #244715
Hi
I want to remove some of the data that shows in the cursor data box as there is too much showing up ie if there are certain data points of an indicator and I only want to show some and not all – how do I edit / remove those I don’t want.
Thanks – am sure I have done before but cannot find it again
03/06/2025 at 12:16 PM #24471703/06/2025 at 12:20 PM #24471903/06/2025 at 12:32 PM #24472103/07/2025 at 8:06 AM #24473703/07/2025 at 11:37 PM #244763I’ve not come across a setting to be able to individually turn off certain indicator values from the cursor info.
By design, I think the stock and custom indicators appear to work similar with regards to displaying lines and there cursor values.
In custom indicator code, lines are generated from the variables that appear after the ‘RETURN’ keyword for the return statement.
When these variables are returned, there lines are drawn and values appear in the cursor info, the only exception is when the line/variable is ‘undefined’.
In the indicators configure window, the lines that appear, though they can be individually turn off, there values can only be disabled together.
The only way I can think how to do something like you require, is by writing custom code indicators.
The feature could be done by ‘how’ the lines are drawn, by RETURN line gives the cursor values, by draw… keyword doesn’t.
The inclusion of a switch variable to switch between the two options, would determine which option chosen and whether the values appear.
If the lines were drawn using the DRAWSEGMENT keyword, the cursor values would not appear, at the same time,
by making the RETURN’ed variable = ‘UNDEFINED’ , its line and values would not appear., leaving only the draw… line without the cursor values.
One thing to note, draw… lines don’t appear in the configure window, so the line colour/style etc need hard coding, and other feature’s may not be available, which are with the RETURNED version way.
Also, when trying to code around something, it can soon end up as one step forward two steps back, depends on how complicated the job is.
The ‘copy’ code shows the a simple example of this, the file version puts the switch in the configure window to flip!.
Regards
123456789101112131415switch = 1 // default 1, boolean -: cursor values 1 = yes , 0 = NOavg = average[10,0](close)if switch = 1 thendisplay = avgelsedisplay = undefineddrawsegment(barindex[1], avg[1],barindex,avg)coloured("red")style(dottedline,1)endifreturn display -
AuthorPosts
Find exclusive trading pro-tools on