PriceActionSwing discussion (Page 23) - NinjaTrader | futures.io
futures.io futures trading
 

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader


PriceActionSwing discussion
Started:November 23rd, 2009 (11:23 AM) by dorschden Views / Replies:392,100 / 1,345
Last Reply:Yesterday (10:10 PM) Attachments:423

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike
     

Reply
 423  
 
Thread Tools Search this Thread

PriceActionSwing discussion

Old June 13th, 2011, 09:44 PM   #221 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,541 since Jun 2009
Thanks: 28,884 given, 80,128 received

Tip


Harmonic and Pattern Traders might want to join the Suri Duddella webinar tomorrow, Tue 14th @ 4:30pm Eastern:

https://futures.io/feedback-announcements/11072-big-mike-trading-2-year-anniversary-prizes-webinars-5.html#post126348

Ten autographed copies of his book will be given away during the webinar. You can also submit your questions and be part of the Q&A.

If you miss the webinar, it will be posted in our usual webinar archives section:
Trading Webinars, Trading Videos - Big Mike Trading Forum




Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
     
The following user says Thank You to Big Mike for this post:
     

Old June 16th, 2011, 03:37 PM   #222 (permalink)
Elite Member
California - USA/Rio grande do sul-Brasil.
 
Futures Experience: Intermediate
Platform: tradestation, ninja trader
Favorite Futures: Futuros
 
Posts: 88 since Apr 2011
Thanks: 851 given, 23 received

Price Action for TS

Hello,
I don't know if in some where of this forum we have this, but, was this Indicator also made for Trade Station?

Thanks for the information.
Felix Trader

PS: I installed it on NT and works pretty well, but I've started to have freezing and its very stressfull, thats why I've asked about TS. Nt told me that some indicators might be causing this problems, I have the pivot zonez dayly v31, weekly v33, the scalper and some that the platform provides, not 3rd party, they also asked me that I modifed some set up on chart properties (display up date inverval, from 05 sec to 1sec), also that the indicators be set up on Calculate Bar on Close to true.

Reply With Quote
     

Old June 16th, 2011, 10:29 PM   #223 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,541 since Jun 2009
Thanks: 28,884 given, 80,128 received



Felix trader View Post
Hello,
I don't know if in some where of this forum we have this, but, was this Indicator also made for Trade Station?

The closest thing I know of I have attached here, for MultiCharts and TradeStation. Shown in top panel of my screen shot, it draws harmonic patterns and retracements.

I'm unsure of the original author.

 
Code
			
// Pesavento Pattern

//


Inputs:
// Parameters for ZigZag.

depth(12),
ExtDeviation(5),
ExtBackstep(3),
zigzagLinesColor(blue),

// Parameters for Pesavento Patterns.
 
 
ExtFractalEnd(7),  // Number of Fractals (maximums and minimums), connected with Lines
 
ExtDelta     (0.04),  // max Percent of difference from Pessavento numbers
 
ExtLine      (DarkBlue),
 
ExtLine886   (lightgray),
 
ExtNotFibo   (darkgray),
 
ExtPesavento (Yellow),
 
ExtGartley886(Yellow);

//===================================

Vars:
bar_resolution(0),

ExtLine_(0),

colorPPattern(green),

num_bar(0),
HL(0),
HLp(0),
kk(0),
kj(0),
Angle(0),

LowPrim(0),
HighPrim(0),
LowLast(0),
HighLast(0),

numLowPrim(0),
numHighPrim(0),
numLowLast(0),
numHighLast(0),
    
k(0),
k1(0),
k2(0),
ki(0),
    
kiPRZ(0),
countLow1(0),
countHigh1(0),
    
shift(0),
shift1(0),
    
txtkk(""),

countFr(0),
countBarEnd(0),
numBar(0),


// For ZigZag

   
back(0),
   
lasthighpos(0),
   
lastlowpos(0),
   
res(0),
   
curlow(0),
   
curhigh(0),
   
lasthigh(0),
   
lastlow(0),
   
i_var(0),
   
