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

RE: [Metastockusers] Writing code for "the first time an event happens"


  • To: Metastockusers@xxxxxxxxxxxxxxx
  • Subject: RE: [Metastockusers] Writing code for "the first time an event happens"
  • From: Philip <pschmi02@xxxxxxxxxxx>
  • Date: Fri, 5 Dec 2003 12:31:44 -0800
  • In-reply-to: <6.0.1.1.0.20031205012740.01bb88d8@xxxxxxxxxxxxxxx>

PureBytes Links

Trading Reference Links

Thanks, Mike, your explanations are great! I don't always do as good a job 
of communicating these things clearly, but when I posted originally I was 
trying to find a way to run an exploration for an event which has occurred 
for the first time. More specifically, the first retracement in a trend, 
regardless of how the trend (or the retracement) is defined.

In the past, I've simply created an indicator and then "called" it in the 
symbol or highlight section of an expert. So I would have written something 
like:

Fml( "Trenddefinition") and Fml("Retracement") . . . and then chosen a buy 
arrow or some such. When both obtain I get my signal. Wouldn't that give me 
the same result as the code you and metarockx have written? But now I'm 
trying to isolate that first retracement and explore for that first event 
alone -- and I'm stumped.

In terms of watching the way price moves, it seems that the first 
retracement after a trend kicks in has a better chance of leading to a 
profitable trade than later retracements. I'm still at the "hunch" stage 
about this, but I'd like to investigate further. So how do I nail (i.e. 
explore for) that first retracement? Say my trend definition has been true 
since October 1, 2003 (or even just since yesterday, for that matter) and 
today, for the first time, my retracement definition is met. Using your 
.jpg as an example, I'd like to run an exploration that would identify only 
such retracements as the one signal both you and metarockx have identified 
early in July -- the first signal of its kind after the trend definition 
has kicked in.

I'm afraid I didn't do a good job of expressing this in my initial post.

Philip
   


------------------------ 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/mOAaAA/3exGAA/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/