| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Support/Resistance Indicator https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=514 |
Page 7 of 23 |
| Author: | lucklogic [ Thu Apr 25, 2013 10:17 am ] |
| Post subject: | Re: Support/Resistance Indicator |
Hi, Great indicator and thank you for sharing Do you have any code or know of others code that can be used with an EA to correctly report the nearest S&R zones to the current price action and there attributes What I'd like to be able to do is have the EA examine the price level of the nearest resistance bottom and the price level of the nearest support top, as well as being able to read the current strengths of the S&R zones. I have code that does this, within a S&R zone, when price action crosses into the zone Many thanks in anticipation of your help |
|
| Author: | mobthehop [ Thu Apr 25, 2013 12:04 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
lucklogic, not sure but this should put you in the right direction..... http://www.stevehopwoodforex.com/phpBB3 ... 159#p56159 Have put the code snippet into mq4 for myself to keep in my archive - see attached Hope this helps |
|
| Author: | lucklogic [ Thu Apr 25, 2013 2:07 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
Looks like it is along the right lines, certainly THANK YOU v.much that's appreciated However that code is for incorporating the whole of the indicator into an EA and that's not what I'm after Here is the code to recognise when price action crossed into a zone Code: Select all Or it probably can it be done using Baluda code that incorporates the indicator in an EA but that is beyond my pay grade to understand Can anybody do this via either method and share the code, pretty please. |
|
| Author: | dudest [ Thu Apr 25, 2013 3:41 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
How's this? Code: Select all Cheers |
|
| Author: | lucklogic [ Thu Apr 25, 2013 7:39 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
Thanks for that, but this is only showing when a zone is being entered, in the same way as the code that I provided. It does not show how far the price action is away from the nearest Support Bottom and Resistance top, the values that I'm interested in. But thanks again |
|
| Author: | slipshod [ Mon Apr 29, 2013 10:20 am ] |
| Post subject: | Re: Support/Resistance Indicator |
Ok, I've packaged the core functionality of the indicator into a library, which is now downloadable from the first post in the thread. No more need for iCustom() or global variables to access S/R zone info. Instructions for how to install and use the library are included in the zip. |
|
| Author: | dietcoke [ Mon Apr 29, 2013 12:04 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
That's fantastic. |
|
| Author: | lucklogic [ Mon Apr 29, 2013 12:13 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
Thank you v.much for your continuing efforts and for sharing |
|
| Author: | slipshod [ Mon Apr 29, 2013 1:29 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
You're most welcome, I do hope its useful. Of course if anyone comes across any errors/bugs or has suggestions for additional functions in the API, please don't hesitate to post them here or PM me. |
|
| Author: | lucklogic [ Mon Apr 29, 2013 2:50 pm ] |
| Post subject: | Re: Support/Resistance Indicator |
Hi, Sorry to appear a bit thick but i dont understand the instructions! 1) what does this call mean - example pls In your EA's init() function, add a call to SSSR_Settings() with your preferred values for how the library should calculate S/R levels. These should be the same as your settings for the SS_SupportResistance_vX indicator. 2) Example pls of this call : Where required in your EA, call SSSR_FindZone() with the following arguments:- direction - must be either SSSR_UP or SSSR_DN. If SSSR_UP it looks for the nearest resistance zone, SSSR_DN it'll look for a support zone. 3) Pls provide an example of how to determine the price action difference from the nearest support would be most appreciated. ie how many pips is the the price above the support top ??? Thanks in anticipation of you assistance |
|
| All times are UTC | Page 7 of 23 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|