How to calculate the 3 day slope of PPO-Histogram ? - futures io
futures io futures trading

How to calculate the 3 day slope of PPO-Histogram ?

Discussion in TradeStation

    1. trending_up 499 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

How to calculate the 3 day slope of PPO-Histogram ?

(login for full post details)
  #1 (permalink)
Hong Kong + Hong Kong
Posts: 18 since Feb 2019
Thanks: 9 given, 0 received

I am trying to calculate the 3 day slope of PPO-Histogram according to the SCTR short term indicators. Does tradestation's easy language has command to compute the slope? Now I can compute the PPO-Histogram of 3 days by the following codes. But don't know how to calculate the slope. I think the slope should be based on linear regression.

PPOValue0 = PPO(Close, 12, 26);
PPOAvg0 = XAverage( PPOValue0, 9 );
PPODay0 = PPOValue0 - PPOAvg0;

PPOValue1 = PPO(Close[1], 12, 26);
PPOAvg1 = XAverage( PPOValue1, 9 );
PPODay1 = PPOValue1 - PPOAvg1;

PPOValue2 = PPO(Close[2], 12, 26);
PPOAvg2 = XAverage( PPOValue2, 9 );
PPODay2 = PPOValue2 - PPOAvg2;


Reply With Quote

Journal Challenge February 2021 results:
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(173 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(120 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(35 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
(login for full post details)
  #2 (permalink)
quintana roo, méxico
Posts: 79 since Mar 2013
Thanks: 222 given, 38 received

a long time ago i was also interested in calculating the slope of some indicators but was never able to get ts to do that. in the end i decided to use percentage change, which is quite similar.

ts does include some trigonometric functions like sine, cosine and others and i think it can also calculate linear regressions, so maybe you can create some workarounds to approximate the values for slope with other functions.

Reply With Quote
(login for full post details)
  #3 (permalink)
Seattle, WA/USA
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 88 since Sep 2016
Thanks: 7 given, 32 received

Hopefully I understand your needs correctly, but here goes. The equation for slope is rise/run and we know run = 3 since that is what you are interested in. Rise is the same as delta value, so it should be (PPO[0]-PPO[3]) / 3.

Follow me on Twitter Reply With Quote

futures io Trading Community Platforms and Indicators TradeStation > How to calculate the 3 day slope of PPO-Histogram ?

Last Updated on June 12, 2019

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Battlestations! Show us your trading desk - $1,500 in prizes!


Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only

Importance of Finding Your Own Way w/Adam Grimes

Elite only

New Challenge (TBD)


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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