j_var(0);



Arrays:

double zz[1000](0),
double zzL[1000](0),
double zzH[1000](0),
_time[1000](0),


number[64](0),
numbertxt[64](""),
numberGartley[64](0),
numberMix[64](0);


//---------------------------------------------------------------------//
//---------------------------------------------------------------------//
//---------------------------------------------------------------------//


if currentbar 1000 then num_bar 1000 else num_bar currentbar;


for 
i_var 0 to num_bar )
begin
_time
[i_var] = time_s[i_var];
end;


if ( 
LastCalcTime_s time_s ) and ( LastCalcDate date then

begin


if ( currentbar depth then

begin


   
if (ExtDelta<=0then raiseruntimeerror("ExtDelta parameter should be >0 and <=1");
   if (
ExtDelta>1then raiseruntimeerror("ExtDelta parameter should be >0 and <=1");
   
   if ( 
ExtFractalEnd <= then raiseruntimeerror("ExtFractalEnd parameter should be >=1");
   

   
number                [0]=0.111;
   
numbertxt             [0]=".111";

   
number                [1]=0.125;
   
numbertxt             [1]=".125";
   
numberMix             [1]=1;

   
number                [2]=0.146;
   
numbertxt             [2]=".146";

   
number                [3]=0.167;
   
numbertxt             [3]=".167";

   
number                [4]=0.177;
   
numbertxt             [4]=".177";

   
number                [5]=0.186;
   
numbertxt             [5]=".186";

   
number                [6]=0.192;
   
numbertxt             [6]=".192";

   
number                [7]=0.2;
   
numbertxt             [7]=".2";

   
number                [8]=0.236;
   
numbertxt             [8]=".236";
   
numberMix             [8]=1;

   
number                [9]=0.25;
   
numbertxt             [9]=".25";

   
number                [10]=0.3;
   
numbertxt             [10]=".3";

   
number                [11]=0.333;
   
numbertxt             [11]=".333";

   
number                [12]=0.354;
   
numbertxt             [12]=".354";

   
number                [13]=0.382;
   
numbertxt             [13]=".382";
   
numberGartley         [13]=1;

   
number                [14]=0.447;
   
numbertxt             [14]=".447";
   
numberGartley         [14]=1;

   
number                [15]=0.486;
   
numbertxt             [15]=".486";

   
number                [16]=0.5;
   
numbertxt             [16]=".5";
   
numberGartley         [16]=1;

   
number                [17]=0.526;
   
numbertxt             [17]=".526";

   
number                [18]=0.577;
   
numbertxt             [18]=".577";

   
number                [19]=0.618;
   
numbertxt             [19]=".618";
   
numberGartley         [19]=1;

   
number                [20]=0.667;
   
numbertxt             [20]=".667";

   
number                [21]=0.707;
   
numbertxt             [21]=".707";
   
numberGartley         [21]=1;

   
number                [22]=0.764;
   
numbertxt             [22]=".764";

   
number                [23]=0.786;
   
numbertxt             [23]=".786";
   
numberGartley         [23]=1;

   
number                [24]=0.809;
   
numbertxt             [24]=".809";

   
number                [25]=0.841;
   
numbertxt             [25]=".841";

   
number                [26]=0.854;
   
numbertxt             [26]=".854";
   
numberMix             [26]=1;

   
number                [27]=0.874;
   
numbertxt             [27]=".874";

   
number                [28]=0.886;
   
numbertxt             [28]=".886";
   
numberGartley         [28]=1;

   
number                [29]=1.0;
   
numbertxt             [29]="1.";
   
numberGartley         [29]=1;

   
number                [30]=1.128;
   
numbertxt             [30]="1.128";
   
numberGartley         [30]=1;

   
number                [31]=1.236;
   
numbertxt             [31]="1.236";

   
number                [32]=1.272;
   
numbertxt             [32]="1.272";
   
numberGartley         [32]=1;

   
number                [33]=1.309;
   
numbertxt             [33]="1.309";

   
number                [34]=1.414;
   
numbertxt             [34]="1.414";
   
numberGartley         [34]=1;

   
number                [35]=1.5;
   
numbertxt             [35]="1.5";


   
number                [36]=1.618;
   
numbertxt             [36]="1.618";
   
numberGartley         [36]=1;

   
number                [37]=1.732;
   
numbertxt             [37]="1.732";
   
numberMix             [37]=1;


   
number                [38]=1.75;
   
numbertxt             [38]="1.75";

   
number                [39]=1.902;
   
numbertxt             [39]="1.902";
   
numberMix             [39]=1;

   
number                [40]=2.0;
   
numbertxt             [40]="2.";
   
numberGartley         [40]=1;

   
number                [41]=2.058;
   
numbertxt             [41]="2.058";

   
number                [42]=2.236;
   
numbertxt             [42]="2.236";
   
numberGartley         [42]=1;

   
number                [43]=2.288;
   
numbertxt             [43]="2.288";

   
number                [44]=2.5;
   
numbertxt             [44]="2.5";

   
number                [45]=2.618;
   
numbertxt             [45]="2.618";
   
numberGartley         [45]=1;

   
number                [46]=2.828;
   
numbertxt             [46]="2.828";

   
number                [47]=3.0;

   
number                [48]=3.142;
   
numbertxt             [48]="3.142";
   
numberGartley         [48]=1;

   
number                [49]=3.236;
   
numbertxt             [49]="3.236";

   
number                [50]=3.33;
   
numbertxt             [50]="3.33";

   
number                [51]=3.464;
   
numbertxt             [51]="3.464";

   
number                [52]=3.618;
   
numbertxt             [52]="3.618";
   
numberGartley         [52]=1;

   
number                [53]=4.0;
   
numbertxt             [53]="4.";

   
number                [54]=4.236;
   
numbertxt             [54]="4.236";

   
number                [55]=4.472;
   
numbertxt             [55]="4.472";

   
number                [56]=5.0;
   
numbertxt             [56]="5.";

   
number                [57]=5.2;
   
numbertxt             [57]="5.2";

   
number                [58]=5.388;
   
numbertxt             [58]="5.388";

   
number                [59]=5.657;
   
numbertxt             [59]="5.657";

   
number                [60]=6.0;
   
numbertxt             [60]="6.";

   
number                [61]=6.854;
   
numbertxt             [61]="6.854";

   
number                [62]=8.0;
   
numbertxt             [62]="8.";

   
number                [63]=9.0;
   
numbertxt             [63]="9.";
  

value1 0
lasthighpos = -1;
lastlowpos = -1;
res 0;
curlow = -1;
curhigh = -1;
lasthigh = -1;
lastlow = -1;


//  ZigZag plotting. Begin.


         
for shift = ( num_bar downto 0
           begin
            zz
[shift] = 0
            
zzL[shift] = 0
            
zzH[shift] = 0;
           
end;
           
      for 
shift = ( num_bar depth downto 0
        begin
         value1 
LowLowestBar(lowdepth)[shift] ];
         if (
value1 lastlowthen value1 0.0
         
else 
           
begin 
             lastlow 
value1
            if ( ( 
Low[shift] - value1 ) > extdeviation*PointValue then value1 0.0
            
else
              
begin
               
for back 1 to extbackstep
                 begin
                  res 
zzL[shift+back];
                  if ( ( 
res <> ) and ( res value1 ) ) then zzL[shift+back] = 0.0
                 
end;
              
end;
           
end
          if ( 
Low[shift] = value1 then zzL[shift] = value1;

          
value1 HighHighestBar(highdepth)[shift] ];
          if ( 
value1 lasthigh then value1 0.0
          
else 
            
begin
             lasthigh 
value1;
             if ( ( 
value1 High[shift] ) > extdeviation*pointValue then value1 0.0
             
else
               
begin
                
for back 1 to extbackstep
                  begin
                   res 
zzH[shift+back];
                   if ( ( 
res <> ) and ( res value1 ) ) then zzH[shift+back] = 0.0
                  
end
               
end;
            
end;
          if ( 
High[shift] = value1 then zzH[shift] = value1;
        
end;

      
lasthigh = -1
      
lasthighpos = -1;
      
lastlow = -1;  
      
lastlowpos = -1;

      for 
shift = (num_bar depthdownto 0
        begin
         curlow 
zzL[shift];
         
curhigh zzH[shift];
         if ( ( 
curlow ) and ( curhigh ) ) then
         value1 
value1
         
else
         
begin

         
if ( curhigh <> then
           begin
            
if ( lasthigh then
              begin
                
if (lasthigh curhigh then zzH[lasthighpos] = 0
               
else zzH[shift] = 0;
              
end;

            if ( (
lasthigh curhigh) or (lasthigh 0) ) then
              begin
               lasthigh 
curhigh;
               
lasthighpos shift;
              
end;
            
lastlow = -1;
           
end;

         if ( 
curlow <> then
           begin
            
if ( lastlow then
              begin
               
if ( lastlow curlow then zzL[lastlowpos] = 0
               
else zzL[shift] = 0;
              
end;

            if ( ( 
curlow lastlow ) or ( lastlow ) ) then
              begin
               lastlow 
curlow;
               
lastlowpos shift;
              
end
            
lasthigh = -1;
           
end;
           
end;
        
end;
        
      for 
shift num_bar 1 downto 0
        begin
         zz
[shift] = zzL[shift];
         if ( 
shift >= num_bar-depth then
             begin
             zzH
[shift] = 0.0
             
zzL[shift] = 0.0
             
zz[shift]  = 0.0;
             
end
         
else
           
begin
            res 
zzH[shift];
            if ( 
res <> 0.0 then zz[shift] = res;              
           
end;
        
end;


// Check for humpbacks and their removing. Begin.

vars:  vel1(0), 
    
vel2(0),
    
vel3(0), 
    
vel4(0),
    
bar_(0),
    
bar1(0), 
    
bar2(0), 
    
bar3(0), 
    
bar4(0),
       
count_(0);
       
   for 
bar_ = ( num_bar depth downto 0
     begin
      
if ( zz[bar_] <> then
        begin
         count_ 
count_ 1;
         
vel4 vel3;
         
bar4 bar3;
         
vel3 vel2;
         
bar3 bar2;
         
vel2 vel1;
         
bar2 bar1;
         
vel1 zz[bar_];
         
bar1 bar_;
         if ( 
count_>=then
             begin 
            
if ( ( vel3 vel2 ) and ( vel2 vel1 ) ) then
                begin
                zz
[bar2] = 0;
                
zzL[bar2] = 0;
                
zzH[bar2] = 0;
                
bar_ bar3 1;
                
end;
             if ( ( 
vel3 vel2 ) and ( vel2 vel1 ) ) then
                 begin
                 zz
[bar2] = 0;
                 
zzL[bar2] = 0;
                 
zzH[bar2] = 0;
                 
bar_ bar3 1;
                 
end;
             if ( ( 
vel2 vel1 ) and ( vel1 <> ) ) then
                 begin
                 zz
[bar1] = 0;
                 
zzL[bar1] = 0;
                 
zzH[bar1] = 0;
                 
bar_ bar3 1;
                 
end;
             
end;
        
end;
    
end

// Check for humpbacks and their removing. End.


value1 0;

i_var 1;
while(
i_var 0)
begin
i_var 
tl_getfirst(1);
tl_delete(i_var);
end;
        

for 
shift = (num_bar 1downto 0
begin
if zz[shift] <> 0 then
    begin
    
if (value1 <> 0then 
        begin
        value11 
date[value2];
        
value12 time_s[value2];
        
value13 value1;
        
value21 date[shift];
        
value22 time_s[shift];
        
value23 zz[shift];  
        
        
j_var TL_new_s(value11value12value13value21value22value23);        
        
tl_setcolor(j_varzigzagLinesColor);    

        
end;
    
value1 zz[shift];
    
value2 shift
    
end;
end;

//  ZigZag plotting. End.


         
if ( ExtFractalEnd 0then
           begin
            k 
ExtFractalEnd;
            for 
shift 0 to num_bar 
              begin 
               
if ( zz[shift] > and zzH[shift] > then
                   begin 
                   
if 0 then
                   begin
                     countBarEnd 
shift
                     
1;
                     
end;
                     
end;
              
end;
           
end;


// count Fractal ( count maximums and minimums ). Begin.

   
countLow1 0;
   
countHigh1 0;
     
begin
      
for shift 0 to countBarEnd
        begin
         
if (zzL[shift] > 0.0then countLow1 countLow1 1;
         if (
zzH[shift] > 0.0then countHigh1 countHigh1 1;
        
end;
     
end;

// count Fractal ( count maximums and minimums ). End.


i_var 1;
while(
i_var 0)
begin
i_var 
text_getfirst(1);
text_delete(i_var);
end;

//+--------------------------------------------------------------------------+
//| printing Pessavento and 0.886 for maximums of ZigZag
//+--------------------------------------------------------------------------+

   
numLowPrim 0
   
numLowLast 0;
   
numHighPrim 0
   
numHighLast 0;

   
LowPrim 0.0
   
LowLast 0.0;
   
HighPrim 0.0
   
HighLast 0.0;

   
Angle = -100;
   
   
 
countFr ExtFractalend;

   for 
0 to num_bar )
   
begin
     
if ( countHigh1 and countFr then
     begin
      
      
if ( zzL[k] > 0.0 and ( zzL[k] < LowPrim or LowPrim 0.0 
                    and 
HighPrim and zzL[k] = zz[k] ) then
        begin
         LowPrim 
Low[k]; 
         
numLowPrim k;
        
end;
      if ( 
zzH[k] > 0.0 and zzH[k] = zz[k] ) then
        begin
         
if ( HighPrim then
           begin

            HighLast 
High[k];
            
numHighLast k;

            
HL HighLast LowPrim;
            
kj = (HighPrim-HighLast)*1000/(numHighLast-numHighPrim);
            if ( 
HL and ( Angle >= kj or Angle = -100 ) ) then
              begin
               Angle 
kj;

               
HLp HighPrim LowPrim;
               
k1 ceiling((numHighPrim+numHighLast)/2);
               
kj HLp/HL;
          
               
ExtLine_ ExtLine;
               if ( 
kj 0.1 and kj 9.36 then
                 begin
                  kk 
kj;
                  
k2 1;
        
                  
    
ki 0;
    
colorPPattern ExtNotFibo;
    
ki kiPRZ;
    
condition1 true;
    
while (
ki <= 63) and (condition1)
    
begin
       
if ( numberGartley[ki] > then
              
if ( absvalue((number[ki]-kj)/number[ki]) <= ExtDelta then
                  begin
                     kk 
number[ki]; 
                     
txtkk numbertxt[ki]; 
                     
k2 = -1
                     
colorPPattern ExtGartley886;
                     
condition1 false;
                     
end
       
else if ( numberMix[ki] > then
           
if ( absvalue((number[ki]-kj)/number[ki]) <= ExtDelta then
               begin
                     kk 
number[ki]; 
                     
txtkk numbertxt[ki]; 
                     
k2 = -1
                     
colorPPattern ExtPesavento
                     
condition1 false;
                     
end;
      
ki ki 1;
    
end;

                  
                  if ( 
k2 then
                    begin
                    ExtLine_ 
ExtLine886;
                       
i_var text_new_s(d[k1], time_s[k1], (HighPrim+highlast)/2txtkk);
                       
text_setcolor(i_varcolorPpattern);
                       
text_setsize(i_var8);
                    
end
                  
else
                    
begin
                       txtkk 
numtostr(kk3);
                       
i_var text_new_s(d[k1], time_s[k1], (HighPrim+highlast)/2txtkk);
                       
text_setcolor(i_varcolorPpattern);
                       
text_setsize(i_var8);
                    
end;

                    
i_var tl_new_s(d[numHighLast], time_s[numHighLast], HighLastd[numHighPrim], time_s[numHighPrim], HighPrim);
                    
tl_setstyle(i_var3);
                    
tl_setcolor(i_varextline_);
                    
                 
end;
              
end;
           
end
         
else 
           
begin
            HighPrim 
High[k];
            
numHighPrim k;
           
end;
        
end;

       if ( 
countBarEnd then 
         begin
          k 
numHighPrim 1
          
countHigh1 countHigh1 1
          
countFr countFr 1;
        
          
numLowPrim 0
          
numLowLast 0;
          
numHighPrim 0
          
numHighLast 0;

          
LowPrim 0.0
          
LowLast 0.0;
          
HighPrim 0.0
          
HighLast 0.0;
           
          
Angle = -100;
         
end;
         
     
end;
     
end;
     
//+-------------------------------------------------------------------------+
//| printing Pessavento and 0.886 for minimums of ZigZag
//+-------------------------------------------------------------------------+

   
numLowPrim 0
   
numLowLast 0;
   
numHighPrim 0
   
numHighLast 0;

   
LowPrim 0.0
   
LowLast 0.0;
   
HighPrim 0.0
   
HighLast 0.0;

   
Angle = -100;


 
countFr ExtFractalend;
   
   for 
0 to num_bar )
   
begin 
   
if ( countLow1 and countFr then
     begin
      
if ( zzH[k] > HighPrim and LowPrim then
        begin
         HighPrim 
High[k];
         
numHighPrim k;
        
end;

      if ( 
zzL[k] > 0.0 and zzL[k] = zz[k] ) then
        begin
         
if ( LowPrim then
           begin

            LowLast 
Low[k];
            
numLowLast k;

            
HL HighPrim LowLast;
            
kj = (LowPrim-LowLast)*1000/(numLowLast-numLowPrim);
            if ( 
HL and ( Angle <= kj  or  Angle = -100)) then
              begin
               Angle 
kj;

               
HLp HighPrim-LowPrim;
               
k1 ceiling((numLowPrim+numLowLast)/2);
               
kj HLp/HL;

               
ExtLine_ ExtLine;
               if ( 
kj 0.1 and kj 9.36then
                 begin
                  kk 
kj;
                  
k2 1;
                  
                  
    
ki 0;
    
colorPPattern ExtNotFibo;
    
ki kiPRZ;
    
condition1 true;
    
while (
ki <= 63) and (condition1)
    
begin
       
if ( numberGartley[ki] > then
              
if ( absvalue((number[ki]-kj)/number[ki]) <= ExtDelta then
                  begin
                     kk 
number[ki]; 
                     
txtkk numbertxt[ki]; 
                     
k2 = -1
                     
colorPPattern ExtGartley886;
                     
condition1 false;
                     
end
       
else if ( numberMix[ki] > then
           
if ( absvalue((number[ki]-kj)/number[ki]) <= ExtDelta then
               begin
                     kk 
number[ki]; 
                     
txtkk numbertxt[ki]; 
                     
k2 = -1
                     
colorPPattern ExtPesavento
                     
condition1 false;
                     
end;
      
ki ki 1;
      
end;
  

                  
                  if ( 
k2 then
                    begin
                     ExtLine_ 
ExtLine886;
                       
i_var text_new_s(d[k1], time_s[k1], (lowprim+lowlast)/2txtkk);
                       
text_setcolor(i_varcolorPpattern);
                       
text_setsize(i_var8);
                    
end
                  
else 
                    
begin 
              txtkk 
NumToStr(kk3);
                       
i_var text_new_s(d[k1], time_s[k1], (lowprim+lowlast)/2txtkk);
                       
text_setcolor(i_varcolorPpattern);
                       
text_setsize(i_var8);
                    
end;
                     
                    
i_var tl_new_s(d[numlowlast], time_s[numlowlast], lowLastd[numlowPrim], time_s[numlowPrim], lowPrim);
                    
tl_setstyle(i_var3);
                    
tl_setcolor(i_varextline_);
                    
                  
end;
               
end;
           
end
         
else
           
begin
            numLowPrim 
k
            
LowPrim Low[k];
           
end;
        
end;

       if (
countBarEndthen
         begin
          k 
numLowPrim 1
          
countLow1 countLow1 1
          
countFr countFr 1;

          
numLowPrim 0
          
numLowLast 0;
          
numHighPrim 0
          
numHighLast 0;

          
LowPrim 0.0
          
LowLast 0.0;
          
HighPrim 0.0
          
HighLast 0.0;
  
          
Angle = -100;
         
end;

     
end;
end;


end;


end
Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Attached Thumbnails
PriceActionSwing discussion-6-16-2011-8-27-08-pm.png  
Attached Files
Register to download File Type: pla pesavento patterns.pla (57.2 KB, 39 views)
Reply With Quote
     
The following 2 users say Thank You to Big Mike for this post:
     

Old June 17th, 2011, 12:21 AM   #224 (permalink)
Elite Member
California - USA/Rio grande do sul-Brasil.
 
Futures Experience: Intermediate
Platform: tradestation, ninja trader
Favorite Futures: Futuros
 
Posts: 88 since Apr 2011
Thanks: 851 given, 23 received

Mike,
Thanks a lot for your indicator.
But the problem is that I don't know how to pu it into the platform. lol

Also congrats for the Forum Aniversary.

Thanks Again,
Felix.

Reply With Quote
     
The following user says Thank You to Felix trader for this post:
     

Old June 17th, 2011, 12:38 AM   #225 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 45,541 since Jun 2009
Thanks: 28,884 given, 80,128 received

Futures Edge on FIO

Are you a NinjaTrader user?

 

Felix trader View Post
Mike,
Thanks a lot for your indicator.
But the problem is that I don't know how to pu it into the platform. lol

Also congrats for the Forum Aniversary.

Thanks Again,
Felix.

I don't use TradeStation, but you should just open the easylanguage editor, paste the code, and compile it as an indicator. If you don't know how to do that then neither do, having never used the platform - and we are for this thread so you'll need to create a new thread in the TradeStation section of the forum to ask for help.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
     
The following user says Thank You to Big Mike for this post:
     

Old June 17th, 2011, 03:49 AM   #226 (permalink)
Trading Apprentice
new york, new york
 
Futures Experience: Intermediate
Platform: ninjatrader
Favorite Futures: spy
 
Posts: 49 since Apr 2010
Thanks: 62 given, 8 received

market analyzer

regarding using market analyzer...


"Hey mystiq,

you have to add DataSeries variables with the specific values to the indicator. The DataSeries must be public to get access from the marekt analyzer.

The download contains a second indicator called PriceActionSwingRelation. Look for long entries if the value is above 0 and for short vice versa.
-2 = DT
-1 = LL and LH
0 = price is nowhere
1 = HH and HL
2 = DB
...can you provide ONE example for (1 = HH and HL)..does it require modifying the code below:

// See where price is in relation to the swingsint priceSwingRelation;priceSwingRelation = PriceActionSwing(calcMode, calcSize, dtbStrength, psarAcceleration, psarAccelerationMax, psarAccelerationStep).PriceSwingRelation[0];
// True, if the indicator flips from searching swing lows to swing highsbool upFlip;upFlip = PriceActionSwing(calcMode, calcSize, dtbStrength, psarAcceleration, psarAccelerationMax, psarAccelerationStep).UpFlip[0];
// True, if the indicator flips from searching swing highs to swing lowsbool dnFlip;dnFlip = PriceActionSwing(calcMode, calcSize, dtbStrength, psarAcceleration, psarAccelerationMax, psarAccelerationStep).DnFlip[0];Thanks"


Last edited by mystiq; June 17th, 2011 at 03:52 AM. Reason: edit
Reply With Quote
     

Old June 17th, 2011, 05:11 PM   #227 (permalink)
Elite Member
Grand Rapids, Michigan, United States
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: TF, 6E
 
Posts: 318 since Dec 2010
Thanks: 263 given, 111 received

Dorschden...How About This Modification

Hello Dorschden. First, I need to compliment you on this terrific indicator. I can see why it's the #1 download! I like using a previous version of the indi which allows for Zig Zag UTC. One of the most useful features in my view is the volume by swing. One thing that I have noticed is that if "calculate on bar close" is set to false, it is necessary to hit "f5" repeatedly to get it to update with the correct cumulative volume. I haven't noticed this problem when "calculate on bar close" is set to true. But then, of course you cannot see the volume update while the current bar is forming. Is there any way the code can be rewritten to update the volume intrabar?

Best Regards
Chuck


Last edited by maxreturn; June 18th, 2011 at 01:33 PM.
Reply With Quote
     

Old June 18th, 2011, 03:47 PM   #228 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


sudhir12192 View Post
CAN THIS PRICE ACTION INDICATOR BE CONVERTED TO MT4


Felix trader View Post
was this Indicator also made for Trade Station?

I code this only for Ninjatrader and not planing to convert it in the near future to any other platform.


inmax View Post
Is there a chance to this indicator to identify swings of at least "x" pips ?
Is there any indicator to the NT which determine the swings by number of pips?

This indicator can't identify swings of at least "x" pips. Maybe I'll add this kind of swing calculation to a further update, but not in the next weeks. Try other zig zag indicators for NT until then.

dorschden

Reply With Quote
     

Old June 18th, 2011, 03:50 PM   #229 (permalink)
Elite Member
Germany (Meck-Pomm)
 
Futures Experience: Advanced
Platform: NinjaTrader
 
Posts: 107 since Jun 2009
Thanks: 50 given, 934 received


maxreturn View Post
I like using a previous version of the indi which allows for Zig Zag UTC.
One thing that I have noticed is that if "calculate on bar close" is set to false, it is necessary to hit "f5" repeatedly to get it to update with the correct cumulative volume.

Hi Chuck,

the volume used for the swings is the whole volume of all bars in the swing and the part of the volume of the bar, that makes the swing. For example on a 5 minute chart, the bar makes a new low after 1 minute, then only the volume of the first minute is used and the other 4 minutes aren't.

Do you see a big difference between the standard calculation mode and the Zig Zag UTC? Earlier I also used the Zig Zag UTC version but with the time I preferred the standard mode.


mystiq View Post
regarding using market analyzer...
can you provide ONE example for (1 = HH and HL)

Hi mystiq,

For this you don't need to change the code. Just open a market analyzer and add an indicator column with the PriceActionSwingIndicator and in the "Plot" line in choose "SwingRelation". See the picture.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


dorschden

Reply With Quote
     
The following 2 users say Thank You to dorschden for this post:
     

Old June 18th, 2011, 05:11 PM   #230 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker/Data: Stage 5 trading/AMP/Rithmic
Favorite Futures: ES, NQ
 
trendisyourfriend's Avatar
 
Posts: 3,615 since Oct 2009
Thanks: 2,937 given, 4,352 received


dorschden,

Is it possible to show the time it takes to form each leg of a swing ?

Reply With Quote
     

Reply



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > PriceActionSwing discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

NinjaTrader 8: Features and Enhancements, Tips and Tricks

Dec 6
 

Al Brooks: Stop Losing when a Good Trade goes Bad, Correcting Mistakes

Elite only
 

Trading Technologies: Algo Design Lab hands-on

Dec 13
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Murray Math Discussion? jwhtrades Traders Hideout 5 July 27th, 2011 10:06 PM
Looking for general discussion thread. jctrader Traders Hideout 2 May 2nd, 2011 03:23 PM
PriceActionSwing jeff92887 NinjaTrader 2 March 1st, 2011 07:15 AM


All times are GMT -4. The time now is 10:53 PM.

Copyright © 2016 by futures.io. All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
 
no new posts

Page generated 2016-12-05 in 0.16 seconds with 20 queries on phoenix via your IP 23.23.50.247