automatically place orders at close of current bar - Sierra Chart Programming | futures io social day trading
futures io futures trading


automatically place orders at close of current bar
Updated: Views / Replies:1,617 / 5
Created: by Sayounara Attachments:2

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
 

automatically place orders at close of current bar

  #1 (permalink)
Trading for Fun
Yokohama South Korea
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: CTS
Favorite Futures: gold
 
Posts: 102 since Nov 2012
Thanks: 87 given, 56 received

automatically place orders at close of current bar

I'm a discretionary trader and I've been trading with SierraChart's chart trading tool for a couple of month now.

sometimes the markets I trade move really fast and I frequently found myself missing good trades due to my inability to place trades quickly enough.

I'm trying to come up with a custom study to automatically place orders at the close of the current bar. a sell stop order if the bar closed red, or a buy stop order if the bar closed green.

of course I wouldn't want the custom study to do that for every bar, so there must be a trigger for the study to even start monitoring the current bar.

when I was using MetaTrader, I used a Fibonacci object as the trigger. as soon as I placed a Fib on a chart, my custom study began to monitor the current bar, and placed orders accordingly, using the 0% line as entry price, and the 100% line as stoploss, or vice versa.

I'm really new to SierraChart, so I've no idea whether or not I could do similar things in SierraChart. if yes, could somebody please give me some advice on how to proceed? and if there are already tools like this lying around somewhere, could someone please point the way?

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
Phoenix AZ USA
 
Futures Experience: Advanced
Platform: SierraChart
Broker/Data: TradePro/TransAct
Favorite Futures: NQ YM RTY
 
Posts: 295 since Nov 2009
Thanks: 125 given, 338 received



Sayounara View Post
I'm a discretionary trader and I've been trading with SierraChart's chart trading tool for a couple of month now.

sometimes the markets I trade move really fast and I frequently found myself missing good trades due to my inability to place trades quickly enough.

I'm trying to come up with a custom study to automatically place orders at the close of the current bar. a sell stop order if the bar closed red, or a buy stop order if the bar closed green.

of course I wouldn't want the custom study to do that for every bar, so there must be a trigger for the study to even start monitoring the current bar.

when I was using MetaTrader, I used a Fibonacci object as the trigger. as soon as I placed a Fib on a chart, my custom study began to monitor the current bar, and placed orders accordingly, using the 0% line as entry price, and the 100% line as stoploss, or vice versa.

I'm really new to SierraChart, so I've no idea whether or not I could do similar things in SierraChart. if yes, could somebody please give me some advice on how to proceed? and if there are already tools like this lying around somewhere, could someone please point the way?

I don't know of any way to trigger an automatic entry based on a chart drawing without a custom dll study. However, you could use the Spreadsheet System for Trading study to do it with a formula based on manually entering a value in a cell.

I also trade from the chart, and I use the ChartDOM. With the settings below, it is a fast and accurate one-click operation to place a buy stop/sell stop, or a buy limit/sell limit, beyond the market.

These are the settings I use:

-Trade >> Attach Trade Window To Chart (or Open Trade Window For Chart)
-Trade >> Trading Chart DOM On
-Trade >> Chart Trade Settings and set what you want displayed.
-Trade >> Chart DOM Settings and set the ChartDOM settings as pictured in the attached. This will assure you can only place the correct order type above and below the market.
-Chart >> Chart Settings >> Advanced Settings tab >> check 'Adjust Tool Values to Tick Size'. This assures accuracy in when choosing the entry price.
-Uncheck all of the Confirms on the Trade Window's M button. This allows a one-click entry/cancel/modification.

To automatically place an OCO target and stop when entering an order on the Chart DOM, build a Trade Window Configuration and check Use Attached Orders. See this for details:
Sierra Chart - Basic Trading and the Trade Window

To enter a pending limit or stop entry order, click in the Buy or Sell column of the Chart DOM. To enter a Market order, click the Buy Mkt or Sell Mkt button, or set the order type to Market and click the Buy or Sell button.
For more info on the Trade Window:
Sierra Chart - Basic Trading and the Trade Window

Here's the documentation for the Chart DOM:
Sierra Chart - Chart Trading and the ChartDOM (TM)

Attached Thumbnails
automatically place orders at close of current bar-chartdom-settings.png  
Reply With Quote
The following 2 users say Thank You to tomgilb for this post:
 
  #4 (permalink)
