Correction And Surge Indicator
Forums › ProRealTime English forum › ProBuilder support › Correction And Surge Indicator
- This topic has 6 replies, 2 voices, and was last updated 6 years ago by Nicolas.
-
-
01/10/2018 at 12:07 PM #58818
Hello everyone Ivan Here,
I am studying Kirk Northington’s book “Volatility-Based Technical Analysis: Strategies for Trading the Invisible” 2009 USA.
I am intrigued about an indicator called Correction And Surge.
The indicator is used for the stock exchange and indices. The formula is simple.
For the Correction:
Correction = downhill Stock Exchange / Moving Average (Total stock in index)
due Total stock in index is = (uphill stock exchange + downhill stock exchange + stock exchange unchanged)
For the Surge:Surge = uphill Stock Exchange / Moving Average (Total stock in index)
due Total stock in index is = (uphill stock exchange + downhill stock exchange + stock exchange unchanged)
The calculation should not be difficult, in theory it should come out a ratio that goes from 0 to 1. However I have no idea how to recall the data in the Probuilder programming.
It would be a good idea to have the drawings showing the Correction or Surge signal come out on the chart. The indicator must be able to work both on the stock exchange and indices.
If necessary, I have the code for TradeStation.
Thanks a lot if we can program this is good for everyone 🙂
01/11/2018 at 1:50 PM #5905301/13/2018 at 3:09 AM #59317Then we can engage ourselves to identify this signal in a similar way.
For example, we could quantify in% the range between the opening and closing price, evaluate it in some way to find the bull or bear correction thrust.
I take a pen and paper and try to pull down an equation 🙂
01/13/2018 at 4:23 AM #59319In this formula I thought of a simple principle, that is the summation of the last n periods, to frame the anomalous cases of volatility that may indicate volumes in correction. Then I looked for a multiplier of the sum of the ranges to differentiate between short and long cases, everyone will do the backtests to get the data.
FORMULA = (Sum N Range / N) * Multiplier
The short and long cases have been differentiated.
Here is the code, but it would be nice to tell the program not to show further signs in N days later. Example: After the signal do not give other signals for 5 days.
It can be done ? 🙂
Correction and Surge Indicator v.1123456789101112131415161718192021222324252627282930313233//https://www.prorealcode.com/topic/volatility-support-resistance-indicator///Ivan @ prorealcode.com//periods definitionperiod = 20//Rules Definitionx1 = range > (summation[period](range)/period)*1.2 AND Open < Closex2 = range > (summation[period](range)/period)*1.5 AND Open > Close//bull signal textif x1 thenDRAWTEXT("Bull", barindex, low-40, Dialog, Bold, 12) COLOURED(10,255,10,255)endif//bear signal textif x2 thenDRAWTEXT("Bear", barindex, high+40, Dialog, Bold, 12) COLOURED(255,10,10,255)endif//bull signal arrowif x1 thenDRAWARROWUP(barindex,LOW-10)coloured(10,255,10)endif//bear signal arrowif x2 thenDRAWARROWDOWN(barindex,high+10)coloured(255,10,10)endifreturn1 user thanked author for this post.
01/13/2018 at 8:31 AM #5932001/13/2018 at 1:35 PM #59346The indicator at present is as shown in the attached picture.You need to add at least one filter, which says:
– Once the signal occurs, do not give other signals for the next n (for exalple 5 foolowing days) following days.
Let’s start with this, to finish the first version then I have some ideas to improve it again.
Thanks and have a nice weekend everyone 🙂
1 user thanked author for this post.
01/13/2018 at 3:04 PM #59354Once the signal occurs, do not give other signals for the next n (for exalple 5 foolowing days) following days.
Ok, let’s do it:
1234567891011121314151617181920212223242526//https://www.prorealcode.com/topic/volatility-support-resistance-indicator///Ivan @ prorealcode.com//periods definitionperiod = 20//Rules Definitionx1 = range > (summation[period](range)/period)*1.2 AND Open < Closex2 = range > (summation[period](range)/period)*1.5 AND Open > Close//bull signal textif x1 and barindex-lastx1bar>=5 thenDRAWTEXT("Bull", barindex, low-40, Dialog, Bold, 12) COLOURED(10,255,10,255)DRAWARROWUP(barindex,LOW-10)coloured(10,255,10)lastx1bar = barindexendif//bear signalif x2 and barindex-lastx2bar>=5 thenDRAWTEXT("Bear", barindex, high+40, Dialog, Bold, 12) COLOURED(255,10,10,255)DRAWARROWDOWN(barindex,high+10)coloured(255,10,10)lastx2bar = barindexendifreturn -
AuthorPosts
Find exclusive trading pro-tools on