stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Alert Help
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5501
Page 1 of 1
Author:  willmalou [ Wed Aug 01, 2018 9:11 pm ]
Post subject:  Alert Help

I have tried to put the alert in the following indicator. I am trying to get it to alert only when an arrow appears. Could someone point me in the correct direction on how to fix it so it only alerts once an only when the arrow appears.
Author:  SteveHopwood [ Thu Aug 02, 2018 10:47 pm ]
Post subject:  Alert Help

There are lots of people who could. Give them one reason why they should bother.

:xm: :rocket:
Author:  willmalou [ Mon Aug 06, 2018 7:12 pm ]
Post subject:  Alert Help

Just trying to learn to read/modify indicator code. EA's no problem, I can read and modify to hearts content. But have not been able to get my head around indicator code.
Author:  SteveHopwood [ Mon Aug 06, 2018 7:56 pm ]
Post subject:  Alert Help

willmalou » Mon Aug 06, 2018 7:12 pm wrote:Just trying to learn to read/modify indicator code. EA's no problem, I can read and modify to hearts content. But have not been able to get my head around indicator code.
I feel your pain. It is a good enough reason for me.

You busy, Rene?

:xm: :rocket:
Author:  renexxxx [ Tue Aug 07, 2018 7:05 am ]
Post subject:  Alert Help

I have made some changes to your code.

This point is this: for trading you are only interested to receive an alert if/when an arrow appears on the current candle or may be the most recently closed candle. That's the reason for the added condition before the call to DisplayAlert.

Hope this does what you want.
Author:  willmalou [ Tue Aug 07, 2018 7:57 pm ]
Post subject:  Alert Help

renexxxx » Aug 7th, '18, 03:05 wrote:
I have made some changes to your code.

This point is this: for trading you are only interested to receive an alert if/when an arrow appears on the current candle or may be the most recently closed candle. That's the reason for the added condition before the call to DisplayAlert.

Hope this does what you want.
Thank you both very much. I am going to have to study the code a bit to see why you put the alert where you did.
Author:  SteveHopwood [ Tue Aug 07, 2018 8:12 pm ]
Post subject:  Alert Help

willmalou » Tue Aug 07, 2018 7:57 pm wrote:
Thank you both very much. I am going to have to study the code a bit to see why you put the alert where you did.
Second best way to learn how to do this stuff.

The best way - to work it out for yourself - is not always possible. Sometimes the logic required can be too intractable for us code hackers to code. Rene has helped me out many times in the past; I think he does this stuff whilst still asleep. He probably only codes stuff whilst awake if it is really abstruse and so far beyond the ken of us mere mortals that we cannot even work out what questions to ask. To put it into perspective, we are a bit like an ant trying to work out the Taj Mahal.

Thanks again Rene. :clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
All times are UTC Page 1 of 1