Page 1 of 2

Thrust Bar

PostPosted: Wed Jun 04, 2014 1:12 pm
by Alexander.Gettinger
Original LUA indicator: viewtopic.php?f=17&t=60137.

Thrust_Bar_MQL.PNG


Download:
Thrust_Bar.mq4
(1.68 KiB) Downloaded 1847 times

Re: Thrust Bar

PostPosted: Sat Oct 25, 2014 9:26 am
by PaulEamonn
Hi Alexander

Many thanks for putting up an MT4 version of the .Lua Thrust Bar indicator. Apologies for not having replied earlier but, for some reason, I didn't get notified that there had been a new post on the thread.

I've managed to get the indicator uploaded on to the chart which is good for me. However, can I be a pain and ask if it can to modified to sound an alarm and show a msgbx when the last tick makes the Open/Last Price spread equal to the ATR*Multiplier in real time?

If this can be done it would improve the indicator's usefulness loads as it would mean I don't need to keep on returning to the PC to check to see if there are any Thrust Bars.

Many thanks in advance.

Re: Thrust Bar

PostPosted: Thu Jan 19, 2017 12:29 pm
by PaulEamonn
Well, it's been a while since I posted the above request and, as I haven't had an answer, I thought I'd try again just in case it wasn't seen last time.

Adding an alert to this indicator would really help me if it can be done.

Thanks in advance.

Re: Thrust Bar

PostPosted: Fri Jan 20, 2017 4:45 am
by Apprentice
Your request is added to the development list, Under Id Number 3724
If someone is interested to do this task, please contact me.

Re: Thrust Bar

PostPosted: Fri Jan 20, 2017 11:25 am
by PaulEamonn
Thanks Apprentice.

Re: Thrust Bar

PostPosted: Sun Mar 12, 2017 1:46 pm
by Apprentice
Try it now.

Re: Thrust Bar

PostPosted: Wed Mar 15, 2017 12:56 pm
by PaulEamonn
Hi Apprentice - thanks for doing this. The problem is I can't seem to make any alarm sound. I've got the indie loaded onto my charts and, when a thrust bar is formed, the msgbx comes up, but there isn't any audible alarm and I can't see any way to set one up.

Can you help me with this please?

Re: Thrust Bar

PostPosted: Wed Mar 15, 2017 6:09 pm
by Mandelbrot
The sound should be automatic since the Alert is composed of both the Message Box and the Sound.

Can you check Tools->Events and see if the Alert sound is not disabled?

If even with that it still does not work then a PlaySound() can be added.

Note: The sound file must be located in terminal_directory\Sounds or its sub-directory. Only WAV files are played.

ScreenHunter_418 Mar. 15 15.09.jpg

Re: Thrust Bar

PostPosted: Thu Mar 16, 2017 5:02 am
by Apprentice
Your request is added to the development list, Under Id Number 3765
If someone is interested to do this task, please contact me.

Re: Thrust Bar

PostPosted: Thu Mar 16, 2017 7:58 am
by PaulEamonn
Mandelbrot - You got it in one!

With the old indie I could have the 'Enable' box unchecked in the Events tab and the alarm would still ring. Obviously, with the new system this isn't possible.

So the sound is now working. However, one unwelcome change that I've noticed is that the alarm only rings once when a thrust bar is recognized as having been formed. With the old method the alarm used to ring repeatedly each time a new tick came in right up until the close of the thrust bar. I know this sometimes produced a cacophony of sound, but it was impossible to miss whereas the single iteration of the alarm is.

Is it possible to have the alarm repeat with every new incoming tick like with the old method?