Tradecision Talks
May 23, 2013, 01:30:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Volatility Stop  (Read 3987 times)
nick2112
Jr. Member
**
Posts: 6


« on: May 31, 2007, 08:43:30 AM »

Does anyone have or know how to code the Volatility Stop please.

many thanks.

Nick
Logged
AlexG
Sr. Member
****
Posts: 16


« Reply #1 on: May 31, 2007, 03:52:01 PM »

Please let us know what exactly you would like to code (some description and Easy Language or MetaStock code). Our Improvian mavens will do it for you: www.tradecision.com/support/improvian_consulting.htm
Logged
nick2112
Jr. Member
**
Posts: 6


« Reply #2 on: May 31, 2007, 08:07:21 PM »

That would be fantastic, thanks. I have looked at many software packages over the years and very few seem to have the Volatility Stop available. Tradecision offers soooo much, and I feel this would just put the icing on the cake. Dont want to push my luck, but do you think Pyrapoint would be possible?

Here the VS code (TradeStation) including Zig Zag:

inputs :ATRlength(9),ATRfactor(2.5),trounup(close),troundow(close),lastpivoth(c),lastpivotl(c),grosuraswing(1),cor(red);

vars :lasthigh(high), tend(0),lastlow(low),numbars(0),DERIVADA(0),FACTORDEREVERSAO(0),
   numbarslast(0),swing(0);

numbars=1+numbars;
FACTORDEREVERSAO=ATRfactor*XAverage(TrueRange,ATRlength)[1];
{ plot2(numbars,"duracao");plot3(amplitud,"Amplitud");PLOT4(DERIVADA,"DERIVADA");   }

IF tend <>1  and  trounup > lastlow+FACTORDEREVERSAO   THEN    
   BEGIN
   alert(" up");
      numbars=numbarslast+1;lasthigh=lastpivoth;
      swing=TL_New(date[numbars],time[numbars],low[numbars], Date, Time, high);TL_SetSize(swing, grosuraswing);TL_SetColor(swing, cor);
      numbarslast=-1;tend=1;PLOT3 (lastlow+FACTORDEREVERSAO,"QUEBRAACI",black);
   END;
IF tend <>-1  AND troundow < lasthigh-FACTORDEREVERSAO THEN
   BEGIN
       alert(" down");
   numbars=numbarslast+1;lastlow=lastpivotl;
       swing=TL_New(date[numbars],time[numbars],high[numbars], Date, Time, low);TL_SetSize(swing, grosuraswing);TL_SetColor(swing, cor);
       numbarslast=-1;tend=-1;PLOT4(lasthigh-FACTORDEREVERSAO,"QUEBRAAB",black);
   END;
if tend=-1 then begin if lastlow > lastpivotl then begin lastlow=lastpivotl;lasthigh=lastpivoth;
                              numbarslast=0;TL_SetEnd(swing,date,time,low);
                               end
                                               else begin numbarslast=numbarslast+1;end;
            end;
if tend= 1 then begin if lasthigh < lastpivoth then begin lasthigh=lastpivoth; lastlow=lastpivotl;
                          numbarslast=0;TL_SetEnd(swing,date,time,high);
                        end
                           else begin numbarslast=numbarslast+1;end;
            end;
if tend=-1 then begin PLOT3 (lastlow+FACTORDEREVERSAO,"QUEBRAACI");
                    end;
if tend=1  then begin PLOT4(lasthigh-FACTORDEREVERSAO,"QUEBRAAB");
                  end;
Logged
Tradecision Support Team
Hero Member
*****
Posts: 336


« Reply #3 on: June 01, 2007, 03:35:25 AM »

Unfortunately, it’s not possible to fashion the technique using Improvian Language as the provided Volatility Stop code plots some lines on charts. In Tradecision such techniques are implemented in Analytical Studies (Insert > Analytical Study, for example, Auto-Trends, Pivots, Patterns, Elliot Waves). They are hard-coded and so included in Tradecision without the ability to change its code by the end-user.
Logged
nick2112
Jr. Member
**
Posts: 6


« Reply #4 on: June 02, 2007, 10:42:35 AM »

I notice on the website you mention it is possible to translate from Metastock into Tradecision. Below is the link to a Metastock Volatility Stop. Would this be possible please? many thanks for your time and help.

Nick

  http://trader.online.pl/MSZ/e-w-Volatility_Stop_by_Chande_Kroll.html

Logged
AlexG
Sr. Member
****
Posts: 16


« Reply #5 on: June 04, 2007, 02:33:36 PM »

Nick,

you can paste MS code from clipboard to Improvian Editor.

Please also refer to Improvian_Guide.pdf located on your PC: c:\Program Files\Alyuda Tradecision\Help\. Page 105: Problems Relating to Translation from MetaStock© into Improvian.



* MSpaste.jpg (44.05 KB, 329x273 - viewed 630 times.)
« Last Edit: June 04, 2007, 02:37:11 PM by AlexG » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!