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

[EquisMetaStock Group] Latch Code Question


  • Date: Fri, 12 Mar 2010 09:21:33 -0000
  • From: "skypilot_jw" <jweidner@xxxxxxxxxx>
  • Subject: [EquisMetaStock Group] Latch Code Question

PureBytes Links

Trading Reference Links

I use MS 9.0 EOD and have set up an expert with the usual buy and sell latch parameters of:

set:= buy formula;
reset:= exit formula;
init:=Cum(set+reset>-1)=1;
trade:=BarsSince(init OR set)<BarsSince(init OR reset);
trade
AND Alert(trade=0,2)

I also use the same code in the explorer to find securities which have triggered.

My question is this.
When my expert triggers a buy signal, I place a buy order for the next day based on the high of the triggered signal.  If the market price the next day does not exceed the high, then my buy order is not executed.  However, the code has latched the security and will not reset until the latch code triggers the exit formula (Close below 21 EMA for example).   After the market close when I run another exploration, the same security will not appear on the explorer report because it is stll latched (has met the entry formula but hasn't triggered the exit formula).  Is there a way to code it so that when a security triggers a buy, and the following day's high is lower than the previous day's high, the latch exits and will re-latch when the buy formula is met again.

Thanks for your help with this.   



------------------------------------

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:
    equismetastock-digest@xxxxxxxxxxxxxxx 
    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/