With the code below, sometimes on some special values for 'mySymbol ' which the operator inserts, it took a long time for indicator to respond and then it returned a very huge (more than 20 digits) value for RSI which is expected to be in 0~100 range.
Therefore, as you can see, I added if(myRSIDefinition !=-1) and if(CopyBufferResult!=-1) checks to prevent showing a wrong result.
However, it still takes a long time for the evaluation of myRSIDefinition and CopyBufferResult themselves. I want to know what is the cause in the first place and how I can prevent it. Would you please count me some common causes?
Note: These are common errors for me:
ERR_MARKET_UNKNOWN_SYMBOL | 4301 | Unknown symbol |
ERR_MARKET_NOT_SELECTED | 4302 | Symbol is not selected in MarketWatch |
However, sometimes the symbol seems OK ( just after a while, my code works well).
check the input for the mySymbol - show what is inputted.
its likely that the handle you get from RSI is an Invalid one, because of wrong Symbol input, and from that everything else falls
check the input for the mySymbol - show what is inputted.
its likely that the handle you get from RSI is an Invalid one, because of wrong Symbol input, and from that everything else falls
It works well with every symbol. But sometimes in a trading day, it does not provide any desired output. I am now sure that the problem is not the symbol itself but some market issues like openness and ability to trade etc.
How can I check these market parameters?- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
With the code below, sometimes on some special values for 'mySymbol ' which the operator inserts, it took a long time for indicator to respond and then it returned a very huge (more than 20 digits) value for RSI which is expected to be in 0~100 range.
Therefore, as you can see, I added if(myRSIDefinition !=-1) and if(CopyBufferResult!=-1) checks to prevent showing a wrong result.
However, it still takes a long time for the evaluation of myRSIDefinition and CopyBufferResult themselves. I want to know what is the cause in the first place and how I can prevent it. Would you please count me some common causes?
Note: These are common errors for me:
ERR_MARKET_UNKNOWN_SYMBOL
4301
Unknown symbol
ERR_MARKET_NOT_SELECTED
4302
Symbol is not selected in MarketWatch
However, sometimes the symbol seems OK ( just after a while, my code works well).