Login Page - Create Account

Support Board


Date/Time: Sun, 24 Nov 2024 06:38:21 +0000



Adding Position in Spreadsheet System for Trading

View Count: 1938

[2013-07-02 15:36:54]
User51517 - Posts: 58
Hello admin/fellow SC users:

I'm trying to build an auto trading strategy in Spreadsheet System for Trading. Right now I'm setting the system for 1 signal only per bar (at bar close). My question is: if future bar(s) give me new signal(s), how do I set the system to take on more position(s)? Currently I see all new signals are ignored.

Thank you
[2013-07-02 15:59:44]
Sawtooth - Posts: 4118
In the spreadsheet study settings, set Allow Multiple Entries in Same Direction to Yes.
http://www.sierrachart.com/index.php?l=doc/doc_AutoTradeManagment.php#AllowMultipleEntriesInSameDirection

If you are using Attached Orders, also set Allow Entry With Working Orders to Yes.
http://www.sierrachart.com/index.php?l=doc/doc_AutoTradeManagment.php#AllowEntryWithWorkingOrders

You may also want to check Support Scale-In on the Trade Window's Menu (M) tab.
https://www.sierrachart.com/index.php?l=doc/doc_AttachedOrders.html#ScalingIn
Date Time Of Last Edit: 2013-07-02 16:08:14
[2013-07-02 16:51:45]
Sierra Chart Engineering - Posts: 104368
The answer given in post #2 is good information.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-07-02 18:03:08]
User51517 - Posts: 58
when scale-in is enabled, and a new position is added, will I have 2 sets of stop/target attached orders (one for the original position, one for the new position) or the original stop/target modified to accommodate both positions?
Date Time Of Last Edit: 2013-07-02 18:03:42
[2013-07-03 01:58:53]
Sierra Chart Engineering - Posts: 104368
The original Stop and Target orders will have their order quantities increased.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-09-24 14:32:28]
TheOddsAreYouDontKnowTheOdds - Posts: 29
I'm facing a related problem. I have enabled AllowMultipleEntries...I have also set the SignalOnlyOncePerBar to TRUE.
What I want is that it should only add a new position once per bar, then if the same condition holds on the next bar it should another, and so on. But only ONE CONTRACT per bar whether ENTERING or ADDING to the position.(I also set SignalOnBarCloseOnly to TRUE). The order qty is set at 1 and the max qty is 20.

Here's what is happening.
When it sees a TRUE signal (Buy OR Sell) it jumps in AT THE SAME PRICE with multiple instances i.e. several orders, all at once, and thus initiates with n SEPARATE fills all at the same price/same bar (where n>1) where I only intended 1.

Any clues?

I am using Renko Bars (when bar closes and certain conditions are true, Buy or Sell as the case may be).

The entry logic is: If no position exists and the Entry conditions = TRUE, Enter (Buy) with 1 contract. If long position exists and Entry conditions = TRUE, then ONLY IF price is higher than previous fill price by x, then Enter again (Buy).
Date Time Of Last Edit: 2013-09-24 14:33:53
[2013-09-24 16:33:39]
Sierra Chart Engineering - Posts: 104368
Is there more than one chart bar appearing at the time you get the multiple orders?

Should be one if SignalOnlyOncePerBar is Yes.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2013-09-24 21:05:33]
TheOddsAreYouDontKnowTheOdds - Posts: 29
All the entries seem to be on the SAME bar, but yes, several bars appeared in quick succession. As I said, I'm using Renko Bars so maybe there's something going on relative to fast markets. One would expect to see fills at several different prices (one per bar), right?

Anyway, I'll keep digging around. Was just wondering if this rang a bell.

Thanks.

[2013-09-25 08:32:19]
Sierra Chart Engineering - Posts: 104368
If there are several bars which occur at once during a chart update, they can trigger multiple orders, but they will all fill at the current price.

There really should be no reason why the Signal Only Once per Bar setting will not work properly. If you were to test that setting by manually setting the Order Action cells on a Spreadsheet to TRUE and FALSE during a slow replay, you will see that it does work properly.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account