apply my personnal indicator to graph

Forums ProRealTime English forum ProBuilder support apply my personnal indicator to graph

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

    Hi guys,

    Here is my problem (and i’m pretty sure it’s gonna be easy for you to solve)

    I would like to apply my personnal indicator to my graph but i don’t know how to write the code. (i made you a screen shot)

    thing is, when my indicator turn positive, it should be below the price and vice versa. also when it turn positive/negatif it should mark the close of the candle.

    Is it possible for you to help me? thanks for your time.

    #89336

    the indicator sould appear as a line on the graph not as an histogram. (histogram is just an easiest way to read my indicator)

    #89342

    Click on the spanner close to the price tag on the upper left corner of your chart, then add a selected indicator.

    #89345

    Thanks robertogozzi, but this is not what i’m looking for. i would like my indicator to work a little bit like a moving average applied to the price.

    #89346

    What I told you is exactly what you need to plot your indicator’s linea ON the price chart.

    Unless you have written some odd indicator returning values well outside the price range, thus invisible on your chart or making your chart appear almost as a flat line.

    #89347

    What I mean is that if you want to plot your indicator on your DAX chart, it MUST return value around 11000 to be visible like an MA.

    If it returns value ranging, say, from 0 to 100, it will be invisible because its range is way too far from the current price. Still you may apply some math to adapt your values to fit your chart.

    #89348

    This is my problem. The value of my indicator is between -15 and 15 and i would like to apply it to every chart (GBP/USd: 1.295 or Ngc1: 3050 ect..) this is why i’m looking a way to incorporate i’m indicator into the price.

    (Maybe by creating a channel with the price, exemple: last 20 high & low) i don’t know.

    #89349

    Sorry but why do you want it to be applied on the price chart if the indicator doesn’t share the same scale?

    As a simple solution, you can add or substrat your indicator value to a moving average instead of 0.

    #89352

    I would like to apply it to the chart because it shows nice support/resistance (when it crosses 0) but once it crosses zero i don’t really know where it is on the graph (i hope you understand; i made you a screen)

    if it’s not possible it’s ok, i can still use it only as support/resistance when it crosses zero but i wanted to improve it a little bit more.

    #89354

    i mean, i only know where the support/resistance is when it crosses zero and i thought if i apply it to the graph i could have a (live resistance/support apllied to the graph)

    #89357

    This is an example:

    This is made for DAX, I needed to simulate a +15 to -15 range to match your data, with lines 1 – 9.

    First I added 15 to the value to be returned, to make it range form 0 to 30 (no negative values), then I multiplied it by 2 to make it a bit easier to see the steps on the price chart (you can omit or increase it).

    The last thing I did was to adapt it to DAX, thus I added a variable to be set with the properties of the indicator, set to 11100 by default (current rounded DAX price).

    This works, but it does only with DAX, you’ll have to make more copies of it and set different DISPLACEMENT values for other instruments.

    You need to add a displacement variable and replace X with your returned value.

    #89359

    I’m not sure that I fully understand what we are trying to achieve here but would it not be better to apply the +15/-15 range as a percentage of medianprice? You could then have a multiplication factor to move it closer or further away from the action to tune it to the market.

    #89362

    I’m not sure that I fully understand what we are trying to achieve here but would it not be better to apply the +15/-15 range as a percentage of medianprice? You could then have a multiplication factor to move it closer or further away from the action to tune it to the market.

    It can be done, as Nicolas suggested, but the indicator has its own range, let’s assume it’s a descending one, applying it to the median price or to an average will plot different slopes. The advantage is that it can be used with any instrument.
    My example does duplicates slopes and steps, but it needs to be adjusted to each instrument!

    #89367

    I was assuming that it was bounded between -15 and + 15 as the OP wrote ‘The value of my indicator is between -15 and 15 ‘.

    #89368

    I was assuming that it was bounded between -15 and + 15 as the OP wrote ‘The value of my indicator is between -15 and 15 ‘.

    It’s not bounded between -15 and 15 but in general it’s always between -15/15.

     

    Thanks for your time and for your help guys. It seems complicated to adapt to different prices. I think, i’m i gonna keep it as it is for now.

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

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