NexusFi: Find Your Edge


Home Menu

 





a formula to predict tomorrow midpt in ES?


Discussion in Emini and Emicro Index

Updated
      Top Posters
    1. looks_one aquarian1 with 13 posts (4 thanks)
    2. looks_two tpredictor with 4 posts (5 thanks)
    3. looks_3 forgiven with 4 posts (4 thanks)
    4. looks_4 Blash with 2 posts (1 thanks)
      Best Posters
    1. looks_one tpredictor with 1.3 thanks per post
    2. looks_two forgiven with 1 thanks per post
    3. looks_3 Blash with 0.5 thanks per post
    4. looks_4 aquarian1 with 0.3 thanks per post
    1. trending_up 5,649 views
    2. thumb_up 14 thanks given
    3. group 7 followers
    1. forum 24 posts
    2. attach_file 4 attachments




 
 

a formula to predict tomorrow midpt in ES?

 
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,034 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593

Does someone have a formula to predict tomorrow midpt in ES?
I am looking for ideas to mathematically predict tomorrow's RTH midpoint for ES.

Visit my NexusFi Trade Journal Started this thread
Thanked by:

Can you help answer these questions
from other members on NexusFi?
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Deepmoney LLM
Elite Quantitative GenAI/LLM
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
 
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011


You can start with the persistence model and use the previous day midpoint or perhaps the close price as your benchmark. That would be the benchmark method your formula needs to beat and if you can't beat it suggest the market is a random walk and/or your methods have no additional predictive value. You can use a metric such sum of squared distance between your actual value and your predicted value to see which method is best.

 
 
forgiven's Avatar
 forgiven 
Fletcher NC
Market Wizard
 
Experience: Intermediate
Platform: nijia trader
Broker: A.M.P. I.Q. ....C.Q.G.
Trading: ym es
Frequency: Every few days
Duration: Days
Posts: 862 since Mar 2012
Thanks Given: 287
Thanks Received: 580

T A S software can project a dynamic profile for the next time frame if things fall in to the algos eye sight. value high low and poc. you might be able to take the rth open and over lay yesterdays profile. just set them side by side drawing a level line through the opens... it is nuts i know but you have to start some where..

Follow me on Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,034 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593


forgiven View Post
T A S software can project a dynamic profile for the next time frame if things fall in to the algos eye sight. value high low and poc. you might be able to take the rth open and over lay yesterdays profile. just set them side by side drawing a level line through the opens... it is nuts i know but you have to start some where..

Not quite clear on this.

Are you saying that the difference between the POC and the open
added to the open would give the estimate of the midpt?

..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Started this thread
 
 
aquarian1's Avatar
 aquarian1 
Point Roberts, WA, USA
 
Experience: Advanced
Platform: IB and free NT
Broker: IB
Trading: ES
Posts: 4,034 since Dec 2010
Thanks Given: 1,509
Thanks Received: 2,593


tpredictor View Post
You can start with the persistence model and use the previous day midpoint or perhaps the close price as your benchmark. That would be the benchmark method your formula needs to beat and if you can't beat it suggest the market is a random walk and/or your methods have no additional predictive value. You can use a metric such sum of squared distance between your actual value and your predicted value to see which method is best.

I not not quite clear, are you suggesting a way of testing an estimation formula to see if it has predictive value?

..........
peace, love and joy to you
.........
Visit my NexusFi Trade Journal Started this thread
 
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011

I was suggesting 2 different methods, either using the midpoint of the prior day or the close of the prior day. Theoretically, the last price should have the most information, i.e. so that's going to be the best bet of your midpoint. However, I don't know if some information from the volatility might be missing from that that the midpoint from the prior day might capture. It is a great question though! Right, you can test it by simply shifting your data and taking the difference from the actual midpoint and summing the value. The formula I gave was the mean squared error but you could use the absolute difference or another error measure if you desired.

I coded up a quick verification in Easylanguage and using the close of the prior day is significantly better than using the midpoint for predicting the midpoint, assuming I didn't make any mistakes (big assumption). The code is below and I've linked to an instructive video if you want to learn more.

