Bulls usually buy between the close and low to push the price up and bears usually buy between the high and close to push the price down. This shows you candle strength and equilibrium's..
this can be applied to chart to create support/resistance points of true high/lows or used alone as an indicator to show divergence
Market maker algorithms dont take into account opening price, this measures the true 50 day average vs 200 day average works like an better rsi, which doesnt work on the 1 second period
1
2
3
st1=(low+close+high)[50]
st2=(low+close+high)[200]
returnst1as"50",st2as"200"
this can be used as a standard alone indicator to show divergence in the trend or applied to the chart to show support/resistance of the true 50/200 day averages
I used the code and it gives exactly the same results as illustrated in your screen captures, what I don’t understand (and please forgive my ignorance) is how this can be used as part of a trading strategy, am I missing something?
Also if you are adding it to a 1 second chart you need to add a TIMEFRAME instruction to get the daily 50 and 200 day averages. I also changed it to add AVERAGE.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue