| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #25 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting Quote:
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 | ||
| |
|
| | #26 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting Thanks for your patience and help in this matter. I still have to try the other suggestion above about changing the colors to Black. | ||
| |
|
| | #27 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting Quote:
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 | ||
| |
|
| | #28 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting Please just post the eld and it'll get fixed quickly and efficiently for you and those trying to help. thanks. zdo | ||
| |
|
| | #29 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting 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 | ||
| |
|
| | #30 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting Quote:
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 | ||
| |
|
| | #31 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting If ( SomeCondition ) then Plot1 ( myvalue, "SomeLabel" ) Else NoPlot(1) ; <---- specifies the plot number not to plot | ||
| |
|
| | #32 | ||
![]() | Re: Can Someone Tell Me How to Get an Indicator to Stop Plotting 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 | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | 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 |