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


Seasonality Indicator
Updated: Views / Replies:972 / 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 100,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, 15 views)
Reply With Quote
 
  #2 (permalink)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received

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)
 Vendor: www.abctradinggroup.com 
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,777 since Apr 2013
Thanks: 283 given, 1,061 received

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)

September Journal Challenge (sponsored by TopstepTrader)

September

Free Elite Membership: Twitter Tuesday and Facebook Friday!

Tue & Fri
 

Trading with Python: Using Machine Learning w/Ran Aroussi [12:30PM ET]

Elite only

TopstepTrader (TBD)

Sep 25

RandBots (TBD)

Sep 27

Anthony Drager (TBD)

Oct 4
     

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


All times are GMT -4. The time now is 08:12 AM. (this page content is cached, log in for real-time version)

Copyright © 2018 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 2018-09-18 in 0.11 seconds with 15 queries on phoenix