TradingView
Twigho
2019년 7월 29일 오후 2시 29분

OVL_Kikoocycle Beta_Pine3 

EUR/USDOANDA

설명

This script use :
- A custom Chande Kroll Stop for generate the channel
- Some custom Parabolic S.A.R for generate cycles


This script can be separated into 3 categories:
- Channel Kroll generator : one layer for the actual interval and a layer for a Large Timeframe .(with ratio) [You can activate LTF with an option]
- "Range" generator : one layer for actual Interval and a layer for a Large Timeframe.(with automique ratio) [You can activate LTF with an option]
-Targets generator : one layer for actual interval with different trend.

"Channel Kroll" :
- I "hijack" the Chande Kroll Stop formula with custom parameters for generate this channel. Overall, it works like other types of channels like BB, etc... A midline and two borders. The thickness of the borders are relatively important here. A thick border shows some resistance of the area. And so the probability of seeing the market return to its first contact is stronger. While a very thin and vertical border would rather play the role of a breach, a bit like the idea of gaps. Often the market seems to want to go after several cycles.
You can activate its Large TimeFrame version, its midline is strong and fine borders helps to judge the risk.

[u]SARget + "SAR Limited"[/u] :
- (S.A.R + targets) The philosophy of this function is simple... When a small cycle is broken, it creates a mark on a higher cycle. So on until the SAR called "SAR Limited". For simplicity, imagine a fractal image but inverted ... Break the small figure, it will mark the larger figure at this time but to get there you still have to make the way to the small figure.
Targets are : cross ("+") for fast targets(hidden by default because, theire work only on lower interval), squares (for medium trend), Xcross(for large trend) and red cross(they try to find a large contexte). When a target proc, it is for later (market need some cycles for going to, but it is relative to your interval). This gives you speculative goals.
Why 2 targets for a same type and a triangle with a 90deg angle : This give a potential area for management.The triangle help to visualize the SAR and to juge the market reaction. You need to adapte your trade with that...
Targets may be slightly too far because I am a bad coder... Currently the targets appear at the moment of rupture but it would be necessary to wait for the end of the breaking movement. Which can bring a positional error if the break is violent.

RnG and LTF RnG :
- Attempt to generate a Fibo range for each cycle and see interressing areas to enter or exit. This is played with the same philosophy as the Fibo extensions and retracement.
When a new RnG is generated, do not rush. It appears showing 50/50 for both sides. When a new RnG is generated, do not rush. It appears showing 50/50 for both sides. As long as the market is out of the middle zone (the 3 lines) keep in mind the past RnG.
When the market is out of range, you can use the FibRetracement tool for have extensions. One point at each end, as on the presentation graph. (Values 1.14, 1.272, 1.414, 1.618, 1.786, 2, 2.4 and 4 work well.) If too extrem you can active the LTF version.
Never fomo a break, market like to pull a level... Observe and be patient.

It's easier to use than to explain xD

NB : Do not use the LTF as context. For this, it is better to look at a higher interval.

I invite you to look in the style tab of the script and deselect the plots named UNCHECKEME, this will ease your browser.

릴리즈 노트

Update :
- Code rewrite and adjustment.

NB: - If you do not have enough history of Sarget you have to disable "detailled Sarget" in the options.
- You can uncheck plots named "UNCHECKME" for optimize, in style panel.
- You can activate SAR Pivot/Range in option pannel.


릴리즈 노트

Update :
- Conversion V5
- Turn off by default "Detailed Sarget"
- Option "GoldenLTF" Spivot preset is broken (Need a square time for understand why, I just turn off this option )

릴리즈 노트

Update :
- Fix transparent colors
- Fix "GoldenLTF" Spivot preset

릴리즈 노트

