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

[EquisMetaStock Group] Need some help, again.



PureBytes Links

Trading Reference Links

Trading the ES mini, I'd like to go long with:

Fml( "Rahul Mohindar Osc (RMO)")>=0
AND
Fml( "SwingTrd 2")> Fml( "SwingTrd 3")
AND
Fml( "SwingTrd 2")>0
AND
AroonUp(10)>=70
AND
AroonDown(10)>=70

But, I'd like to set a profit target of 1/2 an ES point ($25) from the time at which the signal occurs. I'd like the coding to allow for the same bar to buy and sell, if possible. Then, I'd like it to reset to allow the next bar to do the same, if the same long entry conditions still exist.

I went to Equis Forum and typed in "Profit Targets", and in post #22268 they came with:

{variable a7 is the initial stop loss set at "a couple of ticks" below the low of the bar preceding the entry signal} 
a5:=(Fml("Rahul Mohindar Osc (RMO)") > 0) AND
     (Fml("SwingTrd 2")>0) AND
     (Fml("SwingTrd 2")>Fml("SwingTrd 3")); 
 a6:=a5=1 AND Ref(a5,-1)=0;
 a7:=ValueWhen(1,a6,Ref(LOW,-1)-0.25);

I understand that a5: is the long entry.
Then a6 states that a5 is condition 1, while the bar before the a5 condition existed is condition 0.
a7 then reads references the low of a6 and subtracts off .25.

How do I adapt this to a profit target, rather than a stop loss?
Set it up, such that a5 is my entry signal, as shown above.
Then, the a6 condition gets me, because I don't want to reference one bar ago, but reference the same bar I may be in or the entry price + .5 (1/2 ES point)

Help if you can.

Thanks.





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

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/