Plot Volume condition - futures io
futures io futures trading



Plot Volume condition


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,543 views
    2. thumb_up 2 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Plot Volume condition

(login for full post details)
  #1 (permalink)
Munich Germany
 
 
Posts: 10 since Jan 2014
Thanks: 1 given, 2 received

Hi experts,

I need a help with an indicator for TradeStation: I am looking for a volume indicator that will plot a point only when the volume is greater than 100.000. When the volume is less than 100.000 nothing will be plotted.
For example: A daily volume from a stock is:
150.000, 80.000, 75.000, 60.000, 250.000, 300.000, 120.000, 70.000, 99.999, 220.000

The Indicator should be:

Who can help me? Has someone a better idea?

Thanks for the support,

Jacare

Reply With Quote

Can you help answer these questions
from other members on futures io?
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received


Hi jacare,

this code can do what you want. Simply set the plot style to point or cross.

 
Code
inputs:  VolumeThreshold( 100000 ) ;
variables:  VolumeValue( 0 ) ;

if BarType >= 2 and BarType < 5 then { not tick/minute data nor an advanced chart
 type (Kagi, Renko, Kase etc.) }
	VolumeValue = Volume
else { if tick/minute data or an advanced chart type;  in the case of minute data,
 also set the "For volume, use:" field in the Format Symbol dialog to Trade Vol or
 Tick Count, as desired;  when using advanced chart types, Ticks returns volume if
 the chart is built from 1-tick interval data }
	VolumeValue = Ticks ;
If VolumeValue >= VolumeThreshold then	
	Plot1( 0, "Volume" );
Regards,
ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #4 (permalink)
Munich Germany
 
 
Posts: 10 since Jan 2014
Thanks: 1 given, 2 received

Hi ABCTG,

it worked great. How can I have a volume average from the last 5 days great than 100.000? If I am checking a weekly chart, I want to see plotted only when the volume avarege from the last 5 days is bigger than 100.000.

Really really thanks for the help. I tried but I have no idea about programming.

Cheers,

Jacare

Reply With Quote
 
(login for full post details)
  #5 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

Jacare,

if you work on a weekly chart and want to average the volume of the last 5 days (and not the week itself) you will need a second data stream.
Make the weekly bars Data1 and add daily bars as Data2. The this code can serve as a starting point for what you have in mind:

 
Code
inputs:  AverageLength( 5 ), VolumeThreshold( 100000 ) ;
variables:  VolumeValue( 0, Data2 ), VolumeAvg( 0, Data2 );

if BarType Data2 >= 2 and BarType Data2 < 5 then { not tick/minute data nor an advanced chart
 type (Kagi, Renko, Kase etc.) }
	VolumeValue = Volume Data2
else { if tick/minute data or an advanced chart type;  in the case of minute data,
 also set the "For volume, use:" field in the Format Symbol dialog to Trade Vol or
 Tick Count, as desired;  when using advanced chart types, Ticks returns volume if
 the chart is built from 1-tick interval data }
	VolumeValue = Ticks Data2;
		
VolumeAvg = Average( VolumeValue, AverageLength );
	
If VolumeAvg >= VolumeThreshold then	
	Plot1( 0, "Volume" );
Regards,
ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Plot Volume condition


Last Updated on February 4, 2014


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts