Add text on Divergence indicator

Forums ProRealTime English forum ProBuilder support Add text on Divergence indicator

Tagged: 

Viewing 14 posts - 1 through 14 (of 14 total)
  • #93635

    Good day,

    I found this indicator in the library. Will it be possible to add a text  e.g  “Buy” or “Sell” just above or below the divergence lines?

    Regards,

    Segie

     

    #93639

    Hi segie

     

    see code with text and arrows

     

     

    1 user thanked author for this post.
    #93640

    There you go:

     

    1 user thanked author for this post.
    #93738

    Awesome. Thank you all

    #172693

    Hello Nicolas, Jose, Segie & Roberto,

    When the above indicator triggers, it lags by a few points. This is normal and correct with all MACD type indicators.

    Now assume I have it displayed on Chart and instead of having Drawsegment, I have Drawarrowup and Drawarrowdown instead. My question is:

    If I want to (on purpose) make it false trigger i.e. trigger the up and down arrows on Barindex[1] prematurely by say 10 index points before actual bullish and bearish conditions are triggered, how would I do that please?

    Many tnx in advance

    #172699

    There’s no way to foretell if a signal will be returned next bar.

    You can only wait for the signal and when it shows you can plot something on the prior bar. It’s a ZigZag-like behavior called REPAINTING.

     

    #172701

    Tnx Roberto. I am not sure if I explained myself properly.

    I want the signal to appear prematurely (i.e. prior prior and in advance of what it was going to appear).

    Let’s say the signal will appear when a condition is met (let’s say when current bar price is or reaches 7000). What I want is the signal to appear as the price approaches or near 7000 (say 7000 – x points, for example 6990)

    with the MACD indicator that JOSE has written, once the conditions that trigger the signals are understood, then we can alter those conditions to trigger on approach not on attainment. I am fully aware that this would defeat the purpose of the divergence/convergence but still that’s what I want to achieve and test. It would be like a prewarning of trouble ahead 🙂

    Hope this has clarified what I am trying to achieve.

    #172702

    Yes, you had explained yourself clearly.

    If 7000 is lagging, you can replace it with 6990. Then 6990 will be lagging.

    Anyway, were it a fixed price, say 7000, you could easily wait when it is 6990, though not exactly, but with CLOSE how can you tell it’s now 10 points less than it will be next bar?

     

    #172703

    Mate I used Close as just a plain example. The actual conditions for the signal trigger are those in the MACD on MACD indicator that is coded by JOSE and posted here in the forum. Have a look at this indicator and see if you can grasp the conditions that trigger the signal. if you can then see if there is a way to trigger the signal on approach of condition (i.e. pre-mature trigger) rather than on attainment of condition.

    #172705

    Indicators are even worse than price, if the current price is 6990, on the rise, you may guess the next bar is approx. 7000, but how can you foretell next bar MACD will be 0 if now it’s -3?
    If you mean something like this:

    assuming next miMACD will be the current value + 2, it won’t work most of the times.

    #172855

    tnx Roberto.

    The below attached file returns value of an indicator I have written on top or bottom of candle (green if positive and red if negative). The value is live and dynamic i.e. it changes up and down for the duration of the timeframe. At the end of time frame, the value freezes and becomes historic, green if positive by end of time frame and red if negative by end of time frame). So far so easy and straightforward.

    My question is:

    How can I display the rate the value is changing per minute? is that possible with an array or some other simpler code?

    #172856

    The file is missing.

     

    #172858

    It was a picture. I here attach it again

    #172864

    It’s the same answer I posted here https://www.prorealcode.com/topic/creating-timer-to-capture-indicator-values-at-intervals/.

    You can display values every 15 minutes on a 1-minute TF, not the other way round.

     

     

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

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