How to show text before actual write it?

Forums ProRealTime English forum ProRealTime platform support How to show text before actual write it?

Viewing 15 posts - 1 through 15 (of 15 total)
  • #170682

    Im looking for help to show text on my charts. I want it to be shown on the chart but not to be written so it disappears when actions of programming are false. Can anybody help me how I can resolve this? TY

    #170684

    Can you explain better what you mean?

    An example would be beneficial.

     

    #170836

    I Try to make a swing counter. but I can let the program write 1,2,3 and so on but if the swing doesn’t reach the full 9 I want to erase the the count. For now I have the count of the swing but it’s written so I can’t let it erase the count. Would it be possible only to show the count and let the program write the count if the swing is fully completed?

    #170879

    Can you make an example with a pic?

     

    #170882

    The swing should be max 9. If upswing or downswing continues 1 bar should be without counting like in the picture. If the upswing or downswing fails the count should be reset and removed from the chart. There are many fail swings and it would be very nice to have them deleted from the chart.

    #170895

    Can you define a swimg, please?
    When a swing can be called as such?
    Because in my opinion a SWING is such when there’s an inversion bar after one of the two bars has set a ne high or low within the last N periods.
    Why you numbered a candle 1, the next one 2 and the next one 3, or 4 and the restarted from 1 or continued to 5 (see attached pic)?

    #170999

    An upswing is 1,2,3,4,5,6,7,8,9 in blue. When it reaches the 9 It should be fixed on the charts. A Downswing is 1,2,3,4,5,6,7,8,9 in red. When 9 is reached in the downswing it should be fixed on the charts. The part you highlighted in green is a upswing 1,2,3,4 but then the upswing turns into a downswing. Meaning the upswing is invalid and shouldn’t be displayed on the chart. The after you see 1 in the downswing. but also here the downswing is invalid after the first bar and shouldn’t be displayed on the charts. The part you highlighted red is the first part of a perfect swing. The swing goes up al the way to 9 and that’s what should be displayed on the charts. I added a photo of how a chart should be. In the picture all the fail swings are not displayed on the chart.

    #171035

    I  have several pics, still you haven’t explained:

    BLUE

    • when is 1 plotted the very first time (conditions that make that happen)?
    • when is 2 plotted (conditions that make that happen)?
    • when is each next step (up to 9) plotted (conditions that make that happen)?
    • after plotting 9 when does 1 has to be plotted again to restart the count?

    RED

    • I think it’s like the BLUE (reversed), if it isn’t, please post details with conditions.

     

    #171041

    When the condition for the upswing is valid 1 should appear on the chart. the count is always 1-9 up or down up is blue down is red. After a full swing (1-9) the next candle should be one without a count if it’s in the same direction. For example after a full swing up (1-9 blue) the next candle can only be without then a new upswing can start. If the condition is vallid for a downswing (after the upswing is completed) the next candle can start with the downswing. I have already got it to a point that only the entire swing appears on the chart. Working with a downto command. The problem is that the swing will only appear if its fully completed. I added a picture of a chart where the upswing is started at the end of the graphic. If the condition for the upswing is invalid the upswing should be erased en the downswing should start. The second picture is when the downswing started and the upswing is erased from the chart. Its the same graphic only a little bit later. I highlighted the area where the count changed. It’s the same chart but instead of the the 3 count went to a invalid upswing and to a valid downswing, erasing the upswing (1,2,3) and instead started the downswing (1,2). The downswing 1(red) is now on the same bar but before it was the upswing 3 (blue).

    #171045

    I have many pics, what I am lacking are the conditions (the reasons) those numbers appear.

    You should:

    • define an UPSWING  (is it any higher high? is it when a higher high is followed by a reversal candle? or else…..)
    • define a DOWNSWING (the same as above, just the other way round, I guess)
    • when those numbers are to be plotted and, after stopping on 9, when should they be plotted again?

     

    #171049

    Sorry to jump in, but Roberto, the way of PRT programming apparently does not allow to see through the meaning of what Adriaan wants. Or maybe it is better to say that what Adriaan wants is not possible and therefore we can’t see how to do it.
    Maybe this helps in getting an idea :

    Adriaan, envision your numbers to be colours instead. 1 is a light colour like white. 9 is the most flammable colour like fluorescent purple. Btw, you still might draw your numbers, but it is about the colours.

    You now will visually see at a glance how far a swing got (white etc. is not undone – it just stays). Hardly (white), vs, halfway (say green) vs close to the full swing (dark red), vs it got there (9 – purple).

    Roberto’s questions still remain (I’m sure he wants to give you a full solution), but I take it that you already can deal with that (including when 9 reverses/resets to 1). Still it would be so that when 9 is reached, there’s a virtual 10 and beyond. So only when you allow to go beyond purple and have a more purple than purple at hand, this may work. Or let stay purple just purple (and actually have many subsequent 9’s).

    I hope this helps a little …

    #171074

    So in order to undo the count I have to redo the count starting on 1 but change the color to my background color of the chart so it appears not to be written.

    #171076

    If that would suite you, Yes. But I wonder …

    My initial thought at seeing your first post was to write spaces (or nothing) unless with 9. … But that would not really do what you want because you would only see the 9’s.
    Same with your color = background color of the chart, unless it is 9. You would only see the 9’s. … If that is what you want, then fine ! However :

    So in order to undo the count I have to redo the count starting on 1

    I have the hunch that you still want to change the (drawing on the) chart in the past. And that is not possible.

    #171107

    If i load a chart with the 1,2,3,4 (upswing, blue) shown on the chart but then the condition changes from 1,2,3,4,5 to -1 and you see the -1 (downswing, red) instead of 5. I understand that 1,2,3,4 is visible on the chart as is the -1. What I want is if I reload the chart that I have a -1(downswing, red) on my chart but not the 1,2,3,4 anymore. I think it should be possible that if a swing has not finished his 1-9 count is shown on the chart and if invalid can be erased if reloading the chart. Otherwise I do not understand how the chart I added works. I highlighted those charts and you can clearly see that after reloading the chart the upswing disappeared from the chart.

    #171134

    I highlighted the area where the count changed. It’s the same chart but instead of the the 3 count went to a invalid upswing and to a valid downswing, erasing the upswing (1,2,3) and instead started the downswing (1,2). The downswing 1(red) is now on the same bar but before it was the upswing 3 (blue).

    So the crux is in there somewhere. 🙂

    I think it should be possible that if a swing has not finished his 1-9 count is shown on the chart and if invalid can be erased if reloading the chart. Otherwise I do not understand how the chart I added works.

     

    So we have something like this as a lead, right ?

    It is also good to know that apparently the graphs you showed are taken from PRT fully, thus including the blue and red numbers. OK.

    When a bar is drawn, you would be looking at the bar preceding it in order to see if it’s (again) going going up or not. If Up and the previous one also was Up, you would have a 1,2 in blue. When a third would be Down, you’d reset to -1 and draw that -1 in Red.
    What you could try (is not so simple) :

    Maintain the positions where you wrote the previous numbers in an array. Thus, bar position and price position. From there you would be looping back to the first bar you would like to change, and a. erase its old number (write a space of sufficient width) and b. position the new number (which also involves the new vertical position, I think, but alas – you will see automatically).

    Again, this will not be very simple and at least will involve more than I have time for. So I hope this gets you started ?
    Maybe Roberto has some base code in his library he can provide (for you to work out further) ?

    For your idea, in the attachment I do a kind of similar to help you better understand. The vertical bar you see there, has an offset from the righthand side of the chart. It is always at the same position, like 30 bars (each bar in this case is 5 minutes). Well, although this is a line, it could just as well be a number like the yellow numbers at the yellow arrows you see in there. And … those numbers change just the same. See second attachment for a few minutes and one or two bars later.

    So it looks feasible …

    PS: Open the attachments in a new tab/window in order to enlarge them sufficiently !

Viewing 15 posts - 1 through 15 (of 15 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login