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

[RT] ~ babes in the wood :(



PureBytes Links

Trading Reference Links

Hi All:

A friend of mine sent the following e-mail to me.

Not being a programmer in Easy Language, I'm unable to make much headway.

I would appreciate any help from fellow members.

Thanks in advance!


Regards,

Wong

ps:  If possible, please reply to him as well (tabanna@xxxxxxxxxxxxxxx)
=====================================
<< from my friend >>

Hello, Hin Shing ~ howzitgoing :)

 ~ I really don't know what I am doing . . . just wasting my time, I
suppose . . . I spent several hours editing out a text file of Nikkei 225
Index data, chopping off the 19's from Jan 1989 to Dec 1999

I decided to test on my old SuperCharts version 2.0
, Mark Brown's, or probably Ned Davis simple idea :-

You are always either Long, or, Short.
If Long, you reverse position if price drops 5% below the highest point,
since entry.

Is Short, you reverse position, if price rises 3.5% above lowest point
since entry.
........................................................

Big Dummy, me, I tried to turn this into EasyLanguage, put I can NOT
initialize the system . . . No trades are generated :(

I wonder, if, when you have a moment, you could be so kind to have a look,
and see what it needs, to make the system run ?

Here it is  :-
_______________

{Nikkei 225 System 001020 } 
 
H<>H then begin end ; 
 
 
 Inputs:BuyFct(1.035),SellFct(0.95); 
 
 { If MarketPosition=0 and C> Average(C,21)  
then Buy Next Bar at Market; 
If MarketPosition=0 and C< Average(C,21)  
then Sell Next Bar at Market; } 
{{ Hmm ~ this does not work, Hin Shing ! }} 
 
If CurrentDate=890218 then Buy at Market ; 
{{ Neither does this . . . ?? How can I get this INITialized ?? }} 
 
If MarketPosition = 1  
and C <= highest((high),BarsSinceEntry(0))*SellFct 
 
then ExitLong Next Bar at Market ; 
 
 
If MarketPosition =-1  
 
and C >= lowest((low),BarsSinceEntry(0))*BuyFct 
 
 then ExitShort  Next Bar at Market ; 
 
If L<>L 
_________________________________________________________________

Hope all goes well with you, and you are getting your 'puter to do what
you want !

best wishes

 --
____________
sent on Linux
____________

This Email is 100% Virus Free!
How do I know? ~ Because no Microsoft 
products were used to generate it!





-------------------------- eGroups Sponsor -------------------------~-~>
eLerts
It's Easy. It's Fun. Best of All, it's Free!
http://click.egroups.com/1/9699/0/_/152424/_/972376278/
---------------------------------------------------------------------_->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxx