NexusFi: Find Your Edge


Home Menu

 





PriceActionSwing discussion


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Silvester17 with 177 posts (570 thanks)
    2. looks_two dorschden with 99 posts (1,124 thanks)
    3. looks_3 Big Mike with 52 posts (90 thanks)
    4. looks_4 jmont1 with 51 posts (23 thanks)
      Best Posters
    1. looks_one dorschden with 11.4 thanks per post
    2. looks_two Silvester17 with 3.2 thanks per post
    3. looks_3 Big Mike with 1.7 thanks per post
    4. looks_4 sudhirc with 1.7 thanks per post
    1. trending_up 974,353 views
    2. thumb_up 2,947 thanks given
    3. group 613 followers
    1. forum 2,093 posts
    2. attach_file 615 attachments




 
Search this Thread

PriceActionSwing discussion

  #191 (permalink)
 
philipp's Avatar
 philipp 
zürich/ switzerland
 
Experience: None
Platform: NT7, Sierra
Trading: CL
Posts: 128 since Nov 2010
Thanks Given: 48
Thanks Received: 109

hello,

can anyone please tell me where i find the indicators to remove the old one. cannot find the folder.
thanks in advance.

nice work dorschden

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Diary of a simple price action trader
26 thanks
Tao te Trade: way of the WLD
23 thanks
My NQ Trading Journal
16 thanks
HumbleTraders next chapter
9 thanks
  #192 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143


neron View Post
But the candles are losing colors if change to this mode.

The bars are only painted if "See swing relation" is false. You can see the yellow/gray parts if you set "Trend change" to false. If "See swing relation" is set to true you see where the price is in relation to the swings. (-2 = DT, -1 = LL and LH, 0 = price is nowhere, 1 = HH and HL, 2 = DB).


philipp View Post
can anyone please tell me where i find the indicators to remove the old one.

In the Ninjatrader menu go to Tools - Edit NinjaScript - Indicator... than choose "PriceActionSwingRelation" and press delete. Otherwise the folder is normally under C:\Users\Your Username\Documents\NinjaTrader 7\bin\Custom\Indicator.

Started this thread Reply With Quote
Thanked by:
  #193 (permalink)
 
philipp's Avatar
 philipp 
zürich/ switzerland
 
Experience: None
Platform: NT7, Sierra
Trading: CL
Posts: 128 since Nov 2010
Thanks Given: 48
Thanks Received: 109


thanks a lot for that amazing quick answer

Reply With Quote
  #194 (permalink)
 ZZZTrader 
California
 
Experience: Intermediate
Platform: tradestation and Ninja Trader
Trading: ES and RTY
Posts: 23 since Mar 2011
Thanks Given: 35
Thanks Received: 7

Thank You for this wonder full and effective tool !

When looking at multiple symbols its hard detect when C has formed in the ABC Pattern. Anyway an audible sounds could be added when C forms that could be toggled on or off.

Again, Thank you for this wonder full tool!

In Ninja does one have to delete the old version first before down loading a new one ?


ZZZ

Reply With Quote
  #195 (permalink)
 Skylab 
Austin, Tx.
 
Experience: Intermediate
Platform: Ninja Trader, Metatrader
Posts: 4 since Sep 2010
Thanks Given: 1
Thanks Received: 1

"go directly to indicator folder and delete/move the cs file to trash bin then you should be able to import it.
ps. change name will not work since it uses the same routine name inside."

How would I get to the indicator folder?

Thanks

Reply With Quote
  #196 (permalink)
 Skylab 
Austin, Tx.
 
Experience: Intermediate
Platform: Ninja Trader, Metatrader
Posts: 4 since Sep 2010
Thanks Given: 1
Thanks Received: 1

"go directly to indicator folder and delete/move the cs file to trash bin then you should be able to import it.
ps. change name will not work since it uses the same routine name inside."

How would I get to the indicator folder?

Thanks


Found the answer in an earlier response.......

Reply With Quote
Thanked by:
  #197 (permalink)
 nic72 
Gotenburg, Sweden
 
Experience: Intermediate
Platform: MultiCharts
Broker: IB
Trading: ES, OMXS30, CL
Posts: 2 since Feb 2010
Thanks Given: 12
Thanks Received: 0

I love PriceActionSwingTrend! But have not had a chance to try it..
Uses MultiCharts and power language / easy language and has no knowledge of anything else. Is there any possibility to try and perhaps contribute to the development of the price action-swing trend in EL?
As you can imagine, I can not personally convert C # to EL. Anyone else tried? Or is willing to try?

Reply With Quote
  #198 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,207
