[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [EquisMetaStock Group] Re: Support & Resistant Formula



PureBytes Links

Trading Reference Links

Hi Mark


I'm not quite sure of your meaning. Do you want the lines plotted on the left side and the right side but not in the middle, or do you want the lines plotted from the leftmost bar to the rightmost bar? Plotting values derived from the right side of the chart can cause price-chart distortion if beginning values are substantially different and only the left side of the chart is viewed. This might or might not be a problem for you. 

Plotting the last value of any value right across a chart is as easy as LastValue(PP) for example. There would be no need to use ValueWhen() with X as a trigger expression. 

Plotting the first ten bars as well as the last 10 bars of PP etc. would require a different technique for the left side line display. The left side display would depend on the number of loaded bars, not the number of displayed bars. I'm reluctant to try and code for this until I know exactly what you're trying to do.

Regards

Roy



  ----- Original Message ----- 
  From: markumansky 
  To: equismetastock@xxxxxxxxxxxxxxx 
  Sent: Saturday, September 29, 2007 8:16 PM
  Subject: [EquisMetaStock Group] Re: Support & Resistant Formula


  Thanks Roy, The #3 seems to work best for me. For the sake of
  simplicity is also possible see the line values for each line on the
  left side of each line?

  Thanks in advance!

  --- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxx> wrote:
  >
  > Hi Preston
  > 
  > 
  > Just a thought on this one. Unless the last bar indicator is plotted
  with a heavy weight it will be virtually invisible. Selecting it when
  it can't be seen is also a problem. Another way to go might be
  generate X several bars prior to the last bar (easy to do as you'll
  already know), and use the earlier signal with ValueWhen() to plot the
  LastValue() of support and resistance for several bars rather than
  just the one bar.
  > Like this perhaps.
  > 
  > {Pivot Points #2}
  > 
  > R#2:=((H+L+C)/3) - (2*((H+L+C)/3) - H) +
  > (2*((H+L+C)/3) - L);
  > R#1:=2*((H+L+C)/3) - L;
  > S#1:=2*((H+L+C)/3) - H;
  > PP:=(H+L+C)/3;
  > S#2:=((H+L+C)/3) - (((2*((H+L+C)/3) -
  > L)-(2*((H+L+C)/3) - H)));
  > X:= Cum(1)=LastValue(Cum(1))-10; 
  > ValueWhen(1,X,LastValue(R#2));
  > ValueWhen(1,X,LastValue(R#1));
  > ValueWhen(1,X,LastValue(PP));
  > ValueWhen(1,X,LastValue(S#1));
  > ValueWhen(1,X,LastValue(S#2));{end}
  > 
  > The indicator is visible without needing to have the weight changed
  of each plot changed.
  > 
  > As far as color etc. goes, an easy way to ensure that an indicator
  gets the wanted color, style and weight as soon as it's first dropped
  down onto a chart is to include an Input() function in the formula.
  Inserting an Input() function in this case could also serve to set the
  number of bars plotted.
  > 
  > {Pivot Points #3}
  > 
  > N:=Input("Bars to plot",1,101,10)-1;
  > R#2:=((H+L+C)/3) - (2*((H+L+C)/3) - H) +
  > (2*((H+L+C)/3) - L);
  > R#1:=2*((H+L+C)/3) - L;
  > S#1:=2*((H+L+C)/3) - H;
  > PP:=(H+L+C)/3;
  > S#2:=((H+L+C)/3) - (((2*((H+L+C)/3) -
  > L)-(2*((H+L+C)/3) - H)));
  > X:= Cum(1)=LastValue(Cum(1))-N; 
  > ValueWhen(1,X,LastValue(R#2));
  > ValueWhen(1,X,LastValue(R#1));
  > ValueWhen(1,X,LastValue(PP));
  > ValueWhen(1,X,LastValue(S#1));
  > ValueWhen(1,X,LastValue(S#2));{end}
  > 
  > As the indicator is pulled down onto a chart there's an opportunity
  to change not only the Input() value for bars to plot but also select
  a common colour, style and weight for all plots.
  > 
  > 
  > Regards
  > 
  > Roy
  > 
  > 
  > ----- Original Message ----- 
  > From: pumrysh 
  > To: equismetastock@xxxxxxxxxxxxxxx 
  > Sent: Saturday, September 29, 2007 3:23 PM
  > Subject: [EquisMetaStock Group] Re: Support & Resistant Formula
  > 
  > 
  > Mark,
  > 
  > This should do the trick.
  > 
  > Preston
  > 
  > {Pivot Points}
  > 
  > R#2:=((H+L+C)/3) - (2*((H+L+C)/3) - H) +
  > (2*((H+L+C)/3) - L);
  > R#1:=2*((H+L+C)/3) - L;
  > S#1:=2*((H+L+C)/3) - H;
  > PP:=(H+L+C)/3;
  > S#2:=((H+L+C)/3) - (((2*((H+L+C)/3) -
  > L)-(2*((H+L+C)/3) - H)));
  > X:= Cum(1)=LastValue(Cum(1)); 
  > ValueWhen(1,X,R#2);
  > ValueWhen(1,X,R#1);
  > ValueWhen(1,X,PP);
  > ValueWhen(1,X,S#1);
  > ValueWhen(1,X,S#2);{end}
  > 
  > --- In equismetastock@xxxxxxxxxxxxxxx, markumansky <no_reply@> 
  > wrote:
  > >
  > > Is it possible to adapt the formula that it only shows the current 
  > bar
  > > points, instead of all of the past one too? This would reduce the
  > > clutter on the chart.
  > > 
  > > 
  > > --- In equismetastock@xxxxxxxxxxxxxxx, pumrysh <no_reply@> wrote:
  > > >
  > > > http://trader.online.pl/MSZ/e-w-Pivot_Points.html
  > > > 
  > > > 
  > > > --- In equismetastock@xxxxxxxxxxxxxxx, Danny Rianto 
  > > > <dannyrianto01@> wrote:
  > > > >
  > > > > Anybody has Support & Resistant Formula...
  > > > > 
  > > > > (S1, S2, S3, Pivol, R1, R2, R3).
  > > > > 
  > > > > This formula will be vary valuable for day trader as guide 
  > > > price....
  > > > > 
  > > > > Appreciate for your help
  > > > > 
  > > > > Danny
  > > > > 
  > > > > 
  > > > > ________________________________________________________ 
  > > > > Bergabunglah dengan orang-orang yang berwawasan, di di bidang 
  > > > Anda! Kunjungi Yahoo! Answers saat ini juga di 
  > > > http://id.answers.yahoo.com/
  > > > > 
  > > > > [Non-text portions of this message have been removed]
  > > > >
  > > >
  > >
  > 
  > 
  > 
  > 
  > 
  > __________ NOD32 2559 (20070929) Information __________
  > 
  > This message was checked by NOD32 antivirus system.
  > http://www.eset.com
  > 
  > 
  > [Non-text portions of this message have been removed]
  >



   

  __________ NOD32 2559 (20070929) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/