Trading Articles
Article Categories
Article Tools
Cycle progression?
Updated February 28, 2012
trending_up
1,250 views
thumb_up
1 thanks given
group
2 followers
forum
3 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
(login for full post details)
#1 (permalink )
Pitea, BD, Sweden
Experience: Beginner
Platform: Ninjatrader
Trading: ES
Posts: 34 since Nov 2011
Thanks: 1 given,
4
received
Is there anyone who can code this Metastock formula to Ninja Trader ?
Sum(If(C>Ref(C,-1),1,0),5)<Sum(If(C<Ref(C,-1),1,0),5)
Sum(If(C>Ref(C,-1),1,0),5)>Sum(If(C<Ref(C,-1),1,0),5)
Someone explained:
1. If(C>Ref(C,-1),1,0) - If current close is greater than previous close then 1 else zero.
2. Sum of 1 for last 5 periods (i.e. sum of either 1 or 0 from point 1 result)
3. If(C<Ref(C,-1),1,0) - If current close is less than previous close then 1 else zero
4. Sum of 3 for last 5 periods (i.e. sum of either 1 or 0 from point 3 result)
Then
check if 2 < 4 or 2 > 4
Thanks
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
Erfurt Germany
Experience: Master
Platform: rtMagic, NinjaTrader
Broker: AMP/CQG, IAB
Trading: ES, 6E, FDAX, FGBL
Posts: 338 since Aug 2011
Thanks: 54 given,
461
received
Leo123
Is there anyone who can code this Metastock formula to
Ninja Trader ?
Sum(If(C>Ref(C,-1),1,0),5)<Sum(If(C<Ref(C,-1),1,0),5)
Sum(If(C>Ref(C,-1),1,0),5)>Sum(If(C<Ref(C,-1),1,0),5)
Someone explained:
1. If(C>Ref(C,-1),1,0) - If current close is greater than previous close then 1 else zero.
2. Sum of 1 for last 5 periods (i.e. sum of either 1 or 0 from point 1 result)
3. If(C<Ref(C,-1),1,0) - If current close is less than previous close then 1 else zero
4. Sum of 3 for last 5 periods (i.e. sum of either 1 or 0 from point 3 result)
Then
check if 2 < 4 or 2 > 4
Thanks
QUICK&DIRTY... (only write as text, no 100% syntax checked )
variables:
DataSeries dsCmpLower;
DataSeries dsCmpHigher;
initialization:
dsCmpLower=new DataSeries(this);
dsCmpHigher=new DataSeries(this);
onbarupdate:
if(CurrentBar>0)
{
dsCmpLower.Set(Close[0]<Close[1] ? 1:0);
dsCmpHigher.Set(Close[0]>Close[1] ? 1:0);
}
else
{
dsCmpLower.Set(0);
dsCmpHigher.Set(0);
}
if(CurrentBar>5)
{
if(SUM(dsCmpLower,5)[0] > SUM(dsCmpHigher,5)[0])
{
// ...code...
}
}
The following user says Thank You to TimeTrade for this post:
(login for full post details)
#4 (permalink )
Pitea, BD, Sweden
Experience: Beginner
Platform: Ninjatrader
Trading: ES
Posts: 34 since Nov 2011
Thanks: 1 given,
4
received
TimeTrade
QUICK&DIRTY... (only write as text, no 100% syntax checked
)
variables:
DataSeries dsCmpLower;
DataSeries dsCmpHigher;
initialization:
dsCmpLower=new DataSeries(this);
dsCmpHigher=new DataSeries(this);
onbarupdate:
if(CurrentBar>0)
{
dsCmpLower.Set(Close[0]<Close[1] ? 1:0);
dsCmpHigher.Set(Close[0]>Close[1] ? 1:0);
}
else
{
dsCmpLower.Set(0);
dsCmpHigher.Set(0);
}
if(CurrentBar>5)
{
if(SUM(dsCmpLower,5)[0] > SUM(dsCmpHigher,5)[0])
{
// ...code...
}
}
Thanks you are fast!
But, there are some data errors...
Last Updated on February 28, 2012
Right now
Ongoing
Right now
March
Register to Attend
Elite only
Coming soon
April