TradingView
layartrader
2021年5月21日午前8時17分

Gann Square of 9 

JF TECHNOLOGY BHDMYX

詳細

(For Bursa Malaysia only)
This indicator will display nearest support and resistance from Gann Square of 9 Box.
Red line (Strongest)
Resistance
Support

Blue line (Moderate)
Act as support and resistance

Only workable for price lower than RM18.

リリースノート

Improved to support all market by scaling the price to follow Gann Square Numbers.
Add option to display 3 or 5 price level

リリースノート

Add option to change label text color for dark theme user

リリースノート

Thanks to Sanctom feedback,
Added option to change color of blue and red line.
コメント
NewbieTrader00
Salam @layartrader , saya tgh belajar buat script untuk gann square of 9 (utk platform lain),Setakat ni saya rasa script tuan buat ni sama seperti yang saya inginkan. Boleh saya tahu macam mana pengiraan square of 9 ni dlm script ni? atau sumber rujukan tuan untuk buat script ni. Terima kasih. Moga tuan dapat bantu saya.
layartrader
@NewbieTrader00, Wslm
for min=rangeMin to max
for i=0 to 3
gNum=0
if min == rangeMin and i==0
gNum:=min + (min+2)
else if min > rangeMin and i ==0
gNum:=round(array.get(GannNum,array.size(GannNum)-1)) + (min+1) + min
else
gNum:=round(array.get(GannNum,array.size(GannNum)-1)) + (min+2) + min
array.push(GannNum,gNum)
code ni mcm saya storage Gann Square of 9 numbers dalam array..
then..

for i=0 to array.size(GannNum)-1
if i==maxItem
next:=i
else
next:=i+1

if array.get(GannNum,i) <= price and array.get(GannNum,next) > price
resistance:=array.get(GannNum,next)/denomenator
support:=array.get(GannNum,i)/denomenator
blueGannPrice1:=(support+resistance)/2
GannPos:=i
break
code ni untuk dapatkan Gannt support dan resistance terdekat...
bharatssonawan
@layartrader, I am indian language not understand please explain me English other wise send your contact no
layartrader
@bharatssonawan, what do you want to know about this code?
rahul_krprajapati
sir how to set alert. please help when price touch any line i need to alert ,
NinesTrading
Is there a way to see previous day levels?
NikuTrade
Thank you Sir. I did few test and this works perfect 100% .
Is it possible for you to add alerts option when candles crossing S1 R1 [red and blue] ?
At present every day morning, I need to Manually I draw a horizontal line at S1 R1 on my stock list and add alert on horizontal line when candle is crossing. And As the S1 R1 changes I move the horizontal lines accordingly.
leandrolopezf1920
Hi, your indicator is awesome; i updated the code to version 5 of pine editor but i have a questions.. could you respond to dm please
raineng
hello, thank you for your code. Can I ask what is the purpose for denomenator? I would like to use this for other kind of assets and markets but I'm unsure how to adjust the denomenator
TVPIPOH
Awesome.
詳細