PureBytes Links
Trading Reference Links
|
Adan, before you go and tear your hair out with this problem, try an
easier solution:
http://www.metastocktools.com/#metastock
"Std trailing stop" link.
Replace entrySignal & exitSignal code in "Trailing Stop - AdvTrailStop
plug-in" with your own entry & exit code.
AdvancedStop.dll by Richard Dale, free from:
http://www.tradernexus.com/advancedstop/advancedstop.html
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, Adan Willemse <adan.willemse@xx
..> wrote:
> Hi,
>
> I hope you can help me...
>
> I have been playing around with a Prev-based MAE Stop but cannot
> seem to get it right!
>
> I am using one of Metastock 9 EOD's built in Entries to enter and
> then want to exit if the Low retraces 5% or more from my entry point
> or if I get a signal in the opposite direction (Short Sell).
> All trades are executed the following morning at Open, after the
> signal hes been received.
>
>
> The code:
> LBuy:=ForecastOsc(C,14)<0 AND
> Cross(ForecastOsc(C,14),Mov(ForecastOsc(C,14),3,S));
> SSell:=ForecastOsc(C,14)>0 AND
> Cross(Mov(ForecastOsc(C,14),3,S),ForecastOsc(C,14));
>
> LongStop:=
> If(PREV=0,
> If(Ref(Lbuy,-1),(0.95*O),0),
> If(L<=0.95*PREV OR Ref(SSell,-1),0,PREV));
> {Exit When}
> LongStop;
>
>
> Please refer to attached screenshot to understand my questions:
>
> 1. Blue Circle 1: Why does the Stop execute on the 17th (I would
> expect it to execute on the 18th)?
> 2. Blue Circle 2 and 3: Why is the Stop Level penetrated on the 7th,
> 8th and 14th through 16th without triggering the Stop?
> 3. Blue Circle 3: Repeat of problem 1.
>
> I have been staring at this for an hour and cannot seem to find the
> flaw!
>
> Please help.
>
> Regards,
>
> Adan Willemse
>
> PS: I have checked that the scaling is correct.
------------------------ 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/
|