The average error in points is around 11 points for using the close over the past couple years I tested. This would mean on average using the close, the midpoint will occur within +- appx 6 points. That's your accuracy level. Using the prior midpoint, I get some ridiculous number which means I probably made a mistake. I updated to calculate using the simple MAD (mean absolute deviation) and get 8 points for the close and 14 for the prior midpoint. That would put you on average +-4 off using the prior close. PS: If someone wants to explain the differences in mean squared error vs absolute average error -- it would be illustrative for me!

Update: Found the mistake. You must wait until CurrentBar=2 because there isn't a previous value for the first bar. It did not change the findings though.



 
Code
variables: MidPointV(0);

MidPointV = low+(Range/2);
//Value1 = power((Close[1]-MidPointV),2);
//Value2 = power((MidPointV[1]-MidPointV),2);

Value1 = absvalue(Close[1]-MidPointV );
Value2 = absvalue(MidPointV[1]-MidPointV);

If lastbaronchart  then begin;
	//Value3 = squareroot( cum(value1)/barnumber);
	//Value4 = squareroot( cum(value2)/barnumber);
	value3 = cum(value1)/barnumber;
	value4 = cum(value2)/barnumber;
end;

plot1(value3);
plot2(Value4);


//Compare
//plot3(midpointv[1]);
//plot3(close[1]);

 
 
forgiven's Avatar
 forgiven 
Fletcher NC
Market Wizard
 
Experience: Intermediate
Platform: nijia trader
Broker: A.M.P. I.Q. ....C.Q.G.
Trading: ym es
Frequency: Every few days
Duration: Days
Posts: 862 since Mar 2012
Thanks Given: 287
Thanks Received: 580


aquarian1 View Post
Not quite clear on this.

Are you saying that the difference between the POC and the open
added to the open would give the estimate of the midpt?

remember i said this is nuts so do not lola me to bad...you have yesterdays RTH profile on the ES ...part 1... this morning the ES RTH opens and the chart is blank just a * for the open ,,,that is part two. you move yesterdays profile in place where today RTH OPEN an yesterdays RTH close are on the same price level ...part 3 ...now yesterdays profile is your projection profile for to day... look for the poc ...that is the project poc for to day. like i said it sounds nuts but you have to start some where...what you are saying is day 1 will look like day 2 just at different levels.

Follow me on Twitter Visit my NexusFi Trade Journal
Thanked by:
 
 
Blash's Avatar
 Blash 
Chicago, IL
Legendary Market Chamois
 
Experience: None
Platform: NT8,NT7,TWS
Broker: InteractiveBrokers, S5T, IQFeed
Trading: The one I'm creating in the present....Index Futures mini/micro, ZF
Posts: 2,311 since Nov 2011
Thanks Given: 7,341
Thanks Received: 4,518


aquarian1 View Post
Does someone have a formula to predict tomorrow midpt in ES?

I am looking for ideas to mathematically predict tomorrow's RTH midpoint for ES.



This already exists. It's called floor pivots. The "P" value would be the prediction.

https://www.investopedia.com/terms/p/pivot.asp

Ron


Sent from my iPhone using futures.io

...My calamity is My providence, outwardly it is fire and vengeance, but inwardly it is light and mercy...
The steed of this Valley is pain; and if there be no pain this journey will never end.
Buy Low And Sell High (read left to right or right to left....lol)
Follow me on Twitter Visit my NexusFi Trade Journal
 
 tpredictor 
North Carolina
 
Experience: Beginner
Platform: NinjaTrader, Tradestation
Trading: es
Posts: 644 since Nov 2011


Tested the floor pivots (h+l+c)/3 and using the prior close still had a lower error. I'd expect the open to have an even lower error but can't test it easily. You could try to use machine learning to do better but the tradeoff is the introduction of model complexity. But, there is hope, I have came up with a model that beats the simple model nearly every single day for the past 10 years or so but only by a tiny amount.


 



Last Updated on February 11, 2017


© 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