Trading for Fun
Yokohama South Korea
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: CTS
Favorite Futures: gold
 
Posts: 102 since Nov 2012
Thanks: 87 given, 56 received

Tomgilb, thank you very much for your reply. I also use ChartDOM to trade and most of the time it does the job. however, for every entry into the market I had to keep my hand on the mouse and (anxiously) wait for the bar to close in the anticipated direction and pray that the market would pause long enough for me to put in an order at a desired location. this part of trading really isn't fun and creates much unnecessary stress.

trading would be much more relaxed and enjoyable if, for example, I could put a down arrow on a chart at the beginning of a bar, thus telling the program that I intend to sell at the end of the current bar if it closes red. and then just sit back and wait for things to happen.

I've just began to study ACSIL. the best way I found to learn a programming language is to study other people's codes. however I've only found a handful of ACSIL resources so far, and most of them are indicators that has nothing to do with order execution.

Thanks anyway for your detailed reply. I like Sierra Chart very much and I'm happy to meet fellow traders who use the same platform.

Reply With Quote
 
  #5 (permalink)
Elite Member
Phoenix AZ USA
 
Futures Experience: Advanced
Platform: SierraChart
Broker/Data: TradePro/TransAct
Favorite Futures: NQ YM RTY
 
Posts: 295 since Nov 2009
Thanks: 125 given, 338 received


Sayounara View Post
Tomgilb, thank you very much for your reply. I also use ChartDOM to trade and most of the time it does the job. however, for every entry into the market I had to keep my hand on the mouse and (anxiously) wait for the bar to close in the anticipated direction and pray that the market would pause long enough for me to put in an order at a desired location. this part of trading really isn't fun and creates much unnecessary stress.

trading would be much more relaxed and enjoyable if, for example, I could put a down arrow on a chart at the beginning of a bar, thus telling the program that I intend to sell at the end of the current bar if it closes red. and then just sit back and wait for things to happen.

I've just began to study ACSIL. the best way I found to learn a programming language is to study other people's codes. however I've only found a handful of ACSIL resources so far, and most of them are indicators that has nothing to do with order execution.

Thanks anyway for your detailed reply. I like Sierra Chart very much and I'm happy to meet fellow traders who use the same platform.

You can do what you want using the Spreadsheet System for Trading study. Attached is an example. Unzip the attached and put the contents in your Sierra Chart \Data folder, click on Analysis >> Entry at Bar Close-

Also, check the Trade >> Auto Trading Enabled.

When you want to enter a trade at the close of the current bar, enter a "y" in cell J2. Try it in sim or in chart replay and, if you like it, go the the study settings and set Send Orders To Trade Service to Yes.

This is very simplistic, and could be made more sophisticated.

Attached Files
Register to download File Type: zip Entry at Bar Close.ZIP (7.1 KB, 57 views)

Last edited by tomgilb; March 12th, 2013 at 10:26 AM.
Reply With Quote
The following 3 users say Thank You to tomgilb for this post:
 
  #6 (permalink)
Trading for Fun
Yokohama South Korea
 
Futures Experience: Beginner
Platform: Sierra Chart
Broker/Data: CTS
Favorite Futures: gold
 
Posts: 102 since Nov 2012
Thanks: 87 given, 56 received

oh, this is great! I didn't realise the Spreadsheet System can be used like that. I'll look into it right away!

thanks a lot for the attachment. you probably just saved me from hours and hours of studying a new programming language.

(now I'll have more time for beers and girls, cheers https://futures.io/images/smilies/gtn/tee.gif)

Reply With Quote

Reply



futures io > > > > > automatically place orders at close of current bar

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
script to close orders only on new bar philtrader MetaQuotes MetaTrader MQL Programming 1 February 7th, 2013 09:38 AM
Automatically placed orders issues when ninjatrader is turned off. snusnufreak NinjaTrader 3 May 4th, 2012 04:07 AM
Volume for Current Bar RambleDog NinjaTrader 4 May 16th, 2011 08:37 PM
Has anyone used Ninja unmanaged orders to place IB TWS OCA g PaulCahill Reviews of Brokers and Data Feeds 1 May 19th, 2010 10:52 AM
Close[0] not waiting until bar close dsraider NinjaTrader Programming 4 February 11th, 2010 06:49 PM


All times are GMT -4. The time now is 04:51 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-13 in 0.12 seconds with 20 queries on phoenix via your IP 54.90.92.204