NexusFi: Find Your Edge


Home Menu

 





Set an alert based on current bar volume?


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one Yakito with 4 posts (0 thanks)
    2. looks_two motowater with 3 posts (1 thanks)
    3. looks_3 ABCTG with 1 posts (1 thanks)
    4. looks_4 datager with 1 posts (0 thanks)
    1. trending_up 4,661 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
Yakito
Buenos Aires, Argentina
 
Posts: 47 since Jun 2013
Thanks Given: 39
Thanks Received: 4

Hello, let see if someone can help me. This should be easy but I can't find the way.

I would like to set an alert if 'current bar' volume is at or above a certain volume. Is that possible with TOS? I can't find the volume option in the alerts popup.

Thanks in advance!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Iran Deal "In Review" at 87% on Deadline Day - …
Prediction Markets & Event Contracts
Fed Hike Odds at 57% After Warsh: England Surges 12.9%, …
Prediction Markets & Event Contracts
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
UCL Final Kicks Off at Noon ET: PSG at 56.5% as Iran May …
Prediction Markets & Event Contracts
Beijing Summit Closes: Xi Pledges Hormuz Help -- $1.14B …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

Yakito,

I am not sure if you can do it by adding an alert to the Volume, but you surely can doing by programming a simple study that plots the volume and handles the alerts.

Regards,
ABCTG


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
Yakito
Buenos Aires, Argentina
 
Posts: 47 since Jun 2013
Thanks Given: 39
Thanks Received: 4


Thanks! I will try to do that. I am fairly new to TOS scripting.


ABCTG View Post
Yakito,

I am not sure if you can do it by adding an alert to the Volume, but you surely can doing by programming a simple study that plots the volume and handles the alerts.

Regards,
ABCTG


Reply With Quote
  #4 (permalink)
 
motowater's Avatar
 motowater 
Chicago IL
 
Experience: Advanced
Platform: Ninja
Trading: RTY
Posts: 36 since Jul 2012
Thanks Given: 26
Thanks Received: 12

You could even make your own program and detect when the volume bar hits a certain height. Make it sound or whatever you need.


Reply With Quote
  #5 (permalink)
Yakito
Buenos Aires, Argentina
 
Posts: 47 since Jun 2013
Thanks Given: 39
Thanks Received: 4

Thanks a lot, can you hint me on what the code would look like? I am not asking for the exact code, but I am new with TOS scripting I am a little bit lost, so any help, will..help a lot!

Once I code it, I have to add it as a study right? and on the alerts pop ups it will show as an option with a field were I can input the number I wish the alert to be on?

Thanks!!!



motowater View Post
You could even make your own program and detect when the volume bar hits a certain height. Make it sound or whatever you need.


Reply With Quote
  #6 (permalink)
 
motowater's Avatar
 motowater 
Chicago IL
 
Experience: Advanced
Platform: Ninja
Trading: RTY
Posts: 36 since Jul 2012
Thanks Given: 26
Thanks Received: 12

My language of choice is C# so here is a snippet of the code that would detect a green or grey candlestick in TOS:

 
Code
bool candleOne = false;
            Rectangle rect = new Rectangle(3718 - minusX, 177, 1, 488);
            Bitmap bmp = new Bitmap(rect.Width, rect.Height, PixelFormat.Format32bppArgb);
            Graphics g = Graphics.FromImage(bmp);
            g.CopyFromScreen(rect.Left, rect.Top, 0, 0, bmp.Size, CopyPixelOperation.SourceCopy);
            for (int i = 0; i < rect.Height; i++)
            {
                if (bmp.GetPixel(0, i).ToArgb() == -16547840
                   || bmp.GetPixel(0, i).ToArgb() == -6904396)
                {
                    candleOne = true;
                }
            }


Reply With Quote
Thanked by:
  #7 (permalink)
 
motowater's Avatar
 motowater 
Chicago IL
 
Experience: Advanced
Platform: Ninja
Trading: RTY
Posts: 36 since Jul 2012
Thanks Given: 26
Thanks Received: 12

Do you still need help coding?


Reply With Quote
  #8 (permalink)
Yakito
Buenos Aires, Argentina
 
Posts: 47 since Jun 2013
Thanks Given: 39
Thanks Received: 4

Hi motowater ! Thanks a lot, for some reason I was not notified of your first reply with the code! I will be taking a look at it and post any doubts I might get.

Thanks a lot!



motowater View Post
My language of choice is C# so here is a snippet of the code that would detect a green or grey candlestick in TOS:

 
Code
bool candleOne = false;
            Rectangle rect = new Rectangle(3718 - minusX, 177, 1, 488);
            Bitmap bmp = new Bitmap(rect.Width, rect.Height, PixelFormat.Format32bppArgb);
            Graphics g = Graphics.FromImage(bmp);
            g.CopyFromScreen(rect.Left, rect.Top, 0, 0, bmp.Size, CopyPixelOperation.SourceCopy);
            for (int i = 0; i < rect.Height; i++)
            {
                if (bmp.GetPixel(0, i).ToArgb() == -16547840
                   || bmp.GetPixel(0, i).ToArgb() == -6904396)
                {
                    candleOne = true;
                }
            }


Reply With Quote
  #9 (permalink)
datager
Birmingham + AL/35213
 
Posts: 1 since Jun 2014
Thanks Given: 0
Thanks Received: 0

Yakito, did these the code work for you? Can you set alert at a > 150% volume threshold?


Yakito View Post
Hi motowater ! Thanks a lot, for some reason I was not notified of your first reply with the code! I will be taking a look at it and post any doubts I might get.

Thanks a lot!


Reply With Quote




Last Updated on June 6, 2014


© 2026 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 - Downloads - Top
no new posts