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 9:14 PM #893711234multiple = 1 //(or any value you choose to tune the indicator to the market)x = 0 -(????) //( ???? = output of your indicator usually between -15 and + 15)z = medianprice * (1 + (x / 100) * multiple)return z
If your indicator output is normally between -15 and +15 then the above will do what I was suggesting. Tune the multiple to match individual markets.
01/23/2019 at 9:35 AM #89399i can still use it only as support/resistance when it crosses zero but i wanted to improve it a little bit more.
oh, easier to understand with a picture! Indeed, what you want is possible. Please share the indicator code in order to incorporate all the necessary code to it. I’m sure we’ll be able to add the graphical component you miss.
01/23/2019 at 1:39 PM #8943201/23/2019 at 3:32 PM #89458a = RSI[30](close) – RSI[100](close)
That is a bounded indicator as RSI is bounded between 0 and 100 so your combination of two RSI’s is now bounded between 100 and -100 as those are the maximum and minimum results possible.
If you apply your indicator to my code you get a line that flips above and below price.
1234multiple = 1x = 0 - (RSI[30](close) - RSI[100](close))z = medianprice * (1 + (x / 100) * multiple)return z2 users thanked author for this post.
01/23/2019 at 3:43 PM #89461Nice job Vonasi, but line 3 should be replaced by
1z = medianprice * (1 - (x / 100) * multiple)to replicate the true indicator.
01/23/2019 at 3:53 PM #89463when my indicator turn positive, it should be below the price and vice versa.
I think mine is correct if I understood the above comment from the OP correctly.
01/23/2019 at 4:06 PM #89465Here is a version that draws a buy or sell arrow when the line crosses medianprice as Porion requested this originally I seem to recall.
12345678910111213multiple = 1x = 0 - (RSI[30](close) - RSI[100](close))z = medianprice * (1 + (x / 100) * multiple)if z crosses over medianprice thendrawarrowdown(Barindex, medianprice + range) coloured(128,0,0)endifif z crosses under medianprice thendrawarrowup(Barindex, medianprice - range) coloured(0,128,0)endifreturn z01/23/2019 at 4:55 PM #8947201/23/2019 at 5:09 PM #8947501/23/2019 at 6:38 PM #89478i think it would be better if i was able to smooth it a little bit
Try changing line for something like this:
1x = exponentialaverage[3](0 - (RSI[30](close) - RSI[100](close)))01/23/2019 at 6:44 PM #8947901/23/2019 at 7:47 PM #8948901/23/2019 at 8:05 PM #89494 -
AuthorPosts
Find exclusive trading pro-tools on