Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-06-2009, 08:23 AM   #25

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 292 Times in 105 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

Quote:
Originally Posted by shortski »
I cannot post the ThreelineBreak Function as it is a leased indicator. On the chart, it is the continuous indicator plotting in sub graph 2. The other indicator in sub graph 2 is the Oscillator Divergence.


I do know that the Oscillator gives a return of 0.00 and it is either a red or green 0.00. The ThreeLineBreak returns either a +1 or a -1.

I understand what you are saying about the >= and <= 0 but it is the only way to get it to plot at all. Any changes creates a blank plot. I have tried a +/-1 as well as +/-1 for the ThreeLineBreak and 'red' and 'green' for the OscillatorDivergence.
Regarding your ThreelineBreak Function ...... it's possible that ( as with some functions ) that it's value = -1 when the condition is false.... so could you make up an indicator and insert this code then post a pic.

Plot1(ThreeLineBreak, "ThreeLineBreak");


Also you're saying the Oscillator gives a return of 0 and changes color to either red or green..... this is incorrect as it's only set to plot at zero.... the actual figure will be different......... ( this could also be the case with the ThreeLineBreak )

Again if you can post a chart with ONLY these two indicators on... then we'll hopefully get somewhere.

Cheers

Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote
Old 02-06-2009, 09:10 AM   #26

Join Date: Jan 2009
Posts: 15
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

Here is a shot of the chart with only the two indicators on it. Price action then ThreeLineBreak then OscillatorDivergence.

Thanks for your patience and help in this matter.

I still have to try the other suggestion above about changing the colors to Black.
Attached Thumbnails
Can Someone Tell Me How to Get an Indicator to Stop Plotting-oscdiv-3lnbrk7.png  
shortski is offline  
Reply With Quote
Old 02-06-2009, 09:23 AM   #27

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 292 Times in 105 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

Quote:
Originally Posted by shortski »
Here is a shot of the chart with only the two indicators on it. Price action then ThreeLineBreak then OscillatorDivergence.

Thanks for your patience and help in this matter.

I still have to try the other suggestion above about changing the colors to Black.
Thanks for the pic.

Looking at the chart, the ThreeLineBreak, doesn't have a value of 1 & -1, it seems to have a value the same as price.

Also the OscillatorDivergence.... this isn't the correct values.... all someone's done here is code it so that it plots at zero if certain conditions are met within the OscillatorDivergence, for example ....

if A + B = C then plot1(0,"Divergence", Green)
If D + E = F then plot1(0,"Divergence", Red)

So although it's plotting at zero.... the actual values and conditions of the indicator are different.

Hope this helps

Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote
Old 02-06-2009, 11:44 AM   #28
zdo

Join Date: Nov 2007
Location: boonies
Posts: 1,349
Ignore this user

Thanks: 317
Thanked 355 Times in 256 Posts
Blog Entries: 104

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

shortski,

Please just post the eld and it'll get fixed quickly and efficiently for you and those trying to help.

thanks.

zdo
zdo is offline  
Reply With Quote
Old 02-06-2009, 12:07 PM   #29

Join Date: Jan 2009
Posts: 15
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

Well, that is the inherent problem. I posted the eld's of the GordoMACDDiff above and the only thing missing that I have is the way I input the GordoMACDDiff into the OscillatorDivergence. And that is;

Name Value
SeriesHigh High
SeriesLow Low
Osc GordoMAVDDiff(Close,12,26 )
pctDivergence 0.9
PlotLvel 0

Other than that, the code for the ThreeLineBreak and the OscillatorDivergence are proprietary and I lease them from EOT.

This did work before, but I reformatted my HD and for some reason, this is the only code I didn't save. So, I believe all the inputs are ok and it is something small in the way I am coding them. If you can see the problem, that would be great.

Thanks

Shortski
shortski is offline  
Reply With Quote
Old 02-08-2009, 07:15 AM   #30

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 292 Times in 105 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

Quote:
Originally Posted by shortski »
Well, that is the inherent problem. I posted the eld's of the GordoMACDDiff above and the only thing missing that I have is the way I input the GordoMACDDiff into the OscillatorDivergence. And that is;

