Sierra Chart ACSIL syntax for reversal system - Sierra Chart Programming | futures io social day trading
futures io futures trading


Sierra Chart ACSIL syntax for reversal system
Updated: Views / Replies:997 / 5
Created: by omni72 Attachments:0

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
 

Sierra Chart ACSIL syntax for reversal system

  #1 (permalink)
Elite Member
Tulsa, OK
 
Futures Experience: Beginner
Platform: Jigsaw, Ninja Trader, Sierra Chart
Broker/Data: Ninjatrader/Rithmic
Favorite Futures: G&L Tribute Series Rampage
 
omni72's Avatar
 
Posts: 348 since Jan 2012
Thanks: 582 given, 619 received

Sierra Chart ACSIL syntax for reversal system

I'm working on a couple stop-and-reverse trading systems in ACSIL and need to figure out how to do a couple things with the code:
  1. Exit all positions by RTH close (i.e. 3pm) or any set time
  2. Not re-enter the market until after a set time (i.e. 5pm)
  3. I think #2 will accomplish this but it also needs to not hold trades over weekends

I'd also like to be able to limit it to RTH only, but it's not really a priority right now. The main thing is to program it to be flat at RTH close and going into the weekends.

I've done some searches on SC and futures.io (formerly BMT) but haven't exactly hit upon what I'm looking for. If anyone can help with the syntax, I'd greatly appreciate the effort.

I'm still VERY new to ACSIL so while stuff like this may be a breeze to others I often have no idea how to codify the concept or action I'm attempting to program. Baby steps

Edit: fwiw, I did post a similar question on SC a month or so ago. SC did reply, but I'm thinking they thought they were responding to a seasoned ACSIL vet. I am not that guy

Luck is what happens when preparation meets opportunity. ~ Seneca

Last edited by omni72; December 20th, 2012 at 11:51 PM.
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


I can try to help, can you post the link to your original question on the SC forum? When the strat restarts at 5:00 p.m. will it be starting fresh or resuming previous logic, e.g. reopen 4 units that were closed at 3:00 p.m. and continue trading them?

Also, if you haven't used the spreadsheet for trading studies, then I highly recommend it. Right now I am doing all of my development with them because 1) I can directly see the results of my formulas and the flow of the trading logic which makes the whole process faster and easier, 2) it is easy to create and plot an equity curve on my charts so I don't even have perform backtesting or run a replay, just simply pull up a chart and there it is, 3) I can quickly and easily dump the equity figures or other study data/stats into excel for further analysis.

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #4 (permalink)
Elite Member
Tulsa, OK
 
Futures Experience: Beginner
Platform: Jigsaw, Ninja Trader, Sierra Chart
Broker/Data: Ninjatrader/Rithmic
Favorite Futures: G&L Tribute Series Rampage
 
omni72's Avatar
 
Posts: 348 since Jan 2012
Thanks: 582 given, 619 received


vegasfoster View Post
I can try to help, can you post the link to your original question on the SC forum?

@vegasfoster!!! thanks for looking into this, your efforts are greatly appreciated.

as requested, here is the thread from SC:

Time restricted ACSIL trading system - Sierra Chart


vegasfoster View Post
When the strat restarts at 5:00 p.m. will it be starting fresh or resuming previous logic, e.g. reopen 4 units that were closed at 3:00 p.m. and continue trading them?

Excellent question. Ideally, I'd like to actually incorporate that as an option: resume or start fresh. If pressed to pick between the two, I'd say starting fresh.


vegasfoster View Post
Also, if you haven't used the spreadsheet for trading studies, then I highly recommend it. Right now I am doing all of my development with them because 1) I can directly see the results of my formulas and the flow of the trading logic which makes the whole process faster and easier, 2) it is easy to create and plot an equity curve on my charts so I don't even have perform backtesting or run a replay, just simply pull up a chart and there it is, 3) I can quickly and easily dump the equity figures or other study data/stats into excel for further analysis.

Excellent suggestion and ideas. I had mostly been leaning on spreadsheets, but decided it would be worthwhile to start getting into ACSIL given its powerful combination of flexibility and efficiency. This became very noticeable when it came to backtesting: what can literally take hours to backtest via spreadsheet trading system can be done in minutes, sometimes seconds, via ACSIL.

Also, I have to admit that it's been real hit-or-miss for me when it comes to getting spreadsheet trading systems to behave as expected. I'm not opposed to using spreadsheets, it's just that ACSIL has actually been a better experience for me. And I need all the help I can get from these things

Thanks again for checking out the scenario and for your suggestions.

Luck is what happens when preparation meets opportunity. ~ Seneca
Reply With Quote
 
  #5 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

Try adding this to your code for a clean start at. End Time would be 3:00 p.m. and Start Time would be 5:00 p.m. Haven't tested, so let me know if you have issues.

 
Code
SCInputRef EndTime = sc.Input[0];
SCInputRef StartTime = sc.Input[1];
		
if (sc.SetDefaults)
{
EndTime.Name = "End Time";
EndTime.SetTime(0);

StartTime.Name = "Start Time";
StartTime.SetTime(0);		
		
return;
}
	
SCDateTime IndexTime = sc.BaseDateTimeIn.TimeAt(sc.Index);
SCDateTime IndexDay = sc.BaseDateTimeIn[sc.Index];

if(IndexTime < EndTime.GetTime() && IndexTime > StartTime.GetTime() && DAY_OF_WEEK(IndexDay) != SATURDAY && DAY_OF_WEEK(IndexDay) != SUNDAY)
{
Rest of your trade logic goes here
}
else sc.FlattenAndCancelAllOrders();


Last edited by vegasfoster; December 24th, 2012 at 12:00 AM. Reason: Reversed times, confusing as it was and erroneous
Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #6 (permalink)
Elite Member
Tulsa, OK
 
Futures Experience: Beginner
Platform: Jigsaw, Ninja Trader, Sierra Chart
Broker/Data: Ninjatrader/Rithmic
Favorite Futures: G&L Tribute Series Rampage
 
omni72's Avatar
 
Posts: 348 since Jan 2012
Thanks: 582 given, 619 received


vegasfoster View Post
Try adding this to your code for a clean start at. End Time would be 3:00 p.m. and Start Time would be 5:00 p.m. Haven't tested, so let me know if you have issues.

Awesome, I'll give it a shot today! Thanks for the effort and happy holidays!

Luck is what happens when preparation meets opportunity. ~ Seneca
Reply With Quote

Reply



futures io > > > > > Sierra Chart ACSIL syntax for reversal system

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
Sierra Chart Worksheet System For Trading/Alert Discussions tomgilb Sierra Chart Programming 29 December 14th, 2017 09:56 AM
Sierra Chart TPO chart + composite volume profile Big Mike Sierra Chart 10 August 2nd, 2016 09:15 AM
How to disable top most status line of chart in Sierra Chart Big Mike Sierra Chart 9 April 16th, 2013 07:07 PM
Instructional videos about ACSIL with Visual studio and other ACSIL programming t yonatan Sierra Chart Programming 2 January 29th, 2013 03:34 PM
ACSIL: How do I get the time value of a Vertical line that I have drawn on the chart yonatan Sierra Chart Programming 7 June 25th, 2012 08:20 AM


All times are GMT -4. The time now is 06:41 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-18 in 0.12 seconds with 20 queries on phoenix via your IP 54.221.93.187