Alert Help
-
willmalou
- Trader
- Posts: 30
- Joined: Thu Dec 08, 2011 3:10 pm
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.
You do not have the required permissions to view the files attached to this post.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Alert Help
There are lots of people who could. Give them one reason why they should bother.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
-
willmalou
- Trader
- Posts: 30
- Joined: Thu Dec 08, 2011 3:10 pm
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.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Alert Help
I feel your pain. It is a good enough reason for me.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.
You busy, Rene?
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
Alert Help
I have made some changes to your code.SteveHopwood » Tue Aug 07, 2018 5:56 am wrote: You busy, Rene?
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.
You do not have the required permissions to view the files attached to this post.
-
willmalou
- Trader
- Posts: 30
- Joined: Thu Dec 08, 2011 3:10 pm
Alert Help
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.renexxxx » Aug 7th, '18, 03:05 wrote:I have made some changes to your code.SteveHopwood » Tue Aug 07, 2018 5:56 am wrote: You busy, Rene?
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.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
Alert Help
Second best way to learn how to do this stuff.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.
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.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.