
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
Based on what I understand from functions, switch statement and some other stuff, I have remove the global variable Err and the whole switch statement which related to it. Here is the updated code.
tapo
Доброго времени суток уважаемые форумчане!
Меня зовут Герман, мне 23 года, я являюсь трейдером компании "Инстафорекс"
Помогите в поиске нужного скрипта! Скрипт нужен для сетки отложенных ордеров.
Based on what I understand from functions, switch statement and some other stuff, I have remove the global variable Err and the whole switch statement which related to it. Here is the updated code.
tapo
Can someone tell me what is the difference between CCI_Per and CCI_close_Per?
Thanks,
Other then CCI being used in the MA variable I don't really understand why without looking into it a little deeper
1. NULL means the current symbol. Symbol() returns a text string with the name of the current financial instrument. These are essentially the same in the context of iCCI()
3, I read this as saying . . the avaeraging calculation within the CCI will use this many bars
4. just like a SMA can be applied to the Open values or Close values, the CCI can be applied to differnt bar values too . . i have no idea of the maths behind it but that is what is implied.
5. shift is the value for the bar number that you want the CCI value for . . . so for the current bar it would be 0, for a H1 bar 1 day ago it would be 24
Thanks Raptor.
3. and what is this average calculation within the CCI?
5. so, for example, if you want to code CCI crossing under 100, you could do
is that correct?
tapo
PS: WRT the math behind CCI, I don't know if you have seen this https://docs.mql4.com/constants/prices. This is what I meant by #4.
I don't use technical Indicators . . . I had no idea what CCI was until I just looked it up . . .
3. there is a MA calculation as part of the CCI calculation http://tradingsim.com/blog/commodity-channel-index/
5. for the CCI to cross something there has to be something else for it to cross . . . your code says if the CCI is currently below 100 and was above 100 for the last bar
re: 4. there is a MA in the CCI calculation and that MA can use various candle values OHLC, media, typical or weighted close
5. yes. That's what I meat my code to say. CCI to crosses below something (like 100) means it gets below it after it was above it at the immediate previous bar. Are we talking about the same thing?