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

[RT] Re: The perfect stop



PureBytes Links

Trading Reference Links

I'm not sure if this is about right or not but I think that it is. You have
to enter the price of your stop which is the input CurntStop. Also, I use a
function called AV for absolute value you can just type in absolute value
where it says AV. Here is the code for TS 4.0.

Prosper

Inputs: CurntStp(0);
Vars: vol3(0), vol5(0), vol8(0), IncreaseInVol(0),
PctIncrease(0),NewStop(0), DecreaseInVol(0), PctDecrease(0);

Vol3 = Volatility(3);
Vol5 =  Volatility(5);
Vol8 =  Iff(Volatility(8)>0,Volatility(8),1);

If currentbar>9 then begin
IncreaseInVol = Vol3 - Vol8;
PctIncrease = IncreaseInVol / Vol8;

If Vol3 Crosses Above Vol5 And
   Vol3 > Vol8 Then
    NewStop = CurntStp - (AV(C-CurntStp) * PctIncrease);

DecreaseInVol = Vol8 - Vol3;
PctDecrease = DecreaseInVol / Vol8;

If Vol3 Crosses Below Vol5 And
   Vol3 < Vol8 Then
    NewStop = CurntStp + (AV(C-CurntStp) * PctDecrease);

Plot1(NewStop,"NewStop");
end



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Small business owners...
Tell us what you think!
http://us.click.yahoo.com/vO1FAB/txzCAA/ySSFAA/zMEolB/TM
---------------------------------------------------------------------~->

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

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/