shcorp886 |
Member, Platinum User, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Wednesday, November 4, 2009 |
Monday, March 31, 2014 11:36:53 PM |
81 [0.03% of all post / 0.01 posts per day] |
|
i just found one the realcode on your previous post,
Static High(1) As Single
Static Low(1) As Single
Static Close1 As Single
If isFirstBar Then
High(1) = Single.NaN
High(0) = Single.NaN
Low(1) = Single.NaN
Low(0) = Single.NaN
Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
High(1) = High(0)
High(0) = Price.High
Low(1) = Low(0)
Low(0) = Price.Low
Close1 = Price.Last(1)
Else
High(0) = System.Math.Max(High(0), Price.High)
Low(0) = System.Math.Min(Low(0), Price.Low)
End If
If Single.IsNaN(High(1)) = True Then
Plot = Single.NaN
Else
Plot = (High(1) + Low(1) + Close1) / 3
End If
the high(1) be the yesterday high, low(1) be the yesterday low, and close1 be the yesterday close, right?
|
hi Bruce,
on realcode, how to get the yesterday low, high, close of current chart symbol. i understand if on daily chart i can use the realcode above to get the yesterday bar value but only 15 minute chart i am geting last bar of yesterday value.
thank you again
|
thank you Bruce,
now i understand the price.datevalue.day <> price.datevalue910.day that gives me the condition of today and yesterday. am i correct?
|
hi Bruce,
can you help me to write the realcode for an indicator or the BLOCK
30 minutes chart or 5 minutes chart
i like to plot the constant number of yesterday ending value of one indicator on my chart.
for example, 5 minutes chart, 20 moving average, the value of yesterday ending for the ma is 1600, i want to plot 1600 through today range on 5 minutes chart; if day before yesterday ma value is 1606 then plot 1606 through the whole day of yesterday, so on..
allen
|
okay, thank you
that works for me.
|
Hi Bruce,
thank you for the real code, it works great.
I like to ask if I like to plot the lowest point of last 10 period when the crossing occur.
do i change lowest=minlow(10) only or change both lowest=minlow(10) and lowest=system.math.min(lowest,minlow(10))
|
Hi Bruce,
I would like to ask for your help to write a realcode indicator.
actually, 2 realcodes (both about the same);
indicator 1: plot the highest point of the price above the 50 moving average and remain the same after current close across below the 50moving average until the current close above the moving average;
indicator 2: plot the lowest point of the price below the 50 moving average and remain the same after current close across above the 50 moving average until the current close below the moving average.
can you also show me how to put both indicators in one realcode?
thank you
|
thank you Bruce,
please show me how to set a label for a bar in a realcode indicator, I just want the current bar number to be show.
|
Hi
is there a way to create an indicator that showing the message in huge font size for example, to show the current close of sp500 "1500 sp500" on mid of the chart in font size 40 or bigger (ajustable)?
Thanks
|
i got it, thanks.
i click on the wrong main chart .latest price. the one for comparison.
Thank you very much.
|
|