Alert on Indicator
-
Hi all,
please i need your help, i wish to code an indicator that alert me with a popup window (and a sound too) when stockastic cross the level (20,80) and when do the same with macd and W% (with theyr own setting)It's possible?
Regards
Andrea -
If you want to code custom indicator... I really have very limited knowledge at indicators, I never tried to make one seriously. But it should be
As an EA, now I can see your attempts to make something. But you have disabled blocks under "on Tick" and also blocks in "on Init". I guess that there is no output at all. If you only have stuff in "on Init", then you have something like a Script. But I'm not sure that you should use "Indicator moves within limits". Why don't you try with simple "Condition" and probably "Once per bar" (https://fxdreema.com/demo/mt4-once-per-bar)
-
Ok, thank you for your reply, i will try and i will let you know!
-
Hi, i've coded 2 EA
1st it's possible to use like an indicator (because there is no buy/sell condition)
2nd is the same of above, but do the operation...in both there is an error... if you can see the code, it must alert when the candle close above the bollinger band for long, the opposite for the short.
The long condition seems to be ok, the short condition is wrong...
Can you help me?
Regards
Andrea -
I see left-price arrows above and below BB, it looks that it works on both sides. If you think that something is wrong, note that you are working with Candle ID = 0 (the current price), and in the backtest you only see finished candles. Also, if you are waiting for sounds in the Tester... sounds don't work when backtesting

-
__I see left-price arrows above and below BB, it looks that it works on both sides. If you think that something is wrong, note that you are working with Candle ID = 0 (the current price), and in the backtest you only see finished candles. Also, if you are waiting for sounds in the Tester... sounds don't work when backtesting :)[/quote:3qsztwxn]
Thank you for your reply.
My doubt was on the EA that make the buy/sell... (not for the sound on BT) as you can see in the image attached, where i put the arrows... they are worng sell entry... it's my fault? maybe i mistake something in the code...
-
....and i also wish to add a filter
i wish to filter the entry with williams%
Buy ---> buy only if the W% trigger from down to up the -90 level
Sell --> sell only if the W% trigger from up to down the -10 levelHow i can do add that variables?
Thank you
Andrea -
http://prntscr.com/czd5qf
If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.I don't know about Williams - either crossover or > / <. It depends

-
__http://prntscr.com/czd5qf
If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.I don't know about Williams - either crossover or > / <. It depends :)[/quote:3kq6sr8w]
Thank you
The spread was just a "try what happen"....but what about the signal?
as per image above...
The sell (signal/entry) is incorrectCan you Help me?
-
__http://prntscr.com/czd5qf
If this is the EA, don't do that with the Spread filter. 2 Spread filters are required here... or better place this one somewhere above.I don't know about Williams - either crossover or > / <. It depends :)[/quote:29yfqn1k]
Crossover.... so when the W% cross the level(s)
-
What was the condition?
Now I can't find the same project that you had 
-
i solved the wrong sell signal putting 2 "once per bar", one for buy condition, one for sell condition (scanner project)
now i wish to add the w% filter....the ea must enter only when the w% signal level is broken, so when the buy signal is active and (buy case here...) the W% break from down to up level -90 it enter on it.... the opposite for sell condition