Name Value
SeriesHigh High
SeriesLow Low
Osc GordoMAVDDiff(Close,12,26 )
pctDivergence 0.9
PlotLvel 0

Other than that, the code for the ThreeLineBreak and the OscillatorDivergence are proprietary and I lease them from EOT.

This did work before, but I reformatted my HD and for some reason, this is the only code I didn't save. So, I believe all the inputs are ok and it is something small in the way I am coding them. If you can see the problem, that would be great.

Thanks

Shortski

If they've supplied the functions for their proprietry indicators to enable you to code from them...... then you need to know the actual values for what triggers a green and red signal..... and then and only then can we hopefully get somewhere.

As even your code above clearly shows that it's only plotting at level zero...... confirming the actual value of the indicators are a lot different.


An example of what I mean.... here's a simple code to show you if price is above or below a moving average.....

Inputs:
Length (10);

Vars:
Avg(0);

Avg = average(Close,Length);

If Close > Avg then Plot1(0,"Avg",Green) else Plot1(0,"Avg",Red) ;


So as you can see in the above code..... it's plotting at the level of zero, but the actual trigger is alot different..... for example.. close price is 828.5 and the Avg is 826.75.


So to sum it up...... you need to know the trigger values.

Hope this helps

Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote
Old 02-08-2009, 08:16 AM   #31

Join Date: Apr 2007
Location: new york
Posts: 1
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

you should specify a plot number as an arguement with the noplot command

If ( SomeCondition ) then
Plot1 ( myvalue, "SomeLabel" )
Else
NoPlot(1) ; <---- specifies the plot number not to plot
gonefishing is offline  
Reply With Quote
Old 02-08-2009, 12:49 PM   #32

Join Date: Jan 2009
Posts: 15
Ignore this user

Thanks: 0
Thanked 0 Times in 0 Posts

Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting

I tried using the NoPlot a number of times with the same result;

vars:

value1(0),
value2(0);

value1 = $rtOscillatorDivergence(h igh,low,GordoMACDDiff(clo se,12,26),1.0);
value2 = ThreeLineBreak;

If
value1 > 0 and value2 > 0 then begin
Plot1(1,"Buy",green);
end
else If
value1 < 0 and value2 < 0 then begin
Plot1(-1,"Sell",red);
end
else
NoPlot(1);

if(Value1 > 0 and value2 > 0) then Green

else if(Value1 < 0 and value2 < 0) then Red

I just tried using sneo's suggestion for a ChartBGColor and it basically plots the same as my original code but still won't stop plotting;

Vars:

Combo(0),
ComboColor(ChartBGColor);

Inputs:

ChartBGColor(black);

value1=GordoMACDDiff(Clos e,12,26);
value2=$rtOscillatorDiver gence(high,low,value1,0.9 );
value3 = ThreeLineBreak;

Condition1 = value2 >=0 and value3 >=0;

Condition2 = value2 <=0 and value3 <=0;

if Condition1
then begin
Combo=1;
ComboColor= Blue;
end
else
if Condition2
then begin
Combo=-1;
ComboColor= Red;
end
else
begin
Combo=0;
ComboColor= ChartBGColor;
end;
Plot1( Combo, "Combo", ComboColor);

So now, I will try and modify this code with "else NoPlot"

Thank you all for your suggestions here.

Shorski
Attached Thumbnails
Can Someone Tell Me How to Get an Indicator to Stop Plotting-oscdiv-3lnbrk1sneo.png  
shortski is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where Do You Place Your Stop Order? BennyHey Money Management 23 08-05-2009 09:44 PM
Stop Loss Stop Loss Trailing rod30 Beginners Forum 8 02-23-2008 10:49 AM
Sickest Stop-Outs Dogpile Technical Analysis 4 10-19-2007 02:06 PM
[Plotting Fib Retracements in Real-time] Soultrader Trading Videos 3 05-06-2007 11:22 AM
Plotting Market Profile on TS dah7 Market Profile 9 03-16-2007 09:49 PM

All times are GMT -4. The time now is 12:28 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.