Help with code for this swing trade setup
Forums › ProRealTime English forum › ProScreener support › Help with code for this swing trade setup
- This topic has 13 replies, 4 voices, and was last updated 7 years ago by Nicolas.
-
-
11/27/2016 at 12:52 PM #17303
Hello all,
I am new to Prorealtime coding, I would like to ask if you can help me code the setup in the attached picture. Basically, there are 3 steps in this
- Locate 3-3 Pivot High Day (Point A in the picture)
- Count 5 or more consecutive closes below a 5-day simple moving average
- Signal if closing price of any following day break above the 5 period SMA
Appreciate you reading this post and help respond to this thread.
Thank you
HH
11/28/2016 at 10:31 AM #1734811/28/2016 at 2:37 PM #1736911/28/2016 at 3:23 PM #17374Ok that’s fine, I coded the indicator, you’ll find it attached to this email. I haven’t read the entire website description you give me, but it seems already effective, but I believe it should be tested in a already formed bullish trend to give better rebound (IMO).
If you are ok with the signals given, I’ll post the stock screener code too.
[edit] have change the code a bit : no signals if the actual close is superior to the pivot, no signals if a signal has already fired with the same pivot point.
11/29/2016 at 12:30 PM #17468Nicolas, thanks for your great code (quite a nice math algorithm behind that code too) . I would like to ask if you can add the following
- Create Indicator for short strategy and flag signals only when the current leg is around Fibonacci levels such as 0.5, 0.618, 0.76, 1.27, 1.41, 1.68, etc and other conditions in the setting are met.
- Modify indicator for long strategy with fag signal similar to the short setup
- Last but not least, please make the above as screener too.
Millions thanks
CEO76
11/29/2016 at 12:40 PM #1747011/29/2016 at 1:18 PM #17473Nicolas, Last highest and lowest Pivot point should be reasonable to calculate the Fib extension or entrancement.
I am also wondering if RSI can be used to determine highest and lowest point for Fib calculation for example lowest RSI would represent Lowest point, and Highest point will be the highest RSI. What do you think?
Please help with the indicators and screener if you can.
Thanks
CEO76
11/29/2016 at 1:30 PM #17475For a long setup (like in the already made indicator), there is no low pivot points, only highest one, accordingly to your original description.
Code is strict and I definitely need what price levels to use for 0 and 100% Fibonacci levels. We already have the last high pivot point (100%), now we need to define what is the 0% .. that’s why I told you about the lowest price met. About RSI, I don’t think that is a good choice 🙂 , we should focus on price here, not about indicator derived from it.
11/29/2016 at 1:40 PM #1747611/29/2016 at 2:39 PM #1748311/29/2016 at 2:42 PM #1748405/06/2017 at 4:26 PM #34716was the final code uploaded ??
05/07/2017 at 12:09 AM #34731I agree user10 736 … this looks interesting, I must have missed it first time round.
I’ll run the code above (Nicolas kindly provided) in the morning.
05/07/2017 at 8:25 AM #34747 -
AuthorPosts
Find exclusive trading pro-tools on