tux

TonyUX EMA Scalper - Buy / Sell

This is a simple scalping strategy that works for all time frames... I have only tested it on FOREX

It works by checking if the price is currently in an uptrend and if it crosses the 20 EMA .

If it crosses the 20 EMA and its in and uptrend it will post a BUY SIGNAL.
If it crosses the 20 EMA and its in and down it will post a SELL SIGNAL.

The red line is the highest close of the previous 8 bars --- This is resistance
The green line is the lowest close of the previous 8 bars -- This is support
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?
study(title="Tony's EMA Scalper - Buy / Sell", shorttitle="TUX EMA Scalper", overlay=true)
len = input(20, minval=1, title="Length")
src = input(close, title="Source")
out = ema(src, len)
plot(out, title="EMA", color=blue)
last8h = highest(close, 8)
lastl8 = lowest(close, 8)

plot(last8h, color=red, linewidth=2)
plot(lastl8, color=green, linewidth=2)


bearish = cross(close,out) == 1 and close[1] > close 
bullish = cross(close,out) == 1 and close[1] < close 

plotshape(bearish, color=red, style=shape.arrowdown, text="Sell", location=location.abovebar)
plotshape(bullish, color=green, style=shape.arrowup, text="Buy", location=location.belowbar)

Комментарии

@tux On what time frame(s) would you recommend using this script?
+189 Ответить
mrsergioliveira GoldenRatioTA
@GoldenRatioTA, 1h you can make 150 -200pips by day
+25 Ответить
How do i create an alert to trigger every time the buy/sell flag shows?
+84 Ответить
wolf92s Amirfx216
@Amirfx216, You would need to do something using the alertcondition code.

For this it would look like this:
alertcondition(bearish == true, title="Buy Alert", message="Something to tell you to buy")
alertcondition(bullish == true, title="Sell Alert", message="Something to tell you to sell")

I haven't tried running that but to give you an idea on how to do it.
+17 Ответить
wolf92s wolf92s
Sorry don't know how to edit comment. I forgot to mention after you put that in you will have to go through and add alert, change the condition to the study, then select buy alert/sell alert (or whatever you name the titles)
+9 Ответить
ninjas448 wolf92s
@wolf92s, bullish=true will be buy alert..
+1 Ответить
akerendi wolf92s
@wolf92s, Please can someone guide me on the exact code to put into the pine Editor. When i put the above alert condition it gives me an error saying Undeclared identifier 'bullish' and the same thing for the bearish.
Ответить
Thank you all for the support on this script! I have been testing it with other indicators and code improvements and I believe I found a great combo.

Will be posting version 2 soon.
+56 Ответить
Awesome stuff. I am looking forward to version 2 as this has given great signals for me in combination with the Parabolic SAR indicator. Thanks for sharing.
+1 Ответить
@mosoeu88, try with CPR and VWAP.
+1 Ответить