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
A vector for your reflections:
Where eTime1, ePrice1 are the coordinates of the start and eTime2, ePrice2 are the end of your trendlineHi all, can you tell me a piece of code (MQL4) that fixes the CCI indicator crossing its trend line (drawn manually).
I can't get its values (trendline) in CCI values. If it is time consuming, I am willing to pay.
I am ready to pay. Regards, Kuznetsov Andrey.
Thank you for your attention to my problem, dear 59. First of all, the trend line is not being drawn manually in the window of the CCI indicator on the tops (troughs) of the CCI indicator.
Secondly, it's not a problem to create it in the indicator window, but what function or command you use to get its value not in a price expression (ObjectGetValueByShift), but in the CCI values?
Well this CCI is a derivative indicator of the moving average. Take apart its code and bring everything to a common denominator, either to price or to index.
Use whatever you want instead of price.
I manually draw the trend line of the CCI indicator itself. How do I know when the CCI crosses this line ?
Does your Thought Vector solve this problem?
Do you have a CCI indicator that you want to complete?
If so, you should write a function inside the indicator that finds the manually set trendline and gets the coordinates of the start and end point.
You then substitute these coordinates into the function I dropped, and get the value of the trendline at the current time inCCI units.
Then you compare it to the currentCCI value.
Do you have a CCI indicator that you want to complete?
If so, you should write a function inside the indicator that finds the manually set trendline and gets the coordinates of the start and end point.
You then substitute these coordinates into the function I dropped, and get the value of the trendline at the current time inCCI units.
Then you compare it to the currentCCI value.
I can only help a little, absolutely free.
There are two functions at the bottom of the indicator. In the comments it displays the value of the indicator itself and the value of the current point on the last trend line.
Figure it out.