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

Help turning a function into a system trigger.



PureBytes Links

Trading Reference Links

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


{KPermFunction}

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

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



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

I have:  

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

Condition1 = PermLong = True;
Condition2 = PermShort = True;

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

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

Thanks,

Vince