Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

suby

How To Quantify Price Action?

Recommended Posts

ADDChild,

 

Thanks a lot for this I really appreciate it! this is exactly what i was looking for!

 

Do you trade like this? I recall you replying back in regards to another one of my posts about stats

 

It's just a way of modeling price movements, so you can't trade it per say. But I use something similar to an ARMA model for intraday, outright trading. Although ARMA is definitely on the simpler side of financial modeling, its easily altered and adapted for everything I have to throw at it.

Share this post


Link to post
Share on other sites

Since you are using thinkScript, this may be of interest to you.

 

Least Squares Method. Yahoo ThinkScript Group

 

Least Square Method. Wikipedia

 

#This program created by tradescripter
#Dec. 24, 2010 Merry Christmas
#It uses the Least-Squares Method to forecast a new price
#For an explanation of Least-Squares method see:
#http://en.wikiversity.org/wiki/Least-Squares_Method

input length = 9;input price = close;
def AvgPrice=average(price,length);
def SumTime=fold i = 1 to length + 1 with x = 0 do x + i;def
AvgTime=SumTime/length;
#sx is the sum of all the deviations from time for the last x bars
def sx=fold j = 1 to length + 1 with y = 0 do y + ((j-AvgTime) *
(getValue(price,length-j,length+1) - AvgPrice));
#sy is the sum of all the deviations from price for the last x bars
def sy=fold k = 1 to length + 1 with z = 0 do z + (power(k-AvgTime,2));
#m is the slope of the line, b is the slope intercept of the line in the
equation y = mx + b
def m=sx/sy;def b=avgPrice-m*AvgTime;
plot FuturePrediction=(m*(length+1))+b;

 

This code was also posted in the Thinkscripter site, and improved upon by others.

Share this post


Link to post
Share on other sites
Hey Bobcollett when I say quantify I'm refering to trade in a sense that is as scientific as possible.

 

What sparked this interest was when I stumbled across Price Action Lab Blog | Quantifying Market Price Action - However, I have 0 desire in paying absorbant amounts for a system. I want to understand price action better with the use of math

 

Thanks. He does it seems a nice job in gratifying chance. I like very much his idea of using portfolio backtest statistics for this like in his latets post: Price Action Lab Alert for Monday, December 17, 2012 | Price Action Lab Blog

 

I wonder is this can be automated in a way.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.