3 Bar Highs and lows
Forums › ProRealTime English forum › ProBuilder support › 3 Bar Highs and lows
- This topic has 10 replies, 3 voices, and was last updated 4 years ago by Anxogga.
-
-
02/22/2017 at 10:32 PM #26092
Hi everyone, I am new and trying to set up my trading platform here in ProRealTime. I was wondering if anyone had the code to share
for “3 Bar Highs and Lows” Indicator? I think it used to be called TA Swings but I can’t seem to find it on ProRealTime library anymore. Its where
the candle high is higher then previous 3 highs and the following candle being a lower high and for Lows is when the candle is lower then the previous 3 lower lows and the following candle being a higher low.
Any help on this indicator would be greatly appreciated.
Thank you
Mary
02/27/2017 at 10:42 AM #26500It reminds me of this indicator: https://www.prorealcode.com/prorealtime-indicators/bar-count-reversals-pivot-points-highlow/
Do it suits your request? Otherwise, this candlesticks pattern “TA Swings” indicator should be easy to code.
02/27/2017 at 8:06 PM #26593Hi Nicolas,
Thank you so much for responding and sending the code. I am really new at this and haven’t learned how to code, I am trying to learn how to at this point so i am not sure i can modify the code you sent me just yet.
I was wondering if it was possible at all for you to code it for me? i would pay for it? Not sure if you do such things or not.Below is a video of the indicator that i want. If you click on the video, scroll to 6 minutes 50 seconds into the video and the guy will then describe and show it on the video, in his video he calls it TA Swings, 3 bars high and lows for ProRealTime. Its little triangles on the line.here is the video: http://strongforcetrading.com/module- 6/ If you copy paste into URL and then when page comes up, its the second video down, called Trend Analysis. Anyways, please let me know if you can help.Thank you very much,Mary02/28/2017 at 10:27 AM #26652It’s clear for me now. Please find below the code of the indicator.
12345678910pattern3barshigh = high<high[1] and high[1]>high[2] and high[2]>high[3] and high[3]>high[4]pattern3barslow = low>low[1] and low[1]<low[2] and low[2]<low[3] and low[3]<low[4]if pattern3barshigh thenDRAWARROWDOWN(barindex-1,high[1]) coloured(255,10,10)elsif pattern3barslow thenDRAWARROWUP(barindex-1,low[1]) coloured(10,255,10)endifRETURNI draw arrows up and down, but it may not be the best shapes to draw? If the signals are ok, just tell me if you want to change the arrows with text or any other symbols.
02/28/2017 at 9:33 PM #26745Hi Nicolas!
Thank you so much for the indicator and such fast response! I love the arrows, they are great! The only thing I have to ask is that I checked the indicator manually and it doesn’t seem to pic up all of the 3 bar highs and lows.
For example if you look at ticker KATE ticker, on Feb 17. 2017 the candle there was at $24.12 cents high, a higher high then the previous three bars followed by a candle on the 21st, that had a lower high so there should of been an arrow on the candle Feb 17th. Also, if you look at the candle on Feb 14 th, that candle made a higher high then the previous 3 candles followed by a lower high candle and so there should of been an arrow there as well. Same goes for Jan 26 candle, an arrow isn’t on that one ether. Feb 6th , candle made lower low then the previous 3 bars at $ 18.01 followed by a candle with higher low, but there was no arrow under it. I am wondering if there is a chance at all if you can look at the code to modify it so all the 3 bar highs and lows are reflected in the code? I would be so very much grateful!
Thank you so much for your help and response!
Mary
03/01/2017 at 8:51 AM #26759Sorry for misunderstanding, so if I’m now correctly awaken, the description of a 3 bar highs should be: 1 bar make a higher high then it’s followed with 3 bars that made 3 declining high or do I also need to look at the previous bar that made a high high (like I did in my first code? = because if the answer is yes to this question, the previous link I gave in this post should do this job already).
03/01/2017 at 10:08 PM #26852Hi Nicolas,
I think your first version is correct but for some reason the current code does not pick up all of the highs and lows, its skips some of them.
It should be like this: for high: the 4th bar should be higher then the previous 3 highs, so 1 bar, 2 bar, 3 bar, if the 4th bar is higher then the earlier 1, 2, 3 bar and the 5th bar is lower then the 4th bar, then there should be an arrow on the 4th bar. You have it set up that way but for some reason its not picking out all of these, just some of them, i looked at the indicator carefully on many tickers, its seems to be pick up half of these and leaves others out without the arrow.
As well for the lows: the 4th bar should make a lower low then the earlier 3 bars, so bar 1, bar 2, bar 3 bar. 4th is lower low then the earier 1, 2, 3 bars, 4th lower low followed by 5th higher low, so the 4th bar should have an arrow under it.
Sorry for this confusion. I took a snapshot of the ProRealTime screen with KATE ticker and it shows your indicator with green and red arrows and then I put on grey ellipses next to the candlesticks that the indicator didn’t put the arrows on. Please if you can, look at it, I am attaching the screenshot down below.
Thank you so much and sorry for my not explaining good.
Mary
03/02/2017 at 4:25 PM #26949Ok, I thought that all 3 first bars must have their high higher than the previous one, but you only need to have the high of the 4th bars higher than the last 3 highs only. The 5th bar High should be lower than the 4th one .. ouch!
Here is the modified code:
12345678910pattern3barshigh = high<high[1] and high[1]>high[2] and high[1]>high[3] and high[1]>high[4]pattern3barslow = low>low[1] and low[1]<low[2] and low[1]<low[3] and low[1]<low[4]if pattern3barshigh thenDRAWARROWDOWN(barindex-1,high[1]) coloured(255,10,10)elsif pattern3barslow thenDRAWARROWUP(barindex-1,low[1]) coloured(10,255,10)endifRETURN05/31/2020 at 8:46 PM #13398506/02/2020 at 10:06 AM #134167Here is the code for the screener: (not tested)
1234pattern3barshigh = high<high[1] and high[1]>high[2] and high[1]>high[3] and high[1]>high[4]pattern3barslow = low>low[1] and low[1]<low[2] and low[1]<low[3] and low[1]<low[4]screener[pattern3barshigh OR pattern3barslow]06/02/2020 at 12:07 PM #134191 -
AuthorPosts
Find exclusive trading pro-tools on