Tradecision Talks
May 23, 2013, 10:57:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help with Nerual Strategy  (Read 2248 times)
Trader JW
Jr. Member
**
Posts: 5


« on: April 28, 2010, 09:58:10 AM »

I'm working on different Neural Strategies, and I need some assistance.

How can I enter a CrossOver Period as an input? I've tried, but I
get an error saying the value must be numeric. When I read about
the CrossOver Command, the output is true or false, I tried doing an
if statement to make the value a one or zero, but that didn't seem
to work either.

I'd like the neural network to take into account a crossover period.
For example, the 30-day ema moving across or below the 60-day ema.

Thanks...James
Logged
Tradecision Support Team
Hero Member
*****
Posts: 336


« Reply #1 on: April 29, 2010, 06:49:14 AM »

Dear James,

This happens because input can be set only as a numeric value, so you need to use the IFF function. In this case, when crossover action takes place, this input will return 1 or 0 otherwise.
The code should look like as follows: return iff(CrossAbove( EMA(C,30) , EMA(C,60)),1,0);

Sincerely,
Tradecision Support Team


I'm working on different Neural Strategies, and I need some assistance.

How can I enter a CrossOver Period as an input? I've tried, but I
get an error saying the value must be numeric. When I read about
the CrossOver Command, the output is true or false, I tried doing an
if statement to make the value a one or zero, but that didn't seem
to work either.

I'd like the neural network to take into account a crossover period.
For example, the 30-day ema moving across or below the 60-day ema.

Thanks...James
Logged
Trader JW
Jr. Member
**
Posts: 5


« Reply #2 on: May 03, 2010, 11:02:47 AM »

Thanks that worked great.

I have another question. If I'm using EMA's, Bollinger Bands, and other technical indicators. Are the inputs to the formula's using the bar data?  So for example, if I have an ADX(Cool, and I'm using hourly data, that would be an ADX using 8 bars of hourly data or 8 hours. Is that correct?

Another example: EMA(C,4) on hourly data would be the average of 4 hours.

Thanks...James
Logged
Tradecision Support Team
Hero Member
*****
Posts: 336


« Reply #3 on: May 06, 2010, 03:52:41 AM »

Dear James,

Yes, you are absolutely right. The number inside the brackets means the number of bars for indicator calculation.

Sincerely,
Tradecision Support Team


Thanks that worked great.

I have another question. If I'm using EMA's, Bollinger Bands, and other technical indicators. Are the inputs to the formula's using the bar data?  So for example, if I have an ADX(Cool, and I'm using hourly data, that would be an ADX using 8 bars of hourly data or 8 hours. Is that correct?

Another example: EMA(C,4) on hourly data would be the average of 4 hours.

Thanks...James
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!