You have to add it ON the price chart (like MA’s), not under it (like Rsi).
You have to:
- click the wrench on the upper left corner of the price chart
- select price
- click add indicator
- choose the indicator you want to add from the dropdown list
RobbParticipant
Average
Hello Roberto
thanks but :
1) I don’t find the wrench
2) anyway, I click on price button or alternatively right button directly on the price chart
3) add indicator option from the menu
4) select the indicator “swing point” (I previously loaded it among my indicators)
nothing happens.
The point is that I used the same procedure with other indicators and they of course are displayed on the price chart….
Please could you try the same and help me on that
thanks
Roberto
Good evening,
there is a value after the return at the bottom of the code
or in the draw code
RobbParticipant
Average
Hello Fifi
thanks for the answer
what do you mean with “there is a value in the draw code”?
I just copied it.
I attached the code, in order to avoid any doubt
please could you look at it?
RobbParticipant
Average
This is the code
Filter=20
if xSwitch= 0 then
if High >= xHigh then
xHigh = High
xLow = Low
xSkip = 0
else
xSkip= xSkip + 1
if xSkip>= filter then
xConfirm=1
xCount=1
while xCount < filter
if (Low[xCount] <= Low[xCount-1]) or (xLow <= Low[filter-1])then
xCount= filter
xConfirm=0
endif
xCount= xCount + 1
wend
if xConfirm = 1 then
xSwitch = 1
MyxHigh=xHigh
xHighBar=Barindex-xskip
xHigh = High
xLow = Low
xSkip = 0
endif
endif
endif
else
if Low <= xLow then
xHigh = High
xLow = Low
xSkip = 0
else
xSkip = xSkip + 1
if xSkip >= filter then
xConfirm = 1
xCount = 1
while xCount < filter
if (High[xCount] >= High[xCount-1]) or (xHigh >= High[filter-1]) then
xCount = filter
xConfirm = 0
endif
xCount = xCount + 1
wend
if xConfirm = 1 then
xSwitch = 0
myxlow=xLow
xLowBar=Barindex-xskip
xLow = Low
xHigh = High
xSkip = 0
endif
endif
endif
endif
DRAWSEGMENT(xLowBar, myxlow, xHighBar, MyxHigh) COLOURED(255,0,0)
return
try this one and look at how it’s done
RobbParticipant
Average
I don’t know, I will check the code to understand how it works….
RobbParticipant
Average
It does work with lower value of filter. From 1 to 3,4,5 etc
20 was to high.
bye
Robb – when posting code in the forums always use the ‘Insert PRT Code’ button to make it more readable for others. I have tidied up your post for you, 🙂
Good morning fifi743,
I think there is a symbol # missing to show the quotes
DefParam DrawOnLastBarOnly = false
if Time = 220000 then
customeclose2 = open
Ccfd = customeclose2
startbar = barindex
drawtext(" #CCfd#",startbar,Ccfd,Dialog,BoldItalic,10) coloured(102,51,0)
endif
if Time = 173500 then
startbar = barindex
customeclose1 = open
Ccash = customeclose1
drawtext(" #CCash#",startbar,CCash,Dialog,BoldItalic,10) coloured(102,51,0)
endif
//
RETURN CCash COLOURED(102,51,0) STYLE(dottedline,1) AS "CCash", Ccfd COLOURED(102,51,0) STYLE(dottedline,1) AS "CCfd"