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 |

Alert Condition: Below Price History vs Crossing Down Price History Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
carlson
Posted : Wednesday, November 11, 2015 4:58:30 PM
Registered User
Joined: 5/5/2015
Posts: 20
The price is currently below the 13 period moving average.
I want to set an alert for when price moves above the 13 period moving average.
I click on the moving average listed above the price chart.
 
I see options in the expanded sublist: Moving Average 13 vs Price History.
 
Question: What is the difference between the options
 
1. Below Price History, and
2. Crossing Down Price History ?
 
Does one of the options wait for the bar to complete or close above the moving average?
 
thank you
Bruce_L
Posted : Thursday, November 12, 2015 10:02:27 AM


Worden Trainer

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

Below Price History returns true as long as the moving average is below the current price.

Crossing Down Price History only returns true if the moving average is below the current price but was above the current price during the previous bar.

Neither condition waits for the bar to close. Both conditions can return true part way through the formation of the current bar only to have the condition stop returning true by the time the bar finishes forming.

You would need to create a condition for the previous bar instead of the current bar in order to way for the bar to close. Note that this is really waiting for the next bar to start forming. so the last bar of the trading day could not return true until the open the next morning (assuming you aren't displaying pre and post market data).

You can add a 1 period moving average with the offset setting set to 1 to get the close of the previous bar plotted on the chart as a current value.

You can set the offset of the moving average from 0 to 1 to get its previous value.

You would then be able to check for the offset moving averages crossing to create a condition which waits until the next bar starts forming to return true.

You can delete the 1 period offset moving average and reset the offset of the other moving average after creating the condition.



-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.