Is that really "your" code ?
It's not even an indicator, it's an EA.
dysong3:
As Alain Verleyen said "your codes" designed to trade (buy or sell) it is not INDICATOR.
And if you want to code it as Auto Trading Application (shortly EA) please check the following link by Vladimir Karputov :
![An attempt at developing an EA constructor An attempt at developing an EA constructor](https://c.mql5.com/36/62/an-attempt-at-developing-an-ea.jpg)
An attempt at developing an EA constructor
- www.mql5.com
In this article, I offer my set of trading functions in the form of a ready-made EA. This method allows getting multiple trading strategies by simply adding indicators and changing inputs.
if(!NormalizePrice(s1))
- Do not post code that will not even compile.
-
Perhaps you should read the manual. NormalizeDouble - Conversion Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
How To Ask Questions The Smart Way. (2004)
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.NormalizeDouble does not return a boolean.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am a newbie to MT5. I have a couple of Indicators that I am trying to create and for which I receive just 2 errors when i try to compile them. Would someone be kind enough to point out to me what I am not getting.