I want to design a custom indicator which prints two lines, one which trails below price in an uptrend and another which trails above price in an downtrend. The closest thing I have seen to this is like an ATR Stop indicator as pictured below. Is it
"The function returns the amount of bars not changed after the indicator had been launched last." What constitutes a 'change'? Can the fact of the bar closing be considered a 'change' - the bar was open, now it is closed... the bar was index 0, the
This code is taken directly from the manual/tutorial in the Custom Indicators section - https://book.mql4.com/samples/icustom I cannot seem to understand how it is that 'IndicatorCounted' (Counted_bars) can equal anything other than
I have somehow managed to shrink the toolbar to just the left side of the page... how do I correct this so that the toolbar fills all the way across the terminal landscape wise
'New_Experts' obtains its value from 'Quantity', which obtains its value from 'Experts'... So how can 'New_Experts' and 'Experts' ever have a different value, therefore allowing the condition ' if (Experts!=New_Experts) ' to return true
Hi everyone. I am reading through the MQL4 manual step by step just trying to make sure I understand each section as much as possible before moving on. I have some code here taken directly from page (https://book.mql4.com/operators/break) of
I am going step by step through the manual and have become a bit confused at this page - https://book.mql4.com/operators/continue. My question should be pretty simple for anyone who understands these loops and where control should/shouldn't be
I am a complete beginner, just trying to make sure I understand each section of the manual before progressing to the next. My understanding of the & operator is as follows: & compares the binary digits of two integers and returns a new