Hi guys,
Could you help in fixing this error.
The error is in ( input(title="Naked Forex - Kangaroo Tail & Big Shadow Indicator", overlay = true) i keep getting declaration without type.
you are not using input correctly, and you should declare them in the global space
try looking at the documentation https://www.mql5.com/en/docs
and this is how you code an input
input string title = "Naked Forex - Kangaroo Tail & Big Shadow Indicator";
regards

- www.mql5.com
- You need to learn the language. What you wrote is the equivalent to baby babble. Utter garbage.
-
int OnInit;
This declares a variable of type int whose name is OnInit. The real OnInit is a function. Look at the example on how you call a function.
Event Handling / OnInit - Reference on algorithmic/automated trading language for MetaTrader 5 -
input(title="Naked Forex - Kangaroo Tail & Big Shadow Indicator", overlay = true)
Input is a storage class keyword to a variable declaration, not a function. Paul already posted the correct syntax including the ending semicolon.
Language Basics / Variables / Input Variables - Reference on algorithmic/automated trading language for MetaTrader 5 -
rangePrev1=high[1] - low[1] rangePrev2=high[2] - low[2] range=high - low body=abs(close - open)
Read must read the manual. No termininating semicolons. Undefine arrays (high and low). No declarations of rangePrev1, rangePrev2, range, body, open or close. Baby babble. Utter garbage. Do not post code that won't even compile; stop wasting everyone's time. - MT4: Learn to code it.
MT5: Begin learning to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours. - or pay (Freelance) someone to code it.
Hiring to write script - General - MQL5 programming forum
- MT4: Learn to code it.
you are not using input correctly, and you should declare them in the global space
try looking at the documentation https://www.mql5.com/en/docs
and this is how you code an input
regards
There is no key word "def", "elif", or access arrays with a non-integer. You need to learn the language. What you wrote is the equivalent to baby babble. Utter garbage.
You didn't define a function, so you can't "return".

- 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 guys,
Could you help in fixing this error.
The error is in ( input(title="Naked Forex - Kangaroo Tail & Big Shadow Indicator", overlay = true) i keep getting declaration without type.