PureBytes Links
Trading Reference Links
|
Hi there,
This is my second reply, I replied earlier and it seems that
reply is missing. Could be my mistake, but if this later on
appears twice, ignore at your option any one!
Below I give a much simpler version of what I gather you are
trying to do. What I find strange is that you go long when
the CCI falls below the moving average or signal line, normally
you would use it the other way around. Anyhow, if you want
to go long when the CCI rises above the signal, just swap the
two around.
Regards
MG Ferreira
TsaTsa EOD Programmer and trading model builder
http://tsatsaeod.ferra4models.com
http://www.ferra4models.com
Enter long when CCI falls below signal line?:
cross( mov( cci( opt1 ), opt2, E ), cci( opt1 ) )
Enter short when CCI rises above signal line?:
cross( cci( opt1 ), mov( cci( opt1 ), opt2, E ) )
--- In equismetastock@xxxxxxxxxxxxxxx, "aaapittsburgh"
<aaapittsburgh@xxxx> wrote:
>
>
> I'm new to Metastock and I found a CCI system on the trader.online.pl
> site, but I seem to have a problem with it. For some reason, it only
> gives me long signals, and no short signals. The code is:
>
> Enter Long:
>
> When( CCI( opt1 ) ,< ,Mov( CCI( opt1 ) ,opt2 ,E ) ) AND
> When( Ref( CCI(opt1),-1) ,>= ,Ref( Mov( CCI( opt1 ) ,opt2 ,E ) ,-1 ) )
>
> Enter Short:
>
> When( CCI( opt1 ) ,> ,Mov( CCI( opt1 ) ,opt2 ,E ) ) AND
> When( Ref( CCI(opt1),-1) ,<= ,Ref( Mov( CCI( opt1 ) ,opt2 ,E ) ,-1 ) )
>
>
> Optimization Variables:
>
> Opt1:
> Min = 5 Max = 40 Step = 1
>
> Opt2:
> Min = 5 Max = 40 Step = 1
>
> Any help with this would be greatly appreciated.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/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/
|