Simple Coding Help - No Promise.

trash

Well-Known Member
Hello Friends,

This query is not exactly related to coding but a setting which I am not able to achieve other than the Layout option.

In the below pic I have arranged a symbol NIFTY tiled vertically for various Time Frames at once. The problem is that if I want to change a symbol for looking at the various TF charts for another scrip or symbol , I have to select the symbol for each chart. I have made a layout for 2-3 symbols but still if I need to check say 10 or 15 more symbols , then do I have to make layout for each symbol separately or is there any other method instead of creating the Layout.

If there is some other method than layout , then please enlighten me with the fact.

Thanks In Advance.
It is right in front of your eyes and it is called "Symbol link".

 

vijkris

Learner and Follower
hi dear my friends
will plz share your plugin and afl?
it should already be present in ur pc.
can u pls try loading the afl in analysis window and click explore ?
 
will you plz add scan/explorer to

Code:
_SECTION_BEGIN("schaff");
MA1=23;
MA2=50;
TCLen=10;
MA1=Param("ShortMACDLen",23,5,36);
MA2=Param("LOngMACDLen",50,10,100);
TCLen=Param("TCLen(StochPeriod)",10,5,20);
Factor=.5;
//Calculate a MACD Line
XMac = MACD(MA1,MA2) ; // MACD in Amibroker always uses Close for MACD calculation
 
//1st Stochastic: Calculate Stochastic of a MACD
Value1 = LLV(XMac, TCLen);
Value2 = HHV(XMac, TCLen) - Value1;
 
//Frac1=1; // prime Frac1 to a default of 1
//Frac1 = IIf(Value2 > 0, ((XMac - Value1) / Value2) * 100, Ref(FRAC1,-1));
// have to "prime" first value so that reference to "i-1" does not result in subscript out of range
// since MACD for both periods is not defined until MA2 period, 0 seems to be mathematically correct priming value
frac1=0;
for (i = 1; i < BarCount; i++) {
if (Value2[i] > 0) {
    frac1[i] = ((XMac[i] - Value1[i])/Value2[i])*100;
    }
else {
    frac1[i]= frac1[i-1];
    }
}
 
//Smoothed calculation for %FastD of MACD
 
PF[0]=frac1[0]; 
PF[1]=frac1[1];
for (i = 2; i < BarCount; i++) {
    PF[i]=PF[i-1]+(Factor*(frac1[i]-PF[i-1]));
}
 
 
//2nd Stochastic: Calculate Stochastic of Smoothed Percent FastD, above.
Value3 = LLV(PF, TCLen);
Value4 = HHV(PF, TCLen) - Value3;
 
//%FastK of PF
/*
Frac2=1;
Frac2 = IIf(Value4 > 0, ((PF - Value3) / Value4) * 100, Ref(FRAC2,-1));
*/
 
frac2[0]=0;
for (i = 1; i < BarCount; i++) {
    if (Value4[i] > 0 ) {
        frac2[i]=((PF[i] - Value3[i])/Value4[i])*100;
    }
    else {
        frac2[i]=frac2[i-1];
    }
}
 
//Smoothed calculation for %FastD of PF
PFF[0]=frac2[0];
PFF[1]=frac2[1];
for (i = 2; i < BarCount; i++) {
    PFF[i]=PFF[i-1]+(Factor*(frac2[i]-PFF[i-1]));
}
 
Plot(pff,"STLC",colorRed,styleLine);
Plot(75,"",colorBlue,styleLine|styleDashed);
Plot(25,"",colorYellow,styleLine|styleDashed);
_SECTION_END();
:clapping::clapping::clapping:
 

amitrandive

Well-Known Member
will you plz add scan/explorer to

Code:
_SECTION_BEGIN("schaff");
MA1=23;
MA2=50;
TCLen=10;
MA1=Param("ShortMACDLen",23,5,36);
MA2=Param("LOngMACDLen",50,10,100);
TCLen=Param("TCLen(StochPeriod)",10,5,20);
Factor=.5;
//Calculate a MACD Line
XMac = MACD(MA1,MA2) ; // MACD in Amibroker always uses Close for MACD calculation
 