Updates :
- Detailed Sarget are not longer calculated when they are hidden
- Fibo ratio adjustment for Detailed Sarget and their orphans
- Add an option show/hide Orphans. Now they are hidden by default
- Add a dark mode option
코멘트
RameshAkula
after adding, not able to compile the script. getting error 'something went wrong , plz try again'. Getting same error after trying multiple times. Could you help.
Spunsen
//@version=4
study(title="OVL_Kcycle Beta_Pine4",shorttitle="KCycle B_P4",overlay=true,format=format.price)

actTT_=input(defval=true,title="Detailed Sarget")
Sp_0="None",Sp_1="Golden",Sp_2="Golden LTF",Sp_3="Flash"
Sp=input(defval=Sp_0,options=[Sp_0,Sp_1,Sp_2,Sp_3],title="Spivot Preset")
Clos=security(syminfo.tickerid,timeframe.period,close)
Lo=security(syminfo.tickerid,timeframe.period,low)

_FF=input(defval=0,step=1,maxval=12,minval=0,title="Decimal, 0=Auto")
FF_=_FF!=0?_FF==1?'#.#':_FF==2?'#.##':_FF==3?'#.###':_FF==4?'#.####':_FF==5?'#.#####':_FF==6?'#.######':_FF==7?'#.#######':_FF==8?'#.########':_FF==9?'#.#########':'#':'#'
FF= Clos>1 and _FF==0 ? '#.##': Clos<0.01 and _FF==0 ?'#.########': FF_

sa(_Sval)=>
Sval=0.02
sar(Sval,Sval,_Sval)

sbrk(sa)=>
var float brsa=na
if cross(Clos,sa)
brsa:=sa[1]

plotshape(sbrk(sa(0.00414)),location=location.absolute,style=shape.circle,size=size.small,color=color.green,transp=80,title="SAR Break M")
plotshape(sbrk(sa(0.00141)),location=location.absolute,style=shape.circle,size=size.small,color=color.orange,transp=80,title="SAR Break S")
plotshape(sa(0.00141),style=shape.xcross,color=color.orange,transp=80,show_last=2,title="SAR S",size=size.tiny,location=location.absolute)
plotshape(sa(0.00414),style=shape.xcross,color=color.green,transp=80,show_last=2,title="SAR M",size=size.tiny,location=location.absolute)

col1="rouge",col2="noir"
colTT_=input(defval=col1,options=[col1,col2],title="Couleur Detailed Srgt")
opa1="20%",opa2="50%"
colOPA_=input(defval=opa1,options=[opa1,opa2],title="Opacity Detailed Srgt")
_colTT_()=>
if colTT_==col1
if colOPA_==opa1
color.new(color.red,80)
else
if colOPA_==opa2
color.new(color.red,50)
else
if colTT_==col2
if colOPA_==opa1
color.new(color.black,80)
else
if colOPA_==opa2
color.new(color.black,50)

colTT=_colTT_()

col1_m="Bleu",col2_m="noir"
colTT_m_=input(defval=col1_m,options=[col1_m,col2_m],title="Couleur MedSrgt")
opa1_m="20%",opa2_m="50%"
colOPA_m_=input(defval=opa1_m,options=[opa1_m,opa2_m],title="Opacity MedSrgt")
_colTT_m_()=>
if colTT_m_==col1_m
if colOPA_m_==opa1_m
color.new(color.blue,80)
else
if colOPA_m_==opa2_m
color.new(color.blue,50)
else
if colTT_m_==col2_m
if colOPA_m_==opa1_m
color.new(color.black,80)
else
if colOPA_m_==opa2_m
color.new(color.black,50)

colTT_m=_colTT_m_()

col1_s="Vert",col2_s="noir"
colTT_s_=input(defval=col1_s,options=[col1_s,col2_s],title="Couleur SlowSrgt")
opa1_s="20%",opa2_s="50%"
colOPA_s_=input(defval=opa1_s,options=[opa1_s,opa2_s],title="Opacity SlowSrgt")
_colTT_s_()=>
if colTT_s_==col1_s
if colOPA_s_==opa1_s
color.new(color.green,80)
else
if colOPA_
더보기