ucsgears

UCS_S_Steve Primo - Strategy 4 - Version 2

For those who are interested with this strategy, Here is a better version.
從常用腳本中移除 新增至常用腳本
// Created by UCSgears
// Includes options to confirm with Pet-d

study(shorttitle="SP-S#4", title = "Steve Primo - Strategy #4", overlay = true, precision = 2)

basisma = sma(close,50)
petd = ema(close,15)

usepetd = input(true, title = "PET-D Confirmation Required")

trendup = usepetd == 1 ? close > basisma and close > petd : close > basisma
trenddn = usepetd == 1 ? close < basisma and close < petd : close < basisma

// PET-D

petdcolor = close > petd ? green : red
barcolor (petdcolor)

// Pullback & Bounce Criteria
lowest = lowest(low,(5))
highest = highest(high,(5))
pullback = (low == lowest) or (low[1] == lowest[1]) ? 1 : 0
bounce = (high == highest) or (high[1] == highest[1]) ? 1 : 0

// ALL PLOT
plot (lowest, color = green, linewidth = 1, title = "Lower Band")
plot (highest, color = red, linewidth = 1, title = "Upper Band")
plot (basisma, color = black, linewidth = 3, title = "Trend - Long Term")
plot (petd, color = blue, linewidth = 1, title = "Trend - Short Term")

// 25% Close 
range = high - low
rbrng = abs(open-close)
// Long Setup
longcandle = close > low+range*.75 ? 1:0
// Short Setup
shortcandle = close < low+range*.25 ? 1:0

//Setups
setuplong = trendup == 1 and pullback == 1 and longcandle == 1 ? 1:0
setupshort = trenddn == 1 and bounce == 1 and shortcandle == 1 ? 1:0

//setuplong = setuplonggeneral == 1 and setuplonggeneral[1] == 0 ? 1:0
//setupshort = setupshortgeneral == 1 and setupshortgeneral[1] == 0 ? 1:0

bcl = rbrng > (rma(tr,5)*1.1) ? blue : green
bcs = rbrng > (rma(tr,5)*1.1) ? blue : red

plotchar(setuplong, title="Long Setup Bar", char='⇑', location=location.belowbar, color=bcl, transp=0, text="Strategy #4 Long")
plotchar(setupshort, title="Short Setup Bar", char='⇓', location=location.abovebar, color=bcs, transp=0, text="Strategy #4 Short")

//Trade Trigger
tiggerlongcandle = (setuplong[1] == 1) and (high > high[1]) ? 1 : 0
tiggershortcandle = (setupshort[1] == 1) and (low < low[1]) ? 1 : 0
plotshape(tiggerlongcandle ? tiggerlongcandle : na, title="Triggered Long",style=shape.triangleup, location=location.belowbar, color=green, transp=0, offset=0)
plotshape(tiggershortcandle ? tiggershortcandle : na, title="Triggered Short",style=shape.triangledown, location=location.abovebar, color=red, transp=0, offset=0)

// Trade Target Signal

tarup = (tiggerlongcandle==1 and setuplong[1] == 1) ? high[1]+range[1] : na
plotshape(tarup, style = shape.circle, location = location.absolute, title = "Target Long", color = white)

tardn = (tiggershortcandle==1 and setupshort[1] == 1) ? low[1]-range[1] : na
plotshape(tardn, style = shape.circle, location = location.absolute, title = "Target Short", color = white)

評論

Wow. You are really prolific.

I am not a programmer, so I got one question for you.

Format-Style:
Long setup bar
"Color 0" means dont enter the trade
and
"Color 1" means enter the trade
?
+7 回覆
Great stuff, thanks! When do you decide to enter a trade? As soon as a trigger appears or do you wait for the candle to close and have the trigger confirmed before you enter a trade?
+4 回覆
Sorry I am not a programmer.... Is it possible to get the executable for this indicator? mytymedave@gmail.com
+2 回覆
DavidMiller1a DavidMiller1a
Sorry.... Just saw your response above after I sent this
回覆
Hi ucsgears,

how can I use this indicator in MT4 ( Can you please Instruct me how I can Load this up in MT4 )
Thank you for your Precious Time and Hard work ucsgears. ( also do you sell any other indicators )? thanks man
+1 回覆
ucsgears CryptoFxWorks
I cannot give the MT4 code,Steve Primo is directly selling, Just to avoid any legal litigation, I would avoid that scenario...... Any the concept is here, feel free to write the code.... Sorry.
回覆
Thanks for posting the script. Does this script work on TOS? I tried it as a Study and a Strategy but was unsuccessful. Probably because I don't know what I'm doing. First problem I had was the editor did not like your comment slashes. :P
回覆
Can you tell me how to load this in TOS?
回覆
meleysr.1 meleysr.1
When I copy the code and paste it in the editor, I get an invalid statement:// at 1:1. Can someone point me in the right direction?
回覆
ucsgears meleysr.1
replace the // with #.

The code needs to be modified a bit before it can be used at tos
回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出