Thanks Received: 101,599


nic72 View Post
I love PriceActionSwingTrend! But have not had a chance to try it..
Uses MultiCharts and power language / easy language and has no knowledge of anything else. Is there any possibility to try and perhaps contribute to the development of the price action-swing trend in EL?
As you can imagine, I can not personally convert C # to EL. Anyone else tried? Or is willing to try?

Start with this, MultiCharts pla attached.

 
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 - 1 )
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<=0) then raiseruntimeerror("ExtDelta parameter should be >0 and <=1");
   if (ExtDelta>1) then raiseruntimeerror("ExtDelta parameter should be >0 and <=1");
   
   if ( ExtFractalEnd <= 0 ) 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 - 1 ) downto 0
           begin
            zz[shift] = 0; 
            zzL[shift] = 0; 
            zzH[shift] = 0;
           end;
           
      for shift = ( num_bar - depth ) downto 0
        begin
         value1 = Low[ LowestBar(low, depth)[shift] ];
         if (value1 = lastlow) then 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 <> 0 ) and ( res > value1 ) ) then zzL[shift+back] = 0.0; 
                 end;
              end;
           end; 
          if ( Low[shift] = value1 ) then zzL[shift] = value1;

          value1 = High[ HighestBar(high, depth)[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 <> 0 ) 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 - depth) downto 0
        begin
         curlow = zzL[shift];
         curhigh = zzH[shift];
         if ( ( curlow = 0 ) and ( curhigh = 0 ) ) then
         value1 = value1
         else
         begin

         if ( curhigh <> 0 ) then
           begin
            if ( lasthigh > 0 ) 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 <> 0 ) then
           begin
            if ( lastlow > 0 ) then
              begin
               if ( lastlow > curlow ) then zzL[lastlowpos] = 0
               else zzL[shift] = 0;
              end;

            if ( ( curlow < lastlow ) or ( lastlow < 0 ) ) 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_] <> 0 ) then
        begin
         count_ = count_ + 1;
         vel4 = vel3;
         bar4 = bar3;
         vel3 = vel2;
         bar3 = bar2;
         vel2 = vel1;
         bar2 = bar1;
         vel1 = zz[bar_];
         bar1 = bar_;
         if ( count_>=3 ) 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 <> 0 ) ) 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 - 1) downto 0
begin
if zz[shift] <> 0 then
	begin
	if (value1 <> 0) then 
		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(value11, value12, value13, value21, value22, value23);		
		tl_setcolor(j_var, zigzagLinesColor);	

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

//  ZigZag plotting. End.


         if ( ExtFractalEnd > 0) then
           begin
            k = ExtFractalEnd;
            for shift = 0 to num_bar 
              begin 
               if ( zz[shift] > 0 and zzH[shift] > 0 ) then
               	begin 
               	if k > 0 then
               	begin
                     countBarEnd = shift; 
                     k = k - 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.0) then countLow1 = countLow1 + 1;
         if (zzH[shift] > 0.0) then 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 k = 0 to ( num_bar - 1 )
   begin
     if ( countHigh1 > 0 and countFr > 0 ) then
     begin
      
      if ( zzL[k] > 0.0 and ( zzL[k] < LowPrim or LowPrim = 0.0 ) 
					and HighPrim > 0 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 > 0 ) then
           begin

            HighLast = High[k];
            numHighLast = k;

            HL = HighLast - LowPrim;
            kj = (HighPrim-HighLast)*1000/(numHighLast-numHighPrim);
            if ( HL > 0 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] > 0 ) 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] > 0 ) 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 < 0 ) then
                    begin
                    ExtLine_ = ExtLine886;
                       i_var = text_new_s(d[k1], time_s[k1], (HighPrim+highlast)/2, txtkk);
                       text_setcolor(i_var, colorPpattern);
                       text_setsize(i_var, 8);
                    end
                  else
                    begin
                       txtkk = numtostr(kk, 3);
                       i_var = text_new_s(d[k1], time_s[k1], (HighPrim+highlast)/2, txtkk);
                       text_setcolor(i_var, colorPpattern);
                       text_setsize(i_var, 8);
                    end;

                    i_var = tl_new_s(d[numHighLast], time_s[numHighLast], HighLast, d[numHighPrim], time_s[numHighPrim], HighPrim);
                    tl_setstyle(i_var, 3);
                    tl_setcolor(i_var, extline_);
                    
                 end;
              end;
           end
         else 
           begin
            HighPrim = High[k];
            numHighPrim = k;
           end;
        end;

       if ( k > 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 k = 0 to ( num_bar - 1 )
   begin 
   if ( countLow1 > 0 and countFr > 0 ) then
     begin
      if ( zzH[k] > HighPrim and LowPrim > 0 ) then
        begin
         HighPrim = High[k];
         numHighPrim = k;
        end;

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

            LowLast = Low[k];
            numLowLast = k;

            HL = HighPrim - LowLast;
            kj = (LowPrim-LowLast)*1000/(numLowLast-numLowPrim);
            if ( HL > 0 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.36) then
                 begin
                  kk = kj;
                  k2 = 1;
                  
                  
	ki = 0;
	colorPPattern = ExtNotFibo;
	ki = kiPRZ;
	condition1 = true;
	
while (ki <= 63) and (condition1)
	begin
       if ( numberGartley[ki] > 0 ) 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] > 0 ) 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 < 0 ) then
                    begin
                     ExtLine_ = ExtLine886;
                       i_var = text_new_s(d[k1], time_s[k1], (lowprim+lowlast)/2, txtkk);
                       text_setcolor(i_var, colorPpattern);
                       text_setsize(i_var, 8);
                    end
                  else 
                    begin 
			  txtkk = NumToStr(kk, 3);
                       i_var = text_new_s(d[k1], time_s[k1], (lowprim+lowlast)/2, txtkk);
                       text_setcolor(i_var, colorPpattern);
                       text_setsize(i_var, 8);
                    end;
                     
                    i_var = tl_new_s(d[numlowlast], time_s[numlowlast], lowLast, d[numlowPrim], time_s[numlowPrim], lowPrim);
                    tl_setstyle(i_var, 3);
                    tl_setcolor(i_var, extline_);
                    
                  end;
               end;
           end
         else
           begin
            numLowPrim = k; 
            LowPrim = Low[k];
           end;
        end;

       if (k > countBarEnd) then
         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

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Attached Thumbnails
Click image for larger version

