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
Examples of how to use GetNearestDownFractal().
SZY. Attached is a script to test the GetNearestUpFractal() function.
CorrectTF() function.
I wrote this function after discovering that sometimes I can easily specify an incorrect timeframe, which is equal to a whole number of minutes, in the input parameters of an indicator or an EA. For example, I entered 50 for hourly instead of 60. Well... kind of missed. It turns out that iRSI() function returns zero for an incorrect timeframe. I cannot say anything about other functions, because I did not check them. To avoid misunderstandings resulting from my own inattentive mistakes, I wrote this function as a primitive foolproof one. It adjusts the input parameter to the "nearest" appropriate and correct timeframe and returns its value.
SZY. Attached is a script for testing the CorrectTF() function.The DateBeginQuarter() function.
This function returns the start date of the quarter by its number. For example, if it is now 27.08.2008, the start date of the current quarter will be 01.07.2008. The function takes only one parameter - the quarter number relative to the current quarter. For example, 0 is the current quarter, 1 is the next quarter and -1 is the previous quarter. That is, positive quarter numbers will request dates from the future, while zero and negative will request dates from the past. The value returned is the number of seconds elapsed since 00:00 1 January 1970.
P.S. Attached is a script to test the DateBeginQuarter() function.
The DateOfMonday() function.
This function returns the start date of the week (the date of Monday) by its number. For example, if it is now 29.08.2008, the date of the beginning of the current week will be 25.08.2008. The function takes only one parameter - the number of week relative to the current week. For example, 0 is the current week, 1 is the next week and -1 is the previous week. That is, positive week numbers will request dates from the future, while zero and negative numbers will request dates from the past. The value returned is the number of seconds elapsed since 00:00 1 January 1970.
P.S. Attached is a script to test the DateOfMonday() function.
The Fibonacci() function.
This function returns an element of a Fibonacci series by its sequence number.
P.S. Attached is a script to test Fibonacci().
GetNameMA() function.
This function returns the MA method name (Moving Averages) by its identifier. This function is convenient to use in comments, indicators and Expert Advisors messages.
GetNameMA() function.
This function returns the MA method name (Moving Averages) by its identifier. This function is useful in comments, indicators and Expert Advisors.
Don't think of it as a nitpicking ....
Don't think of it as picking on....
by all means... thank you! Corrected!
Good afternoon !
Help me get the expo across just a little bit.
I can't believe he's opening orders and not closing this stack on condition.
I.e. if a deal is just one, it will get out of the pose and if there are 2 deals, it shuts down.
GetPriceDiffInPoint() function.
This function returns the price difference between two bars, which are specified by their numbers. The purpose of developing this function was to determine the value and direction of the price movement. The GetPriceDiffInPoint() function determines the reference points (Open or High or Low or Close) of the bars to take into account. The function accepts the following optional parameters:
Returned value: