Устанавливаете как индикатор на чарт ....на 15мин работает лучше всего. В скрипте полностью отключен фильтр сигналов...это место где #and close > ma и #and close < ma ....чтобы его включить нужно просто удалить символ # в обоих местах. Если у вас есть идея как это можно отфильтровать более качественно, например каким то вашим индикатором, то напишите здесь. Вдруг найдете что то интересное...
input TrendAverageType = AverageType.WILDERS;
input price = hl2;
input length = 13;
input displace = 8;
def ma = MovingAverage(TrendAverageType, price, length)[displace];
def Upcond1 = (low[1] - low)/low[1] >= 0.0009;
def Upcond2 = low < low[1] and low < low[2] and low < low[3];
def Upcond3 = ((close - low)/(high-low))<= 0.33;
def Upcond4 = low[1] < low[2];
def Upcond5 = close[1] < close[2];
def Upcond6 = high[1]<=high[2];
plot Upsignal = if Upcond1 and Upcond2 and Upcond3 and Upcond4 and Upcond5 and Upcond6 #and close > ma
then 1 else double.nan;
def Dncond1 = (high - high[1])/high[1] >= 0.0009;
def Dncond2 = high > high[1] and high > high[2] and high > high[3];
def Dncond3 = ((high - close)/(high-low))<= 0.33;
def Dncond4 = high[1] > high[2];
def Dncond5 = close[1] > close[2];
def Dncond6 = low[1]>=low[2];
plot Dnsignal = if Dncond1 and Dncond2 and Dncond3 and Dncond4 and Dncond5 and Dncond6 #and close < ma
then 1 else double.nan;
Upsignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Dnsignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
что это? можно скачать посмотреть?
Авг 21 2012, 18:54Устанавливаете как индикатор на чарт ....на 15мин работает лучше всего. В скрипте полностью отключен фильтр сигналов...это место где #and close > ma и #and close < ma ....чтобы его включить нужно просто удалить символ # в обоих местах. Если у вас есть идея как это можно отфильтровать более качественно, например каким то вашим индикатором, то напишите здесь. Вдруг найдете что то интересное...
Авг 21 2012, 19:55input TrendAverageType = AverageType.WILDERS;
input price = hl2;
input length = 13;
input displace = 8;
def ma = MovingAverage(TrendAverageType, price, length)[displace];
def Upcond1 = (low[1] - low)/low[1] >= 0.0009;
def Upcond2 = low < low[1] and low < low[2] and low < low[3];
def Upcond3 = ((close - low)/(high-low))<= 0.33;
def Upcond4 = low[1] < low[2];
def Upcond5 = close[1] < close[2];
def Upcond6 = high[1]<=high[2];
plot Upsignal = if Upcond1 and Upcond2 and Upcond3 and Upcond4 and Upcond5 and Upcond6 #and close > ma
then 1 else double.nan;
def Dncond1 = (high - high[1])/high[1] >= 0.0009;
def Dncond2 = high > high[1] and high > high[2] and high > high[3];
def Dncond3 = ((high - close)/(high-low))<= 0.33;
def Dncond4 = high[1] > high[2];
def Dncond5 = close[1] > close[2];
def Dncond6 = low[1]>=low[2];
plot Dnsignal = if Dncond1 and Dncond2 and Dncond3 and Dncond4 and Dncond5 and Dncond6 #and close < ma
then 1 else double.nan;
Upsignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Dnsignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);