TradingView
JayRogers
23 мая 2016 г., 15:34

RSI versus SMA (no repaint) 

Euro Fx/U.S. DollarFXCM

Описание

*** USE AT YOUR OWN RISK ***
  • Nothing is perfect, and all decisions by you are on your own head. And stuff.


Description:
  • It's RSI versus a Simple Moving Average.. Not sure it really needs much more description.
  • Should not repaint - Automatically offsets by 1 bar if anything other than "open" selected as RSI source.


...sometimes smashing things together just happens to work...
Комментарии
tanner314
Here is an example of entries and exits closing on the same candle:

s1.postimg.org/2185b9xsnz/Capture.png
SheldonPatnett
@tanner314, I find it doing it often, or is it just me?
pakeha
@tanner314, From what I can see the trailing stop is in points not pips... so for example 50 points is 5 pips. It is closing at the end of the day (same candle) because a 50 point/5 pip trailing stop gets hit when spreads widen at the end of the trading day.
Entity
This looks very impressive and so far I cannot pick up any repainting. This is a simple yet very effective strategy, well done mate! It is a bit crazy to manual trade on a 5m time frame however it seems to be working well on a 4hr and daily time frame across multiple pairs.

Why do most of the exits seem to occur at the exact high/low of the candles? This doesn't seem right? Where can I adjust it so that it closes the trade at the close of the "exit" candle?
JayRogers
I just recently wrote up a risk management example script which contains much better strategy.exit() execution code and properly sets up the inputs. If you swap out the strategy.exit blocks (everything below and including if(useStop) ) for the two in the example and also the relevant inputs you will be able to get much finer control over the way the risk management is - or is not - handled.
Entity
Thank you! I shall take a look at it. Thanks for your continued work and input
Nir1123
@Entity, Hi mate, don't know if you still use this strategy but does it repaint?
Entity
@Nir1123, Nah no repainting. You can also validate this by using the Bar Replay functionality which simulates the trades/signals as they would've happened at a particular point in time.
Nir1123
@Entity, thanks for the response mate really appreciate it!
Ещё