Cursor Data exclusion

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #244715 quote
    cummish
    Participant
    Junior

    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

    #244717 quote
    JS
    Participant
    Senior

    SetUp  Chart Settings  Cursor

    Iván González thanked this post
    Scherm­afbeelding-2025-03-06-om-12.13.16.png Scherm­afbeelding-2025-03-06-om-12.13.16.png
    #244719 quote
    cummish
    Participant
    Junior
      Thanks that allows me to alter open hi lo etc but does not seem to allow me for example to adjust including or excluding certain data from say a MACD , RSI etc
    #244721 quote
    JS
    Participant
    Senior

    In the last four lines, you can set the displays of your indicator…

    You can turn indicators on/off, display certain line values..

    I don’t think there are any more settings for the cursor…

    #244737 quote
    cummish
    Participant
    Junior
    Thanks.  I was sure I had ajdusted this previously for individual indicators? If anyone else knows if that is possible would be appreciated Thanks, Shane
    #244763 quote
    druby
    Participant
    New
    I’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
    switch = 1 // default 1,  boolean   -: cursor values  1 = yes , 0 = NO
    
    avg = average[10,0](close)
    
    
    if switch = 1 then
    display = avg
    
    else
    display = undefined
    
    drawsegment(barindex[1], avg[1],barindex,avg)coloured("red")style(dottedline,1)
    endif
    
    return   display
    Demo-no-cursor-value.itf
    #244778 quote
    cummish
    Participant
    Junior
    Thanks for your thoughts on that!
    druby thanked this post
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Cursor Data exclusion


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
cummish @cummish Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by cummish
11 months, 1 week ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 03/06/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...