https://docs.mql4.com/customind/IndicatorCounted
afaik indicator functions don't work in EAs.
EDIT:
confirmed:
https://docs.mql4.com/customind
"A group of functions used at producing of custom indicators.
These functions cannot be used in experts and scripts."
can someone help me edit sar ohlc to use heiken ashi ohlc
Hi, I have an MTF indicator that uses sar, however I'd like the sar to calculate heiken ashi ohlc, and not the normal type
Can you tell me how I can do this, my mtf indicator calls to the sar indicator to calculate sar formula, I think it is calling to the internal indicator in mt4 that can not edit
you can skype or email if you can assist and like to talk about it
skype sty671
email sty671@gmail.com
I can also supply the original file that I'm trying to use heiken ashi ohlc for
IndicatorCounted counted_bars = ();
This won't even compile.
IndicatorCounted can't be used in an EA.
Get your code to compile, THEN post All of it with your question.
do you use the Bars value
like
if(newbar!=Bars) { do your code newbar=Bars; }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi, I run my system when the bar changed every 5 minutes but the EA is run with each ticket purchase / sale and not every 5 minutes.
IndicatorCounted use (), but it is always -1.
counted_bars = 0;
IndicatorCounted counted_bars = ();
//---- check for possible errors
if (counted_bars <0) return (-1);
/ / ... Other code ...
//---- Run ...
if (rsi_ayer> = 20)
if (sts_hoy> = 20)
run_tickets_buy ();
I hope you can help me because I could not try my system.
Thanks