TradingView
sirolf2009
Nov 8, 2015 11:00 AM

ANN Strategy v2 

Bitcoin / DollarBitfinex

Description

This is version 2 of my ANN strategy. This version will not repaint, but requires some settings configuration.
The reason why the old version repainted, is because it used the daily OHLC/4 which kept changing, causing lower timeframes ro repaint.
You can now specify which timeframes to use. The bigger timeframe is set in the settings (e.g. 1 day). You set the smaller settings by opening a certain chart (e.g. a 4h chart).
The timeframes are used to calculate the percentual difference, which is fed to the ANN as input

Link to version 1:
tradingview.com/script/bPT7VWjA-ANN-Strategy/
Comments
alessandro.fenati
Hi Sirolf, thank you for this wonderful strategy! Just a question: if I would like to use it with a 15min chart, should I just open a 15min chart and apply the v2 strategy, or should i apply some more settings? Thanks a lot. Alessandro
pcmourao
I was using the first version with SPX500, EURUSD, USOIL ... I was finding higher profitability rates on Version 1 than I am on 2 .... why is that? V2 Gives me under 40% profitability while version 1 gives me over 80% .... doesn't make sense to use V2 in this case, right?
Glenn_Guitarist
@pcmourao, because V1 is repainted its better backtesting while V2 is better for real time trading as repainting paints a rosy picture and is not accurate
rafaelcmrj
It is still repainting
LaughnCow
Hello,

How do I get this to send me an alert when it changes from green to red? thank you
harryexe
Hmm is it even fixed yet =/
mych36
I'm very curious where you came up with the idea for this? Seems like such a random equation, would you mind sharing your thought process while coming up with this?
mcbw_
@mych36, A formula of this shape is an Array of a Neural Network
sudhir.mehta
On smaller time frame of 10 min it gives error "Order limit of 2000 was reached" can you increase this order limit?
bkatvfeb
i got reply from support team, hope this will help.

Thank you for reaching out TradingView support.
You reported: we are premium user. We have a error during uploading strategy named as Vdub FX Sniper VX3/Strategy and other strategy also has same e...

“Order's limit (2000) was reached” means the number of limits in the strategy has reached the max level of 2000. This limitation is set for a better work of our servers. To plot a strategy starting from a fixed point rather than for the complete data history, please add a comparison time>timestamp(2017, 01, 01, 09, 30) to the order condition, where “time’ is the time of a current bar, “timestamp()” is a feature converting date and time to UNIX format. Please see the function description in Study Script Reference: tradingview.com/study-script-reference/

Please see an example of using Vdub FX Sniper VX3/Strategy, in which the strategy will be calculated starting from January 1st 2017. Lines 60-71 are changed:

//============ signal Generator ==================================//
Piriod=input('720')
ch1 = security(tickerid, Piriod, open)
ch2 = security(tickerid, Piriod, close)
longCondition = crossover(security(tickerid, Piriod, close),security(tickerid, Piriod, open))
if (longCondition and time>timestamp(2017, 01, 01, 09, 30))
strategy.entry("BUY", strategy.long)
shortCondition = crossunder(security(tickerid, Piriod, close),security(tickerid, Piriod, open))
if (shortCondition and time>timestamp(2017, 01, 01, 09, 30))
strategy.entry("SELL", strategy.short)

///////////////////////////////////////////////////////////////////////////////////////////

Best regards,

TradingView Support Team
TradingView - Network Where Active Traders Exchange Ideas to Maximize Profit
470 Olde Worthington Road, Suite 200, Westerville, OH 43082 USA
More