I have trained an ANN model using eod data of NIFTY index, now I want to use this model to predict the close of next week (Friday) for the nifty 50 stocks. How do I do this?
I was trying to use the following :
a = predict("", "FirstANN");
but it is always showing predicted value of NIFTY. I could see a function PredictSymbol, could you please explain how to use it?
Also, do let me know if I can use ANN for both long and short trades using QS 2.8.5. I believe it should be, please correct me if I am wrong.
"PredictSymbol" returns whether the model data was trained using the specified symbol.
"Predict" returns the prediction value based on model inputs. If you trained your model using RSI and SMA data of Nifty then when executed on another symbol, it will return the prediction based on the RSI and SMA of the other symbol.
Yes, you can use ANN in long and short strategies.
I understand what "predict" is returning, but I want to know how I can use the model I trained using NIFTY data on other symbols? I mean the symbols which were not used at the time of training the ANN model.
Basically I want to have a screener, having 155 symbols and use this ANN model to filter symbols for buy and sell. I also want to do the back testing using the same model.
Of course, if you train the model using RAYMOND data then applying it on other stocks will get you wrong results.
You will have to create a model for each stock or one single model that is trained on all stocks data.
OK, got it, and this is what I understood earlier, but your previous statement confused me. Any way, now it is clear to me. Thanks a lot.
Looks like we can max use 10 symbols to train the model, is it technical limitation (meaning no universal model can be created using ANN) or it is the limitation of QS?
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.