Remove plot from chart - EasyLanguage Programming | futures io social day trading
futures io futures trading


Remove plot from chart
Updated: Views / Replies:1,514 / 7
Created: by haonkered Attachments:1

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Remove plot from chart

  #1 (permalink)
Elite Member
Houston, Texas, United States
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 25 since Jun 2013
Thanks: 10 given, 4 received

Remove plot from chart

Can someone help me with the below code. Basically I have taken the OBV indicator and modified it so that I can see how many days back the OBV crossed over the mov average of the OBV.

I robbed and stole code from macd to get the counting and color coding but on my OBV indicator in the chart it is showing a line at 0 with the color coding and I dont want it to show that.

Thanks in advance for any help

 
Code
inputs:
	AlertLength( 14 ),
	AvgLength( 20 ),
	int OBV_Up_Color( Green ), { color to be used to plot positive
	 values of MACDDiff }
	int OBV_Down_Color( Red ), { color to be used to plot 
	 negative values of MACDDiff }
	int BackgroundColorAlertCell( DarkGray ) ; { if alert criteria are met, this is
	 the color used for the cell background in RadarScreen;  if it is not desired
	 for the cell background color to change when the alert criteria are met, set
	 this input to the default cell background color }
	 
variables:
	intrabarpersist bool PlotCrossBarsAgo( false ),
	double OBVValue( 0 ),
	double OBVAvg ( 0 ),
	double HistogramColor( 0 ),
	int CrossBarsAgo( 0 );							

once
	begin
	{ if the application is something other than Charting, like RadarScreen, then
 	 set PlotCrossBarsAgo to true to indicate that the number of bars ago that the
 	 last cross	occurred is to be plotted;  this value is not
 	 plotted in Charting since it is on a different scale than the parabolic
 	 itself } 		
	PlotCrossBarsAgo = GetAppInfo( aiApplicationType ) <> cChart ;
	end ;

OBVValue = OBV ;
OBVAvg = AverageFC( OBVValue, AvgLength ) ;		//Added Avg

HistogramColor = IFF( OBVValue > OBVAvg, OBV_Up_Color, OBV_Down_Color ) ;


Plot1( OBVValue, "OBV", HistogramColor ) ;
Plot2( OBVAvg, "OBVma" ) ;						//Added Avg

{ Alert criteria }
if LowestBar( C, AlertLength ) = 0 and LowestBar( OBVValue, AlertLength ) > 0 then 
	Alert( "Bullish divergence - new low not confirmed" ) 
else if HighestBar( C, AlertLength ) = 0 and HighestBar( OBVValue, AlertLength ) > 0 then
	Alert( "Bearish divergence - new high not confirmed" ) ;

if ( OBVValue > OBVAvg and OBVValue[1] <= OBVAvg[1] ) or ( OBVValue < OBVAvg and OBVValue[1] >= OBVAvg[1] )
 then
	CrossBarsAgo = 0
else
	CrossBarsAgo += 1 ;


if PlotCrossBarsAgo = false then
SetPlotBGColor (3, Black); 
Plot3( CrossBarsAgo, "OBV Trig", HistogramColor ) ;

if OBVValue crosses over OBVAvg then
	begin
	SetPlotBGColor( 3, BackgroundColorAlertCell ) ;
	Alert( "OBV Crossing Over OBVAvg" ) ;
	end
else if OBVValue crosses under OBVAvg then
	begin
	SetPlotBGColor( 3, BackgroundColorAlertCell ) ;
	Alert( "OBV Crossing Under OBVAvg" ) ; 
	end ;

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Houston, Texas, United States
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 25 since Jun 2013
Thanks: 10 given, 4 received


Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Example of problemo

Reply With Quote
 
  #4 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

haonkered,

what exactly do you want to remove? You said that you "modified it so that I can see how many days back the OBV crossed over the mov average of the OBV", which seems to be the line near 0 (Plot3). And now you want to remove that line you added as modification?

Regards,
ABCTG

Reply With Quote
 
  #5 (permalink)
Elite Member
Houston, Texas, United States
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 25 since Jun 2013
Thanks: 10 given, 4 received

Sorry should have been clearer. I am tracking these days in radarscreen - but do not want to see that line in the chart.

Reply With Quote
 
  #6 (permalink)
Elite Member
Houston, Texas, United States
 
Futures Experience: Beginner
Platform: TradeStation
Favorite Futures: Futures
 
Posts: 25 since Jun 2013
Thanks: 10 given, 4 received

Actually figured out the solution, quite simple just an error I made.

Old Code
 
Code
if PlotCrossBarsAgo then
SetPlotBGColor (3, Black); 
Plot3( CrossBarsAgo, "OBV-T", HistogramColor ) ;



New Code
 
Code
if PlotCrossBarsAgo then 
	Plot3( CrossBarsAgo, "CrossBarsAgo", HistogramColor ) ;

SetPlotBGcolor (3, Black);

Reply With Quote
 
  #7 (permalink)
Market Wizard
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,533 since Apr 2013
Thanks: 231 given, 855 received
Forum Reputation: Legendary

haonkered,

in your new code "SetPlotBGcolor (3, Black);" will always be executed, as it's not part of the "if PlotCrossBarsAgo ..." check. In case you intended it like that, fine.
You can also let the program figure out if the study is running in the Radarscreen or on the chart.

 
Code
//study is applied in Radarscreen
if GetAppInfo(Aiapplicationtype) = 2 then
Plot3( CrossBarsAgo, "OBV-T", HistogramColor ) ;
Regards,
ABCTG


haonkered View Post
Actually figured out the solution, quite simple just an error I made.

Old Code
 
Code
if PlotCrossBarsAgo then
SetPlotBGColor (3, Black); 
Plot3( CrossBarsAgo, "OBV-T", HistogramColor ) ;



New Code
 
Code
if PlotCrossBarsAgo then 
	Plot3( CrossBarsAgo, "CrossBarsAgo", HistogramColor ) ;

SetPlotBGcolor (3, Black);


Reply With Quote
 
  #8 (permalink)
Elite Member
Tbilisi + Georgia
 
Futures Experience: None
Platform: ThinkScript,Tradestation
Favorite Futures: EUR/USD
 
Posts: 28 since Aug 2014
Thanks: 2 given, 9 received

use background color to remove/hide plot:

 
Code
SetPlotColor(1, GetBackgroundColor)

Reply With Quote

Reply



futures io > > > > > Remove plot from chart

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
nt7. plot a 5min5 sma on a 1min chart bobarian NinjaTrader 9 January 18th, 2014 10:39 AM
plot yesterdays value on todays chart O66NL NinjaTrader 1 May 16th, 2013 05:25 PM
Sierra Chart plot bid, ask, last Big Mike Sierra Chart 4 August 18th, 2012 01:48 AM
Using Draw Methods to Plot to the Future Part of the Chart Tempo NinjaTrader Programming 6 February 24th, 2011 01:14 AM
How To Manually Remove A Text ALERT From A Chart jmca2000 NinjaTrader Programming 3 July 21st, 2010 01:46 AM


All times are GMT -4. The time now is 07:52 PM.

Copyright © 2017 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
Page generated 2017-12-15 in 0.14 seconds with 20 queries on phoenix via your IP 54.163.61.66