NexusFi: Find Your Edge


Home Menu

 





How to get high volume trades visual alert plotted on a range chart?


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Rui S with 68 posts (17 thanks)
    2. looks_two ejtrader with 60 posts (54 thanks)
    3. looks_3 Sawtooth with 4 posts (5 thanks)
    4. looks_4 vegasfoster with 1 posts (0 thanks)
      Best Posters
    1. looks_one Sawtooth with 1.3 thanks per post
    2. looks_two futuretrader with 1 thanks per post
    3. looks_3 ejtrader with 0.9 thanks per post
    4. looks_4 Rui S with 0.3 thanks per post
    1. trending_up 28,893 views
    2. thumb_up 78 thanks given
    3. group 12 followers
    1. forum 131 posts
    2. attach_file 90 attachments




 
Search this Thread

How to get high volume trades visual alert plotted on a range chart?

  #1 (permalink)
 
Rui S's Avatar
 Rui S 
Lisbon, Portugal
 
Experience: Intermediate
Platform: TWS and Sierra Charts
Broker: IB, Stage 5 / Dorman (Teton)
Trading: Stocks and E-minis
Posts: 140 since May 2012
Thanks Given: 189
Thanks Received: 55

Hello,

I have been trying to figure out a way to have a range (“Range in Ticks - Standard") chart bar plotted with different color every time there is one trade above a certain number of contracts.

I tried to get this done using the “Time & Sales Study” to identify the big volume trades and a “Color Bar Based on Alert Condition Study” with a simple alert (=ID13.SG1>1000) indexed to the “T&S Study”, but I couldn't make it work.

Among the attempts to figure it out I found that it works fine if I use a “Number Of Trades Per Bar” chart set to 1 (one bar for each trade) instead the “Range in Ticks” chart but of course that's not what I need.

I think that the problem is that I wasn't able to find a way to correctly use the “T&S Study” data (which is based on time) and the “Color Bar Based on Alert Condition Study” to plot the alert signal in the Range chart (which is based on range).

How can I do this?

Any help or guidance would be much appreciated.

Thanks.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (permalink)
 futuretrader 
Como Italy
 
Experience: Intermediate
Platform: Ninjatrader, customized
Trading: ES
Posts: 525 since Feb 2010
Thanks Given: 471
Thanks Received: 643

Not entirely sure what you want to do, but if you simply want to change the bar color if a single trade within that bar is greater than n contracts, you can simply monitor the size of trades in OnBarUpDate and then use BarColor = Color.Whatever to change the color. It doesn't matter what type of bar it is.

Reply With Quote
Thanked by:
  #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



Rui S View Post
Hello,

I have been trying to figure out a way to have a range (“Range in Ticks - Standard") chart bar plotted with different color every time there is one trade above a certain number of contracts.

I tried to get this done using the “Time & Sales Study” to identify the big volume trades and a “Color Bar Based on Alert Condition Study” with a simple alert (=ID13.SG1>1000) indexed to the “T&S Study”, but I couldn't make it work.

Among the attempts to figure it out I found that it works fine if I use a “Number Of Trades Per Bar” chart set to 1 (one bar for each trade) instead the “Range in Ticks” chart but of course that's not what I need.

I think that the problem is that I wasn't able to find a way to correctly use the “T&S Study” data (which is based on time) and the “Color Bar Based on Alert Condition Study” to plot the alert signal in the Range chart (which is based on range).

How can I do this?

Any help or guidance would be much appreciated.

Thanks.

Here is one way to do it:

1) Add another chart to your chartbook.
-Set the Bar Period to Number Of Trades Per Bar and value to 1.
-Set the Days to Display/Load to 3, or a small number.
-Add the Volume study
2) Add the Study/Price Overlay study to the range chart
-Set the Study to Overlay to the Number Of Trades chart and the Volume study.
-Check Hide Study
3) Add the Spreadsheet Study study to the range chart
-Set the Chart Region to 1
-Give it a name in the Spreadsheet Name field
-Set the Number of Rows to 10
-Set the Draw Style of SG1 to Color Bar
-Set the color
-On the spreadsheet, put this in cell K3:
=IF(ROW()=3,AA3>10,0)
This assumes the Overlay study is in column AA; edit as needed.
Edit the value >10 to your volume threshold of each trade.

This will flash the current bar the chosen color every time a trade exceeds the specified volume.

Reply With Quote
Thanked by:
  #4 (permalink)
 
Rui S's Avatar
 Rui S 
Lisbon, Portugal
 
Experience: Intermediate
Platform: TWS and Sierra Charts
Broker: IB, Stage 5 / Dorman (Teton)
Trading: Stocks and E-minis
Posts: 140 since May 2012
Thanks Given: 189
Thanks Received: 55


futuretrader View Post
Not entirely sure what you want to do, but if you simply want to change the bar color if a single trade within that bar is greater than n contracts, you can simply monitor the size of trades in OnBarUpDate and then use BarColor = Color.Whatever to change the color. It doesn't matter what type of bar it is.



@futuretrader

Thank you very much for your reply.

In fact, what I really want is just to change the bar color if a single trade within that bar is greater than n contracts.

