Click here to Login





                                                   Regarding predictions using ANN

  0

0
GS
2012-11-14 07:52:36


Hi,

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.

Thanks,



QuantShare
2012-11-14 11:18:56

  0

"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.




GS
2012-11-14 11:32:48

  0

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.



QuantShare
2012-11-14 17:53:09

  0

The "predict" function always use the current symbol data even if it is trained using another symbol.


GS
2012-11-14 18:51:32

  0

I am sorry, it is not working, please see the following screener:

a = predict("", "FirstANN");
buy = a > close;
var1 = close > 10 and buy;
filter = var1;
AddColumn("buy",buy);
AddColumn("prediction",a);

The "partial" output of running this screener is the following:

Symbol close buy prediction
ADANIENT 224.8000 1.0000 325.5955
ADANIPORTS 128.9000 1.0000 325.7526
ADANIPOWER 48.1000 1.0000 325.7908
ALBK 142.2500 1.0000 325.2915
ALOKTEXT 11.8500 1.0000 332.7421
AMBUJACEM 210.3000 1.0000 325.4524
ANDHRABANK 105.3500 1.0000 325.7687

I trained the "FirstANN" using the close of RAYMOND, which was around "325"

I would appreciate if you could suggest the corrections to this screener.



QuantShare
2012-11-15 15:47:25

  0

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.



GS
2012-11-15 15:59:05

  0

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?



QuantShare
2012-11-15 18:04:57

  0

It is a QuantShare limitation


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Stock market prediction using traderbots
Market Volatility - Composite Indicator using Stocks Standard Dev...
Put-Call Ratio Index using Market Makers Trades
Trading rules using the VIX Index
Measure the value of the stock market using the Q-Ratio valuation...

How-to Lessons
How to draw an horizontal segment line using QS language
How to plot a stock using different periods in the same chart
How to calculate the average of a time series using the money man...
How to debug a trading system using the money management tool
How to get stocks for a particular index using the global script

Related Forum Threads
Regarding login to QS and using it offline
Backtesting: Using lookback money management feature
Regarding volatility-based Stop
How to Debug a Strategy using data variables values by day by Tic...
Dynamic Symbol Using CompareAssets()

Blog Posts
Forecast volatility using trading rules and neural networks
Creating Stock & Market Short Interest Ratios using Historical Sh...
Technical Analysis Using Multiple Timeframes
How to predict and trade the stock market using pivot points
Download Trading Data using the Pre-Script









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



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.