여기에 제목 텍스트 추가
// This is a multi-timeframe Parabolic SAR indicator which uses 1day and 1 week charts.
// Using this indicator is simple, if the LifeTime line is green then buy,
if red then sell OR don’t trade. So…
// Green Line – This strategy is in a buy position
// Red Line – This strategy is in a sell position
// Any other colour – DON’T TRADE
// The traders approach is simple, when all indicators are green or red,
then take the trade. As soon as one indicator changes, then
// re-evaluate using your normal process, such as price action,
to determine whether to close the trade or continue.
// Written by Nelly H
//@version=4
study(title=“Parabolic SAR (MTF)Plot Day Week my”,
shorttitle=“PSAR (MTF)D W My”, precision = 2,overlay=true)
// ————————SAR ———————————————————————————-
PSAR(TPeriod) =>
start = input(0.02)
increment = input(0.02)
maximum = input(0.2, “Max Value”)
out = security(syminfo.tickerid, TPeriod, sar(start, increment, maximum))
// SARRes = iff(out < close, 1, -1)
SARFrame = out
// SARFrame = sar(start, increment, maximum)
MonthSAR = PSAR(“1M”)
plot(MonthSAR , “ParabolicSAR”, style=plot.style_cross, color=#FF000080)
WeekSAR = PSAR(“1W”)
plot(WeekSAR, “ParabolicSAR”, style=plot.style_cross, color=#2962FF)
DaySAR = PSAR(“1D”)
plot(DaySAR, “ParabolicSAR”, style=plot.style_cross, color=#FFFFFF)
HourSAR = PSAR(“60”)
plot(HourSAR, “ParabolicSAR”, style=plot.style_cross, color=#00E676)
Input : af(0.02), maxAf(0.2);
If CrossUp(C, SAR(af,maxAF)) Then
{
If C == C[1] Then
value1 = 0.001;
Else
value1 = (C-C[1])/C[1]*100;
}
Else
value1 = 0;
Find(value1);