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

[EquisMetaStock Group] Re: Stops & signals



PureBytes Links

Trading Reference Links


Hi Tan Ming,

I saw the previous post and did not reply - this is simple enough to
try on your own yet not entirely clear to me, so I just give some kind
of an outline for you to use.  It depends on how you want to define
'today's price'

Enter long is something like

TodaysPrice := Close; {Change to whatever applies, or use Input}
TickSize    := 0.01;  {Also, change to what applies or use Input}
EnterLong   := TodaysPrice >= Ref( H, -1 ) + TickSize;

Stop is something like

StopLevel := ( EnterLong > 0 ) * ( Low - TickSize );
ExitLong  := TodaysPrice <= StopLevel;

You will have to add some stuff to keep a long position open and to
monitor the stop level once in, but I am not exactly clear on how this
will apply the next day, so I leave it to you to implement.

Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://www.ferra4models.com
http://fun.ferra4models.com


--- In equismetastock@xxxxxxxxxxxxxxx, "tan ming"
<reminiscenostalgia@xxxx> wrote:
> 
> Hi MG Ferreira,
> 
> I am trying to program MS to long if (1) today's price crosses
yesterday's
> high by one tick & (2) have a stop below today's low if filled. Can
anyone
> knows to do it? Tks.
> 
> Kind Regards.
> 
> _________________________________________________________________
> Get your mobile ringtones, operator logos and picture messages from MSN 
> Mobile http://msn.smsfactory.no/





------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

<*> 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/