apply my personnal indicator to graph
Forums › ProRealTime English forum › ProBuilder support › apply my personnal indicator to graph
- This topic has 27 replies, 4 voices, and was last updated 5 years ago by Vonasi.
Tagged: Indicator on Price Chart
-
-
01/22/2019 at 2:10 PM #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.
01/22/2019 at 3:04 PM #8933601/22/2019 at 4:14 PM #89342Click on the spanner close to the price tag on the upper left corner of your chart, then add a selected indicator.
01/22/2019 at 4:30 PM #8934501/22/2019 at 4:36 PM #89346What 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.
01/22/2019 at 4:40 PM #89347What 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.
01/22/2019 at 4:48 PM #89348This 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.
01/22/2019 at 4:56 PM #8934901/22/2019 at 5:06 PM #89352I 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.
01/22/2019 at 5:10 PM #8935401/22/2019 at 6:44 PM #89357This is an example:
1234567891011IF close > 11100 thenx = 15ELSIF close > 11000 thenx = 7ELSIF close < 11000 thenx = - 15ELSEx = -6ENDIFx = (x + 15) * 2RETURN x + DisplacementThis 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.
01/22/2019 at 6:50 PM #89359I’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.
01/22/2019 at 7:00 PM #89362I’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!01/22/2019 at 7:46 PM #8936701/22/2019 at 7:59 PM #89368I 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.
-
AuthorPosts
Find exclusive trading pro-tools on