- APourfarzaneh: where I can find error log when an indicator draws nothing???Unless there is an error, you won't find anything in the log. If it is coded wrong, coded to not draw, that is not an error.
- Always use strict. Fixing the warnings will save you hours of debugging.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference - Drop your new bar code. Inappropriate for indicators.
extern int tot_bars = 2000; : Counted_bars = tot_bars; // Number of counted bars for (i=Counted_bars; i>0; i--){ Price_Val[i] =
Unless you have more than 2K bars in history, you get array exceeded. You would know that if you had used strict.-
Start using the new Event Handling Functions.
Event Handling Functions - Functions - Language Basics- MQL4 Reference
How to do your lookbacks correctly.
whroeder1:
- Unless there is an error, you won't find anything in the log. If it is coded wrong, coded to not draw, that is not an error.
- Always use strict. Fixing the warnings will save you hours of debugging.
Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference - Drop your new bar code. Inappropriate for indicators.
- Unless you have more than 2K bars in history, you get array exceeded. You would know that if you had used strict.
- Start using the new Event Handling Functions.
Event Handling Functions - Functions - Language Basics- MQL4 Reference
How to do your lookbacks correctly.
Thank you so much.
I used strict Preprocessor and managed to find and fix some warnings and eventually get two lines (though without any Event Handling Function). 'will try to work on that.
APourfarzaneh:
Thank you so much.
I used strict Preprocessor and managed to find and fix some warnings and eventually get two lines (though without any Event Handling Function). 'will try to work on that.
Line 124 - RSI_N = ... - shouldn't it be RSI_N1 = ...?
![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
Hello everyone!
I have developed an indicator to draw RSI sensitivity (for the sake experiment). What I want it to draw, is two lines which gives RSI sensitivity each for a bearish and bullish candle. But it draws nothing. Can anyone help me to find where I took the wrong turn? The code is attached.
Also, is there anyone to tell me where I can find error log when an indicator draws nothing???