//1st Stochastic: Calculate Stochastic of a MACD
Value1 = LLV(XMac, TCLen);
Value2 = HHV(XMac, TCLen) - Value1;
 
//Frac1=1; // prime Frac1 to a default of 1
//Frac1 = IIf(Value2 > 0, ((XMac - Value1) / Value2) * 100, Ref(FRAC1,-1));
// have to "prime" first value so that reference to "i-1" does not result in subscript out of range
// since MACD for both periods is not defined until MA2 period, 0 seems to be mathematically correct priming value
frac1=0;
for (i = 1; i < BarCount; i++) {
if (Value2[i] > 0) {
    frac1[i] = ((XMac[i] - Value1[i])/Value2[i])*100;
    }
else {
    frac1[i]= frac1[i-1];
    }
}
 
//Smoothed calculation for %FastD of MACD
 
PF[0]=frac1[0]; 
PF[1]=frac1[1];
for (i = 2; i < BarCount; i++) {
    PF[i]=PF[i-1]+(Factor*(frac1[i]-PF[i-1]));
}
 
 
//2nd Stochastic: Calculate Stochastic of Smoothed Percent FastD, above.
Value3 = LLV(PF, TCLen);
Value4 = HHV(PF, TCLen) - Value3;
 
//%FastK of PF
/*
Frac2=1;
Frac2 = IIf(Value4 > 0, ((PF - Value3) / Value4) * 100, Ref(FRAC2,-1));
*/
 
frac2[0]=0;
for (i = 1; i < BarCount; i++) {
    if (Value4[i] > 0 ) {
        frac2[i]=((PF[i] - Value3[i])/Value4[i])*100;
    }
    else {
        frac2[i]=frac2[i-1];
    }
}
 
//Smoothed calculation for %FastD of PF
PFF[0]=frac2[0];
PFF[1]=frac2[1];
for (i = 2; i < BarCount; i++) {
    PFF[i]=PFF[i-1]+(Factor*(frac2[i]-PFF[i-1]));
}
 
Plot(pff,"STLC",colorRed,styleLine);
Plot(75,"",colorBlue,styleLine|styleDashed);
Plot(25,"",colorYellow,styleLine|styleDashed);
_SECTION_END();
:clapping::clapping::clapping:
Read in detail before adding anything to exploration or buy/sell arrows.
You define buy and sell .

http://mediaserver.fxstreet.com/Rep...886c/ebfbf387-4b27-4a0f-848c-039f4ab77c00.pdf
 
I watch multiple timeframe 60 minute chart, 30 minute chart and 15 minute chart.
Do you know any afl that can give 60 minute candlestick signal on 30 minute candlestick ?
P.S. I use candlestick chart.
Example: 60 minute chart is green , it prints 60 minute green candle signal on 30 minute chart,I need to write arrow here
Is any afl as this?
(60 minute chart.
Candle is green , my meaning bullish.
When 60 minute has bullish candlestick, it show arrow on 30 minute chart .)

regards

http://www.traderji.com/software/101822-need-your-help-multitimeframe.html#post1156248

Do you know similar afl for candlestick?
 
I watch multiple timeframe 60 minute chart, 30 minute chart and 15 minute chart.
Do you know any afl that can give 60 minute candlestick signal on 30 minute candlestick ?
P.S. I use candlestick chart.
Example: 60 minute chart is green , it prints 60 minute green candle signal on 30 minute chart,I need to write arrow here
Is any afl as this?
(60 minute chart.
Candle is green , my meaning bullish.
When 60 minute has bullish candlestick, it show arrow on 30 minute chart .)

regards

http://www.traderji.com/software/101822-need-your-help-multitimeframe.html#post1156248

Do you know similar afl for candlestick?


When you do use expandlast


When you do use expandfirst



It's not right arrows.
 
Last edited:

Similar threads