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

Re: "First trigger then signal"



PureBytes Links

Trading Reference Links

One way is to use the mro function
I have found it pays to plot mro's as a showme to see exactly what they are
doing.
Attached is some ela code I hope may help.
{ System  TriggerSignal  TS4quickeditor }
Input: La(10),Ha(10),mrolen(3),Price(Close),LStren(2),RStren(1),Len(3);
IF MRO(Low < Average(Low,La),mrolen,1)>-1 and PivL=1 and
MarketPosition(0)=-1 or (MarketPosition(0)=0 and MarketPosition(1)<>1)
 Then Buy at Market;
IF LastBarOnChart Then ExitLong on Close;
IF MRO(High > Average(High,Ha),mrolen,1)>-1 and PivH=1 and
MarketPosition(0)=1 or (MarketPosition(0)=0 and MarketPosition(1)<>-1) Then
Sell at Market;
IF LastBarOnChart Then ExitShort on Close;


-----Original Message-----
From: Kamil Soliman <Kamil.Soliman@xxxxxxxxxxxxxxxxx>
To: Omega-List@xxxxxxxxxx <Omega-List@xxxxxxxxxx>
Date: Monday, November 13, 2000 2:07 AM
Subject: "First trigger then signal"

>Does anyone know how to code this down?:
>After a certain condition, wait N days then if next
>condition occurs plot buy/sell signal.
>I work in SC4.0.
>Thanks in advance.
>Kamil



Attachment: Description: "Trig-sig.ela"