| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Alternating buy and sell signals in indicator-how to https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=1541 |
Page 1 of 1 |
| Author: | fxprotrader [ Mon Feb 25, 2013 12:43 pm ] |
| Post subject: | Alternating buy and sell signals in indicator-how to |
What I need to do is alternate the buy and sell signals. Even if there are multiple Buy signals before there is another Sell signal I need a way of not allowing another Sell signal until I have another Buy. In this screenshot there is a Buy signal at 11.13+ three more Buy signals before there is a Sell signal at 12.05. I need a way of not allowing the second, third and fourth Buy signal and only allow a Sell signal at 12.05 I'm not a newbie by any stretch. This one looked easy enough but I'm coming up empty. Code: Select all |
|
| Author: | NeoTrader [ Mon Feb 25, 2013 1:18 pm ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
Hi fxprotrader, I haven't looked in your code. But the easiest way to achieve this is to have a variable where you save the state of the last signal and compare this signal state with the current signal before you set it. If they are the same don't set the signal otherwise do it. Just a fast thought. happy trading, Robert - |
|
| Author: | fxdaytrader [ Mon Feb 25, 2013 1:23 pm ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
i think that works: |
|
| Author: | bourgenot [ Mon Feb 25, 2013 4:16 pm ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
hello, I'm looking your indicator with alert pop up if the ace ty thank you for the deposit here. I add this indicator factale with yours: http://fxcodebase.com/code/download/file.php?id=7371. thank you, Pierre |
|
| Author: | fxprotrader [ Wed Feb 27, 2013 4:16 am ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
Robert- Yes that's what I had originally tried but apparently I didn't get something quite right and it didn't work as expected. This being a small part of a bigger project I was hoping once I got the alternating of signals figured out the rest would fall into place but that is not how it's working out. Thanks. Yes it does. |
|
| Author: | lucklogic [ Wed Feb 27, 2013 11:34 am ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
Interesting indicator ...............so simple I wonder if you could you put an Alert on a new arrow formation Thanks in advance |
|
| Author: | fxdaytrader [ Wed Feb 27, 2013 11:49 am ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
should work so: |
|
| Author: | lucklogic [ Wed Feb 27, 2013 3:24 pm ] |
| Post subject: | Re: Alternating buy and sell signals in indicator-how to |
Hi, Thank you for this but unfortunately this fix does not work. Alert or sound occurs every tick on both Fractal UP and Fractal DOWN Ideally it would be nice to just get a single alert (rather than multiple) at every new bar Thanks |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|