Name:	3-27-2011 9-38-53 PM.png
Views:	717
Size:	44.9 KB
ID:	35141   Click image for larger version

Name:	3-27-2011 9-39-12 PM.png
Views:	550
Size:	53.2 KB
ID:	35142  
Attached Files
Elite Membership required to download: Pesavento_Patterns.pla
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #199 (permalink)
 
djkiwi's Avatar
 djkiwi 
Mercer Island WA
 
Experience: Advanced
Platform: Ninjatrader/Strategy Desk
Broker: Various
Trading: TF/NQ/ES/Stocks
Posts: 561 since May 2010
Thanks Given: 981
Thanks Received: 1,558

Hi Dorschden, thanks for updating the indicator. I have been using this indicator as a key part of my strategy as it enables easier identification of the risk/reward ratio. One issue I have come across with the new version is the strategy no longer works as some parameters appear to have changed. I was using the following from Post number 7. I was wondering what I needed to change from the following to enable the revised indicator to work. Thanks again. DJ

Variables
private SwingMode calcMode = SwingMode.Standard;
private int calcSize = 5;
private int dtbStrength = 15;
private double psarAcceleration = 0.02;
private double psarAccelerationMax = 0.2;
private double psarAccelerationStep= 0.02;
private IDataSeries priceSwingRel;

protected override void OnStartUp()

// Set the PriceActionSwingRelation value to to the priceSwingRel series

priceSwingRel = PriceActionSwing(Input, calcMode, calcSize, dtbStrength, psarAcceleration, psarAccelerationMax, psarAccelerationStep).PriceSwingRelation;

Reply With Quote
  #200 (permalink)
 dorschden 
Germany
 
Experience: Master
Platform: NinjaTrader
Posts: 112 since Jun 2009
Thanks Given: 59
Thanks Received: 1,143



djkiwi View Post
One issue I have come across with the new version is the strategy no longer works as some parameters appear to have changed.

Just remove the psar variables. The following code snippet should work.

 
Code
                            
#region Using declarations

...
using PriceActionSwing.Utility;
#endregion

#region Variables
private int dtbStrength 15;
private 
int swingSize 5;
private 
SwingTypes swingType SwingTypes.Standard;
private 
IDataSeries swingRelation;
...
#endregion


protected override void OnStartUp()
{
  if (
swingRelation == null)
    
swingRelation PriceActionSwing(InputdtbStrengthswingSizeswingType).SwingRelation;
}

protected 
override void OnStartUp()
{
  
// Double bottom
  
if (swingRelation[0] == 2)
  {
    
// Do something
  
}
  ...


Started this thread Reply With Quote
Thanked by:




Last Updated on January 7, 2024


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts