Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Custom indicator for pivots or swing points Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
john_f_damone
Posted : Thursday, August 1, 2013 7:47:53 PM
Platinum Customer Platinum Customer

Joined: 5/15/2012
Posts: 7
Good Afternoon,
 
I have the code to program a custom indicator into TC2000, unfortunately the code is from TradeStation. I'm not sure if this is something worth persuing, but if the logic can be translated, that would be great
 
What I'm trying to do is plot pivots on any chart so I can go back in time and base my base trading decisions on them.
 
It's very simlilar to plotting swing point highs and lows, and is based on the following logic;
 
PIVOT HIGH
 
inputs: Price( High ), LeftStrength( 3 ), RightStrength( 3 ) ;
 
if PivotHighVSBar( 1, Price, LeftStrength, RightStrength, RightStrength + 1 ) <> -1
then
    begin
    Plot1[RightStrength]( High[RightStrength], "PivotHi" ) ;
    Alert ;
    end
else
    NoPlot( 1 ) ; { remove the marker }
 
 
PIVOT LOW
 
 inputs: Price( Low ), LeftStrength( 3 ), RightStrength( 3 ) ;
 
if PivotLowVSBar( 1, Price, LeftStrength, RightStrength, RightStrength + 1 ) <> -1
then
    begin
    Plot1[RightStrength]( Low[RightStrength], "PivotLo" ) ;
    Alert ;
    end
else
    NoPlot( 1 ) ; { remove the marker }
 
Thank you for taking the time to consider my request. 
John

 

Bruce_L
Posted : Monday, August 5, 2013 11:06:45 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

We can use a Custom PCF Indicator to plot the Swing High where it is detected.

- Plot Style: Dots
- Plot Color: Up to you.
- Period: 1
- Average Type: Doesn't matter (because the Period is 1).
- Formula: H3 * ABS(MAXH3 < H3 AND H3 > MAXH3.4)

And another Custom PCF Indicator to plot the Swing Low where it is detected:

- Plot Style: Dots
- Plot Color: Up to you.
- Period: 1
- Average Type: Doesn't matter (because the Period is 1).
- Formula: L3 * ABS(MINL3 > L3 AND L3 < MINL3.4)

These indicators should be plotted in the same pane and scale and Price History.

Adding and Moving Indicators

Adding a 1-Period Simple Moving Average to these Custom PCF Indicators allows you to plot the indicators at the Swing High and Swing Low instead of at where they were identified. You just need to set the Offset of the moving average indicators to -3, the Plot Style of the Custom PCF Indicator to Dots and drag the Opacity setting of the Custom PCF Indicators upon which the moving averages are based all the way to the left (making the Custom PCF Indicators invisible).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.