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

Re: Help turning a function into a system trigger.



PureBytes Links

Trading Reference Links

Hello  VBatla,

Thursday, February 03, 2000, 8:38:52 AM, you wrote:

Vac> I'm trying to turn the following function into two conditions.


Vac> {KPermFunction}

Vac> Input: Length( 9 ) , X( 5 )  , Multx (5) ;

Vac> Plot1(K.XPermLong( LENGTH,X , MultX ) , "PermLong" ) ;
Vac> Plot2(K.XPermShort( LENGTH,X , MultX ) , "PermShort" ) ;



Vac> 1. To buy when PermLong is true.
Vac> 2.  Sell when PermShort is true.

Vac> I have:  

Vac> Input: Length( 9 ) , X( 5 )  , Multx (5), PermLong(false), PermShort(False);

Vac> Condition1 = PermLong = True;
Vac> Condition2 = PermShort = True;

Vac> If Condition1 then buy next bar open stop;
Vac> If Condition2 then sell next bar open stop;

Vac> This isn't quite right and would appreciate any help.

Vac> Thanks,

Vac> Vince


Input: length(9),x(5),buyzone(25),sellzone(75);
IF PermissionK(LENGTH,X)crosses above  buyzone Then Buy ;
IF PermissionK(LENGTH,X)crosses over sellzone Then ExitLong ;
IF PermissionK(LENGTH,X)crosses below sellzone Then Sell ;
IF PermissionK(LENGTH,X)crosses above buyzone Then ExitShort;


Input:length(12),x(3),buyzone(40),sellzone(90);

IF PermissionK(LENGTH,X)crosses over  buyzone Then Buy on Close;
IF PermissionK(LENGTH,X)crosses over sellzone Then ExitLong on Close;
IF PermissionK(LENGTH,X)crosses under sellzone Then Sell on Close;
IF PermissionK(LENGTH,X)crosses under buyzone Then ExitShort on Close;


Input:k(9),av(4),sz(79),bz(21);
VARS:MSI(0);
MSI=PermissionK(k, av);
if MSI crosses below sz then buy;
if MSI crosses above bz then sell;

Input:k(9),av(5),Thold(29);
VARS:MSI(0);
MSI=PermissionK(k, av);
if MSI crosses above 50 -thold then sell;
if MSI crosses above 50+thold then buy;




--
Best regards,
  Mark Brown                        mailto:markbrown@xxxxxxxxxxxxx