The solution purposed using OnBarUpDate sounds easy and simple but I can’t find this study in SC.

Could you please provide some more information?

Thanks.

Started this thread Reply With Quote
  #5 (permalink)
 
Rui S's Avatar
 Rui S 
Lisbon, Portugal
 
Experience: Intermediate
Platform: TWS and Sierra Charts
Broker: IB, Stage 5 / Dorman (Teton)
Trading: Stocks and E-minis
Posts: 140 since May 2012
Thanks Given: 189
Thanks Received: 55


tomgilb View Post
Here is one way to do it:

1) Add another chart to your chartbook.
-Set the Bar Period to Number Of Trades Per Bar and value to 1.
-Set the Days to Display/Load to 3, or a small number.
-Add the Volume study
2) Add the Study/Price Overlay study to the range chart
-Set the Study to Overlay to the Number Of Trades chart and the Volume study.
-Check Hide Study
3) Add the Spreadsheet Study study to the range chart
-Set the Chart Region to 1
-Give it a name in the Spreadsheet Name field
-Set the Number of Rows to 10
-Set the Draw Style of SG1 to Color Bar
-Set the color
-On the spreadsheet, put this in cell K3:
=IF(ROW()=3,AA3>10,0)
This assumes the Overlay study is in column AA; edit as needed.
Edit the value >10 to your volume threshold of each trade.

This will flash the current bar the chosen color every time a trade exceeds the specified volume.


@tomgilb

Thank you very much for your reply.

I followed your instructions step by step and apart from a minor fault in the formula (I had to use ; instead of ,) it worked perfectly. You really are an expert in SC.

Unfortunately, that is not what I need, as the candle flashes but doesn’t keep the alert color. And this method revealed to be very CPU intensive, which I really need to avoid.

As I mentioned in my previous post for futuretrader, what I really need is just to change the bar color if a single trade within that bar is greater than n contracts.

Do you have any other suggestion to do it, not forgetting the fact that I need to keep it as simple and low CPU intensive as possible?

Thanks.

Started this thread Reply With Quote
  #6 (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


Rui S View Post
@tomgilb

Thank you very much for your reply.

I followed your instructions step by step and apart from a minor fault in the formula (I had to use ; instead of ,) it worked perfectly. You really are an expert in SC.

Unfortunately, that is not what I need, as the candle flashes but doesn’t keep the alert color. And this method revealed to be very CPU intensive, which I really need to avoid.

As I mentioned in my previous post for futuretrader, what I really need is just to change the bar color if a single trade within that bar is greater than n contracts.

Do you have any other suggestion to do it, not forgetting the fact that I need to keep it as simple and low CPU intensive as possible?

Thanks.

So you need historical candles to be colored, or only the current candle?

Reply With Quote
  #7 (permalink)
 
Rui S's Avatar
 Rui S 
Lisbon, Portugal
 
Experience: Intermediate
Platform: TWS and Sierra Charts
Broker: IB, Stage 5 / Dorman (Teton)
Trading: Stocks and E-minis
Posts: 140 since May 2012
Thanks Given: 189
Thanks Received: 55


tomgilb View Post
So you need historical candles to be colored, or only the current candle?



I need historical (intraday) candles to be colored...

Started this thread Reply With Quote
  #8 (permalink)
 ejtrader 
Portland, OR
 
Experience: Intermediate
Platform: Sierra Chart
Trading: ES
Posts: 269 since Jan 2011
Thanks Given: 327
Thanks Received: 180

Attached is one ACSIL based solution - this would work realtime ( from the moment the study is inserted ).

Please give this a try if you would like.

Edit - Updated this with slightly modified version - Study name is also changed to "VolumeThreshold"

Thanks

Attached Files
Elite Membership required to download: VolumeThreshold.dll
Elite Membership required to download: VolumeThreshold.cpp
Reply With Quote
  #9 (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


Rui S View Post
I need historical (intraday) candles to be colored...

There is a way to do this with the Spreadsheet Study study, but it has 2 limitations that render it unusable:
1) It requires the use of the max number of spreadsheet rows (100000) and this will cause high CPU usage.
2) Even with 100000 rows (100000 bars of the 1 tick chart), the historical color bars on the range chart only go back about 50 bars or so, depending on the size of the range bar.

As far as I know, there is no way to do what you want, except possibly a custom ACSIL study.

Now that I posted, I see that @ejtrader came to the rescue.

Reply With Quote
Thanked by:
  #10 (permalink)
 
Rui S's Avatar
 Rui S 
Lisbon, Portugal
 
Experience: Intermediate
Platform: TWS and Sierra Charts
Broker: IB, Stage 5 / Dorman (Teton)
Trading: Stocks and E-minis
Posts: 140 since May 2012
Thanks Given: 189
Thanks Received: 55



ejtrader View Post
Attached is one ACSIL based solution - this would work realtime ( from the moment the study is inserted ).

Please give this a try if you would like.

Thanks


ejtrader,

Thank you for your reply.

I will give it a try.

I can see two files to download there; Would you please give me some instructions how to safely install it in SC?

Thanks.

Started this thread Reply With Quote




Last Updated on January 20, 2016


© 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