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 2,954 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 8 posts
    2. attach_file 0 attachments




 
Search this Thread

Set an alert based on current bar volume?

  #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?
Cheap historycal L1 data for stocks
Stocks and ETFs
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Quantum physics & Trading dynamics
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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 Twitter 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


© 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