TradingView
HPotter
6 aug 2021 03:51

Combo Backtest 123 Reversal & 2/20 Exponential MA 

E-mini S&P 500 FuturesCME

Beskrivning

This is combo strategies for get a cumulative signal.

First strategy
This System was created from the Book "How I Tripled My Money In The
Futures Market" by Ulf Jensen, Page 183. This is reverse type of strategies.
The strategy buys at market, if close price is higher than the previous close
during 2 days and the meaning of 9-days Stochastic Slow Oscillator is lower than 50.
The strategy sells at market, if close price is lower than the previous close price
during 2 days and the meaning of 9-days Stochastic Fast Oscillator is higher than 50.

Second strategy
This indicator plots 2/20 exponential moving average. For the Mov
Avg X 2/20 Indicator, the EMA bar will be painted when the Alert criteria is met.

WARNING:
- For purpose educate only
- This script to change bars colors.
Kommentarer
UnknownUnicorn23164075
Hi, thanks for sharing your professional tips!
I have a simple question - how can i convert this lines of codes in v4?

A=security(tickerid, 'W', close)
B=security(tickerid, 'W', close[1])

Can you please help me?
Many thanks
HPotter
@senpaicryptos, Hi,
A=security(syminfo.tickerid, "W", close)
UnknownUnicorn23164075
@HPotter, Many thanks now my query works. I have a couple of question, can i DM you?
Mer