The system works on any security you like to trade. I used GBPUSD as an example because of the up swing and down swing it had recently. I tried to put as much information of how the system works in the chart. Hope it helps and is not to cluttered.
I will reiterate how the system works here: Everything is based off of closed price.
Green bar: initial start of an uptrend or uptrend continuing. Place order above that bar. If the initial bar does not stray too far from the MVWAP , I will place orders above subsequent bars if no filled occurred.
If initial start of the trend is missed, I will wait for the pullback. A pullback is a close below the MVWAP, and a close above the (Low), is above 50. Orders are placed above the pullback bars with plotted char "B" and also plotted green triangle up. Again orders are placed above those bars. the bars do not notate automatic buys. Don't chase anything. You will miss the initial bar on something because of news or and it rocket up. Just wait, it will pullback. If it doesn't, to hell with it, on to the next.
Take profits: In the indicator you will see "T." That notates to take some profits. It is a suggestion. I was always told to take profits into spikes, as well as you can never lose money if you take profits. Up to you if you want to scale out and take the suggested profits or not.
Exit Completely: In an uptrend, close your entire position on bars colored yellow or red. (Again, closed bars)
In uptrend bars colored orange and black, do nothing, they are just pullback bars. Look for the buy pullback signal, then follow pullback buy rules for an uptrend.
Red bar: initial start of a downtrend or downtrend continuing. Place order below the bar. If the initial bar does not stray too far fro the MVWAP, place orders below subsequent bars.
If initial start on the downtrend is missed, wait for the pullback. A pullback is a close above the MVWAP, and close below the (Low). is below 50. Orders are placed below the pullback bars with the plotted char "S" and also plotted red triangle. Again those bars are not automatic shorts, orders are placed below them. Don't chase anything. Wait for price to come into your plan. The idea FOMO is the stupidest thing ever, how can you miss out on something when it is always there. The market is always there and something will come into your zone. Chill.
"T": same as in uptrend, suggestion to take some profits.
Exit Completely: In a downtrend, close your entire position on bars colored orange or green.
In downtrend you will see bars colored yellow and black, do nothing, they are pullback bars. Look for the pullback short signal and follow pullback short rules.
If you have any questions get at me. Take a look at it on what you trade. Flip it through different securities.
Best of luck in all you do.
P.S. You should not take a trade right before . You should also exit a trade right before .
I made an error in the part of the code that deals with pull backs and sets the signals.
The ema should also be involved:
Pullback long: price close is less than mvwap but greater than the ema, and also RSI is greater than 50
Pullback for short: price close is greater than mvwap but less than the ema, and also RSI is less than 50
Corrected portion is here below. My apologies.
cond7 = rsi > 50 and close < mvwap and close > myema ? 1 : 0
plotchar(cond7, title="Buy pullback", offset=0, char='BuyPB',color=lime, transp=0)
cond8 = rsi < 50 and close > mvwap and close < myema ? 1 : 0
plotchar(cond8, title="Sell pullback", offset=0, char='SellPB', color=red, transp=0)
cond9 = rsi > 50 and close < mvwap and close > myema ? 1 : 0
plotshape(cond9, style=shape.triangleup, location=location.bottom, color=lime, transp=0, offset=0)
cond10 = rsi < 50 and close > mvwap and close < myema ? 1 : 0
plotshape(cond10, style=shape.triangledown, location=location.bottom, color=red, transp=0, offset=0)
Hi could you post the updated chart here with the correct script with the add to favorites I can't add scripts without the link.
What time frame this should be used?
line 14: This statement is invalid.
line 8: Before they are used, all variables have to be declared.