NexusFi: Find Your Edge


Home Menu

 





automatically place orders at close of current bar


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Sawtooth with 3 posts (5 thanks)
    2. looks_two Sayounara with 3 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 Jorma with 1 posts (0 thanks)
    1. trending_up 3,643 views
    2. thumb_up 5 thanks given
    3. group 5 followers
    1. forum 7 posts
    2. attach_file 2 attachments




 
Search this Thread

automatically place orders at close of current bar

  #1 (permalink)
Sayounara
Yokohama South Korea
 
Posts: 120 since Nov 2012
Thanks Given: 100
Thanks Received: 81

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

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Request for MACD with option to use different MAs for fa …
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
67 thanks
Battlestations: Show us your trading desks!
48 thanks
NexusFi site changelog and issues/problem reporting
47 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
31 thanks

  #3 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 216
Thanks Received: 603



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
Click image for larger version

Name:	ChartDOM settings.png
Views:	249
Size:	20.8 KB
ID:	105462  
Reply With Quote
The following 2 users say Thank You to Sawtooth for this post:
  #4 (permalink)
Sayounara
Yokohama South Korea
 
Posts: 120 since Nov 2012
Thanks Given: 100
Thanks Received: 81

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)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 216
Thanks Received: 603


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
Elite Membership required to download: Entry at Bar Close.ZIP
Reply With Quote
The following 3 users say Thank You to Sawtooth for this post:
  #6 (permalink)
Sayounara
Yokohama South Korea
 
Posts: 120 since Nov 2012
Thanks Given: 100
Thanks Received: 81

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://nexusfi.com/images/smilies/gtn/tee.gif)

Reply With Quote
  #7 (permalink)
 Jorma 
Versailles Ile de france France
 
Experience: Beginner
Platform: Sierra
Trading: Futures
Posts: 12 since Dec 2013
Thanks Given: 0
Thanks Received: 0


tomgilb View Post
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.

Hello,
i have this message when i open the study:

Unable to open C:\SierraChart\Data\Fibs Entry at Bar close.scwbf because the spreadsheet file conversion failed

can anyone make a new study?

Reply With Quote
  #8 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 216
Thanks Received: 603


Jorma View Post
Hello,
i have this message when i open the study:

Unable to open C:\SierraChart\Data\Fibs Entry at Bar close.scwbf because the spreadsheet file conversion failed

can anyone make a new study?

This converted without failure for me.

Why is the word 'Fibs' in the file name?
The original file name was 'Entry at Bar close.scwbf'

Try this:
-Close Sierra Chart
-Download the zip file again, and put both extracted files in the Sierra Chart \Data folder.
-Open Sierra Chart, and open a chartbook you want to add this to.
-Go to Analysis >> Entry at Bar close-
The spreadsheet will convert from .scwbf to .scss

Note: The spreadsheet expects it to be loaded on Chart#1. If you load it on another chart #, you'll need to use cell J2 on the sheet # that matches the chart #.
(Go to Sheet1 and copy cells J1:J2, then go to the new sheet and paste to cells J1:J2.)

Reply With Quote





Last Updated on July 15, 2018


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts