Welcome to the Traders Laboratory Forums.
Forex Trading Laboratory Discussion forum for Forex traders - all forex pairs

Reply
Old 11-01-2007, 11:06 AM   #505

walterw's Avatar

Join Date: Nov 2006
Location: Argentina
Posts: 2,228
Ignore this user

Thanks: 0
Thanked 199 Times in 127 Posts



Re: Playing with the VMAR`s open research

Unicorn : what are the ma`s increments to form the rainbow from 1rst yellow all the way to the magenta ... ? thanks Walter.
__________________
you must enjoy trading... otherwise you shouldnt trade...
walterw is offline  
Reply With Quote
Old 11-01-2007, 11:12 AM   #506

Sparrow's Avatar

Join Date: May 2007
Location: Vienna/Austria
Posts: 306
Ignore this user

Thanks: 86
Thanked 20 Times in 16 Posts



Re: Playing with the VMAR`s open research

Quote:
Originally Posted by unicorn »
Good day Sparrow;

in your code:

double adxMin = MIN( ADX( Low, ADXPeriod ), StochPeriod )[ 0 ];
double adxMax = MAX( ADX( High, ADXPeriod ), StochPeriod )[ 0 ];

are you certain that these lines of code compute

adxmin = LLV(adx, stoch_period) ;
Lowest value of adx in the last stoch_period bars ?
and
adxmax = HHV(adx, stoch_period) ;
Highest value of adx in the last stoch_period bars ?

adx in my implementation is computed on the close. (as is usually done).
Does the Ninja Trader have the HHV and LLV functions?

cheers.
Unicorn.
Hi Unicorn,

Thanks for reviewing my code, you're right I got confused with LLV and HHV.
NT hasn't got LLV or HHV, but ADX produces only 1 value per bar so it is not necessary. Otherwise can be done by MIN( Low, Period ), MAX( High, Period ).

Fortunately the glitch does not produce very different results.

Cheers and thanks
Attached Files
File Type: zip FantailVMA1_1.4.zip (8.8 KB, 93 views)
Sparrow is offline  
Reply With Quote
Old 11-01-2007, 11:20 AM   #507

unicorn's Avatar

Join Date: Apr 2007
Location: Athens
Posts: 165
Ignore this user

Thanks: 27
Thanked 1 Time in 1 Post



Thumbs down Re: Playing with the VMAR`s open research

Quote:
Originally Posted by walterw »
Now let me ask again inputs :

Unicorns _Cyan line _ Red line
Walter;

the values I have used are also depicted in my charts, in the following notation:

In vmar_1
cyan line is: signal vmar_1(ema_periods, adx_periods)
and
red line is: rainbow base vmar_1(ema_periods, adx_periods);

Note that in vmar_1 implementation, stoch_periods = adx_periods.

In vmar_2
cyan line is: signal vmar_2(ema_periods, adx_periods, stoch_periods);
and
red line is: rainbow base vmar_2(ema_periods, adx_periods, stoch_periods);

Usually I have used:

signal vmar_2(ema_periods=3 or 4, adx_periods=4 or 5 or even 8, stoch_periods = 4 or 5 or even 8, 10)
and
rainbow base vmar_2(ema_periods=5 or 6, adx_periods=4 or 5, or even 8 stoch_periods = 4 or 5 or even 8, 10)


Take care.
Unicorn.
unicorn is offline  
Reply With Quote
Old 11-01-2007, 11:29 AM   #508

Sparrow's Avatar

Join Date: May 2007
Location: Vienna/Austria
Posts: 306
Ignore this user

Thanks: 86
Thanked 20 Times in 16 Posts



Re: Playing with the VMAR`s open research

Thanks unicorn, mixed up the values because I compared your functions parameter's order to the values on the chart.
Looks much better now.
Sparrow is offline  
Reply With Quote
Old 11-01-2007, 11:30 AM   #509

walterw's Avatar

Join Date: Nov 2006
Location: Argentina
Posts: 2,228
Ignore this user

Thanks: 0
Thanked 199 Times in 127 Posts



Re: Playing with the VMAR`s open research

Quote:
Originally Posted by unicorn »
rainbow base vmar_2(ema_periods=5 or 6, adx_periods=4 or 5, or even 8 stoch_periods = 4 or 5 or even 8, 10)


Take care.
Unicorn.
Ok I see... now from that base line (red line) would the rainbow averages be 2 , 4 , 6 , 8 etc until 100 ? or what numbers exactly... thanks Walter.
__________________
you must enjoy trading... otherwise you shouldnt trade...
walterw is offline  
Reply With Quote
Old 11-01-2007, 11:41 AM   #510

unicorn's Avatar

Join Date: Apr 2007
Location: Athens
Posts: 165
Ignore this user

Thanks: 27
Thanked 1 Time in 1 Post



Thumbs down Re: Playing with the VMAR`s open research

Quote:
Originally Posted by Sparrow »
Hi Unicorn,

Thanks for reviewing my code.

Cheers and thanks
Sparrow;

In your code, I cannot locate where you compute the rainbow , i.e.


for (rainbow_ema_periods=2; rainbow_ema_periods <=100; rainbow_ema_periods=rainb ow_ema_periods +2)
{
rainbow_line = EMA( rainbow_base_Vidya , ema_periods) ;
plot(rainbow_line, .....);
}

please verify that this loop is correct in your code ( that may be the minor bug you mention)

best regards.
Unicorn.
unicorn is offline  
Reply With Quote
Old 11-01-2007, 11:49 AM   #511

Sparrow's Avatar

Join Date: May 2007
Location: Vienna/Austria
Posts: 306
Ignore this user

Thanks: 86
Thanked 20 Times in 16 Posts



Re: Playing with the VMAR`s open research

Hold your horses Unicorn, one thing at a time.

I like to have the FantailVMA1 just the way it is, so it can be reused in other indicators.

I'll try to get a rainbow like thing coded today, however I'll start with a band and probably will eventually arrive at the ultimate rainbow.

We'll see how things work out. Resources are limited.

P.S.: Unfortunately I can't take your approach, it's a bit more complex on NT

Last edited by Sparrow; 11-01-2007 at 11:56 AM.
Sparrow is offline  
Reply With Quote
Old 11-01-2007, 11:50 AM   #512

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 288 Times in 105 Posts



Re: Playing with the VMAR`s open research

Quote:
Originally Posted by walterw »
NT has already included Gain forex data... now, there is one parameter where I choose ninjatrader servers and get historical data (up too 2.5 years)... much better data also... really its a very friendly platform..

Take care Blu ¡¡ cheers Walter.
Thanks Walter, I've got it working now cheers


Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing the Initial Balance TinGull Market Profile 13 10-19-2011 10:48 AM
Walter`s First Forex Research (various ideas) walterw Forex Trading Laboratory 157 09-13-2011 05:14 AM
Playing the Opening Gap Soultrader Technical Analysis 19 05-23-2007 05:10 PM
Playing Inside Days Soultrader E-mini Futures Trading Laboratory 12 03-06-2007 05:10 PM
Research On Forums and Communities. Comments Please. RichardKen General Discussion 6 02-18-2007 08:48 PM

All times are GMT -4. The time now is 03:18 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.