Re: [amibroker] cross price calculations

 



Hi Ed,

 

When clicking the URL in your email, I am getting a blank screen with a "Snapshot" header. On the left the projects. Which one ? "Real Time Data Fit" or "Polynomial Curve Fit" ? The first is hanging. The second just shows a price range without bands … Something going wrong ?

 

Regards, Ton
 
----- Original Message -----
Sent: Tuesday, April 26, 2016 5:51 PM
Subject: Re: [amibroker] cross price calculations

 

Ton
 
this one I removed, it was actually the other image I pointed at.
 
 
you see that once the signal comes the price is moving higher and therefor also the entry price, since the entry price is at the Bollinger band. This is because the Bollinger band is using the High and Low. In some cases the entry price moves a lot in my favour, sometimes not. In the hourly timeframe it is allowed to move 8 ticks on average for the system still to work.
 
But instead of adding a slippage I can actually exactly calculate when the signal will start as per Dimitris post. You can calculate the cross at the end of the previous bar so one can exactly calculate the entry price. This is what I am trying to do
 
regards, Ed
 
 
Sent: Tuesday, April 26, 2016 5:05 PM
Subject: Re: [amibroker] cross price calculations
 
 



I have two problems Ed. Firstly I do not see the Bollinger in your video. Did you already plot the bands ?

Secondly I do not understand your problem. If you have the average and the stdev than you should have the Bollingers. And the crossing of the price with the bands should be a simple thing to do. Am I missing something ?

Regards, Ton.

----- Original Message -----
Sent: Tuesday, April 26, 2016 3:02 PM
Subject: Re: [amibroker] cross price calculations
 
 

hi Ton,
 
what I am trying to do is related to what Dimitris is doing but my problem is simple and certainly solvable.
 
all I want is to calculate the exact price at which a Bollinger band is crossed, it is basically high school mathematics
 
see the signals in the top chart here https://sites.google.com/site/amitradingideas/
 
it is oil ,1 hour bars. The Bollinger bands use 3 bars and are calculated using the High. For the entry price I use the Bollinger band price, In reality you will almost never get this price. So I want to calculate at which price the price is the same as the Bollinger bands. This is the price in reality I will buy or short.
 
a simpler problem would be for instance to calculate at which price the MA(C,3) will be crossed. The price should be equal to the MA ( in highschool we had to calculate the cross point of 2 functions). So simply put
 
P[i] = (C[i-2] + C[i-1] + PP[i] ) / 3
 
or: P[i] = 0.5*( C[i-2] + C[i-1] )
 
price P will be the exact price where the MA(C,3) is crossed. For a Bollinger band it becomes a bit more complicated and I have difficulties translating this into a general algorithm, like Dimitris has done.
 
I will get back to this tomorrow to explain it a bit in greater detail.
 
But for this Bollinger band system I show in the chart I can calculate the exact price where the buy/short signals will be generated. Then I can more precisely calculate if the system will work or not
 
regards, ed
 
Sent: Tuesday, April 26, 2016 2:24 PM
Subject: Re: [amibroker] cross price calculations
 
 

Hi Edwards,

Assume you're talking about https://groups.yahoo.com/neo/groups/amibroker/conversations/topics/45738

Please check following : It is obvious that there are extended periods for which the DEMAcross is impossible.

Question is how to build the bands without having the average ?

Regards, Ton.

----- Original Message -----
Sent: Tuesday, April 26, 2016 10:14 AM
Subject: [amibroker] cross price calculations
 
 

hi,
 
Dimitris posted algorithms to calculate MA cross prices in the files section back in 2003 (file Cross Predictions.txt).
 
Anyone made an algorithm to calculate the cross price of a Bollinger Band?  I should be able to do it but would be nice if somebody did this already,
 
thanks
 
 

__._,_.___

Posted by: "Ton Sieverding" <ton.sieverding@scarlet.be>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (6)

Upgrade your account with the latest Yahoo Mail app
Get organized with the fast and easy-to-use Yahoo Mail app. Upgrade today!

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___


EmoticonEmoticon