NexusFi: Find Your Edge


Home Menu

 





[Indicator] Help Implementing Neural Network Indicator


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one rmdavido with 8 posts (0 thanks)
    2. looks_two chik with 6 posts (12 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (1 thanks)
    1. trending_up 5,033 views
    2. thumb_up 13 thanks given
    3. group 1 followers
    1. forum 15 posts
    2. attach_file 0 attachments




 
Search this Thread

[Indicator] Help Implementing Neural Network Indicator

  #11 (permalink)
 chik 
San Diego, California
 
Experience: Advanced
Platform: MultiCharts
Trading: ES, NQ
Posts: 26 since Mar 2016
Thanks Given: 0
Thanks Received: 22

I think that's because the end-of-day bar of your 240-minute chart isn't 2:40 AM as you've written.

On my chart, in my local timezone, ES closes at 1:15 PM, so I enter 1315 for TradingViewStyleEODBarTime in the Inputs tab of Format Study:


Then I change ANN to histogram in the Style tab of Format Study:


Resulting in:

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Quant vue
Trading Reviews and Vendors
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #12 (permalink)
 rmdavido 
Jackson, MS USA
 
Experience: Advanced
Platform: ThinkOrSwim
Trading: Options
Posts: 12 since Feb 2014
Thanks Given: 7
Thanks Received: 0

That seems to be working much better. However, there are times that there are multiple buy/sell orders in a very short time span despite the indicator not being "noisy". I have attached the accompanying pic and code.



 
Code
If ANN > Thresh_Long then

Buy vest contracts next bar on open;

If ANN < Thresh_Short then

SellShort vest contracts next bar on open;
Vest is an input for number of contracts.

Started this thread Reply With Quote
  #13 (permalink)
 chik 
San Diego, California
 
Experience: Advanced
Platform: MultiCharts
Trading: ES, NQ
Posts: 26 since Mar 2016
Thanks Given: 0
Thanks Received: 22


That's because before the first end-of-day recording, ANN has a value of 0, which is greater than -0.001 and less than 0.001. Use "crosses" instead:

 
Code
If ANN crosses above Thresh_Long then

Buy vest contracts next bar on open;

If ANN crosses below Thresh_Short then

SellShort vest contracts next bar on open;

Reply With Quote
Thanked by:
  #14 (permalink)
 rmdavido 
Jackson, MS USA
 
Experience: Advanced
Platform: ThinkOrSwim
Trading: Options
Posts: 12 since Feb 2014
Thanks Given: 7
Thanks Received: 0

The calculation for the indicator also does not seem to match what tradingview shows. Limitation of using "Tanh" with tradestation?




Started this thread Reply With Quote
  #15 (permalink)
 chik 
San Diego, California
 
Experience: Advanced
Platform: MultiCharts
Trading: ES, NQ
Posts: 26 since Mar 2016
Thanks Given: 0
Thanks Received: 22

The Tanh stuff has no effect on the buy and sell signals generated by the indicator. It's only there to make it look more complex than it really is, to obfuscate what is actually happening. That is why I removed it multiple times from the code I posted back to you, hoping you'd realize. As I mentioned earlier in this thread:


Quoting 
That indicator/strategy on TradingView is among a number that are infamous for altering their past buy and sell signals based off new information (i.e. repainting).


Quoting 
I want to reemphasize that the strategy on TradingView is impossible to replicate without a time machine. It's datasnooping. It's trading today's open off of today's close, despite the close occurring hours after the open.

It's a joke indicator. It trades today, yesterday.

If you leave it open during the day on TradingView, you'll see it send multiple buy and sell signals as price moves above and below yesterday's close. At the end of the day, if you refresh the page, all those signals will disappear.

Reply With Quote
Thanked by:
  #16 (permalink)
 rmdavido 
Jackson, MS USA
 
Experience: Advanced
Platform: ThinkOrSwim
Trading: Options
Posts: 12 since Feb 2014
Thanks Given: 7
Thanks Received: 0

I see. Is there any way to create a neural network using Crude Data for better predictive capability? Are there any tools (free) to use historical data to create output layers?


Sent from my iPhone using futures.io

Started this thread Reply With Quote




Last Updated on December 31, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts