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

[Metastockusers] Re: Writing an Indicator



PureBytes Links

Trading Reference Links

Are you using end of day data or intraday? In EOD you should see 
seven lines if plotted on the price chart and merged with scale

--- In Metastockusers@xxxxxxxxxxxxxxx, Debra Ann Petitan 
<DrDAP@xxxx> wrote:
> Hi Henry,
> I copied the formula and only one horizontal line shows up on my 
chart.  I entered the data within the parameters and nothing other 
than showed up.  Is my understanding correct to expect to see 3 
lines with the numerical data filled in?  The right scale changed 
but I don't know what it is indicating.  I was not the current 
prices.  Any clarifacation would help.  
> Thank you,
> Debra Ann
> 
> --- "Henry Z Kaczmarczyk" <henry1224@xxxx> wrote:
> >--- In Metastockusers@xxxxxxxxxxxxxxx, "mickie_pitts" 
> ><jaguarvp@xxxx> wrote:
> >> I am a newbee with Metastcok and am trying to write:
> >> 
> >> When I get into a position, I would like to have a popup box 
come 
> >up 
> >> to ask:
> >> 1. Price Entered?
> >> 2. Long or Short?
> >> 
> >> Then I would like to display a horzional line on the chart at 
that 
> >> price and, if long display five additional lines at 10% 
intervals 
> >> higher than the entered price.  And one line 5% below the 
entered 
> >> price.
> >> 
> >> Am I dreaming or can this be donw.
> >> Thanks for all your help.
> >> Jaguar
> >
> >I think this formula is what you are looking for
> >
> >A1:=Input("date mmddyyyy",1011960,12312100,1072000);
> >LS:=Input("Long=1 Short=2",1,2,1);
> >EPR:=Input("Entry Price",.001,100000,20);
> >PA:=If(LS<>0,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000 
+ 
> >Year(),EPR),0);
> >Stop:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()
*10000+ 
> >Year(),EPR*.95),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()
*10000+ 
> >Year(),EPR*1.05));
> >PB:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*1.1),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*.9));
> >PC:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*1.2),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*.8));
> >PD:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*1.3),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*.7));
> >PE:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*1.4),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*.6));
> >PF:=If(LS=1,ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*1.5),ValueWhen(1,A1=Month()*1000000 + DayOfMonth()*10000+ 
Year
> >(),EPR*.5));
> >Stop;PA;PB;PC;PD;PE;PF;
> >
> >Enter the date of entry in MMDDYYYY format
> >Enter the entry price
> >Enter long or short
> >Merge with scale
> >
> >
> >
> >To unsubscribe from this group, send an email to:
> >Metastockusers-unsubscribe@xxxxxxxxxxx
> >
> > 
> >
> >Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/
> 
> _____________________________________________________________
> Calling all cartoon fans! 
> 
> Garfield keeps millions of newspaper readers laughing over their 
morning corn flakes...now he's waddling into cyberspace to spread 
his mirth (and girth)!
> 
> You can now get the full-color Garfield comic strip e-mailed to 
you every day of the week -- absolutely FREE! Just go to 
http://www.garfield.com/signup/ to register!


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx

 

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