Metastock Indicator Formula |
TRAILING STOP LOSS FORMULA SHORT |
SEE EXPLANATIONS AT THE TRAILING STOP LOSS FORMULA LONG |
Formula: |
PDay := Input("Day of Month" ,1,31,1);
PMonth := Input("Month" ,1,12,1);
PYear := Input("Year",2000,2010,2006);
TM:=Input("PRICE:",0,15000,1);
TSE1 := BarsSince(DayOfMonth() = PDay AND Month() = PMonth AND Year() = PYear);
TSE2 := LowestSince(1,TSE1=0,C) ;
TSE3 := TSE2+TSE2*25/100;
TSE4:=LowestSince(1 ,TSE1 = 0,TSE3 );
If(TSE1=0,TM+(TM*25/100),Min(TM+(TM*25/100),TSE4)); |
|
|