Seasonality Indicator - MultiCharts | futures io social day trading
futures io futures trading


Seasonality Indicator
Updated: Views / Replies:651 / 4
Created: by CharlieTrader Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Seasonality Indicator

  #1 (permalink)
Elite Member
London
 
Futures Experience: Advanced
Platform: MultiCharts
Favorite Futures: Global Futures
 
Posts: 6 since Apr 2016
Thanks: 2 given, 0 received

Seasonality Indicator

Hello guys,

i am struggling to make this seasonality indicator from TradeStation work in MC. The code is a step beyond my average at best coding abilities.

I am getting an error message which is pointing towards the "SData(Null)" in the second line of the code. Any help would be great fully received. The indicator basically looks at the last 5 years of historical data on a weekly basis and plots the expected seasonal trend over the coming weeks and months.



Inputs: YearsToConsider(5);
vars: elsystem.collections.Vector SData(null), int Elements(0), int X(0),
OKToStart(FALSE), int CurYear(0), int CurPeriod(0), int YearCount(0),
double TempVal(0), double TempPerf(0), FirstYear(0), CumPerf(0);

method void AnalysisTechnique_Initialized( elsystem.Object sender, elsystem.InitializedEventArgs args )
begin
SData = New elsystem.collections.Vector ;
If Bartype = 3 then Elements = 52;
If Bartype = 4 then Elements = 12;

For X = 1 to Elements begin
SData.insert(0,0.0);
end;
FirstYear = year(currentdate) - (YearsToConsider);
end;

CurYear = year(date);
If CurYear >= FirstYear AND Bartype >= 3 AND LastBarOnChart = FALSE then begin

If CurYear <> CurYear[1] then begin
OKToStart = True;
CurPeriod = 0;
YearCount += 1;
CumPerf = 0;
end;

If OKToStart = True then begin
If Elements = 52 and CurPeriod > 51 then CurPeriod = 51;

TempVal = SData[CurPeriod] astype double;
TempPerf = (Close - Close[1]) / Close[1];
SData[CurPeriod] = TempVal + TempPerf;

If YearCount = YearsToConsider then begin
CumPerf = CumPerf + SData[CurPeriod] astype double / (YearCount - 1);
Plot1[-Elements](CumPerf, "Seasonal");
end;
end;

If Year(Date) <> Year(date[1]) then begin
Value1 = TL_New(Date, time, High, Date, TIme , Low);
TL_setextleft(Value1, TRUE);
TL_setextright(Value1, TRUE);
end;
CurPeriod += 1;
end;

Attached Files
Register to download File Type: eld TSL.SEASONAL STUDIES.ELD (18.7 KB, 14 views)
Reply With Quote
 
  #2 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,532 since Apr 2013
Thanks: 231 given, 854 received
Forum Reputation: Legendary

CharlieTrader,

the code uses OOEL parts that are not available in Multicharts. You'd have to replace the vector with an array (or an Easylanguage Collection list if you prefer) and remove the method. The latter can just be replaced with a "once begin... end;" statement. The code for the vector replacement will depend on your decision to use an array or a list.

Regards,

ABCTG

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #3 (permalink)
Elite Member
Munich/Bavaria
 
Futures Experience: Advanced
Platform: TS
Favorite Futures: none
 
Posts: 5 since Jun 2010
Thanks: 0 given, 0 received


Hi,
is there any open script solution for free or to buy for MC?
Thanks

Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,532 since Apr 2013
Thanks: 231 given, 854 received
Forum Reputation: Legendary

Fibonacci,

the code posted in #1 is open and free, it just needs slight modifications (as described in post #2) to make it work in MC.
If you are looking for recommendations, it might help if you describe what you want the study to do exactly.

Regards,

ABCTG

Reply With Quote
 
  #5 (permalink)
Elite Member
Munich/Bavaria
 
Futures Experience: Advanced
Platform: TS
Favorite Futures: none
 
Posts: 5 since Jun 2010
Thanks: 0 given, 0 received

ABCTG,

thanks for your fast reply.

First of all I want to use it with MC, I use TS as well and I know that it works,
but the modifications required are also beyond my programing skills.

Regards,
Fibonacci

Reply With Quote

Reply



futures io > > > > Seasonality Indicator

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seasonality Indicator Converting Harvard NinjaTrader Programming 6 June 16th, 2015 12:52 PM
Current Intraday Seasonality tigertrader Traders Hideout 15 February 3rd, 2015 04:06 AM
Intraday Seasonality Volatility - When to Trade and When Not to Trade Fat Tails The Elite Circle 148 December 8th, 2014 06:03 AM
Seasonality charts meyer99 ThinkOrSwim 0 August 25th, 2014 01:24 PM
Book about Seasonality and Market Cycles? Harvard Commodities Futures Trading 7 October 22nd, 2012 10:50 AM


All times are GMT -4. The time now is 03:22 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-14 in 0.09 seconds with 20 queries on phoenix via your IP 54.145.16.43