Simple Coding Help - No Promise.

h t t p : / / freefincal. c om / historical-stock-price-downloader /

Hi frnds here is excel file which downloads historical stock prices from year 2000 with adjusted split n bonus ....but the problem is,data is not cuming in excel file means it downloads d data but column remains blank....so plz someone correct it for us.....
 
Friends,

This is not related to any coding.
I have got a registered version of amibroker today and data from global data feed since 11 feb'2015. Before market opening, I was able to get all the data since 11 feb'2015. Actually I was trying to get hourly charts. But as soon as market opens, I as not able to get live data. Restarted Amibroker and then able to see live data but only from 28th feb. and not from 11th feb..
Please if anyone can help on this issue.
 
The Government of India, with a special request from the Vatican Pope, has recently announced that from now onwards, first of every calendar month will be celebrated as a Fool's Day. According to the official Government spokesperson, there are far too many fools in India who have been endlessly believing in a politician after politician and their contribution to the rise in greatness of this great country has never before been acknowledged ...
 

Nehal_s143

Well-Known Member
h t t p : / / freefincal. c om / historical-stock-price-downloader /

Hi frnds here is excel file which downloads historical stock prices from year 2000 with adjusted split n bonus ....but the problem is,data is not cuming in excel file means it downloads d data but column remains blank....so plz someone correct it for us.....
Friends,

This is not related to any coding.
I have got a registered version of amibroker today and data from global data feed since 11 feb'2015. Before market opening, I was able to get all the data since 11 feb'2015. Actually I was trying to get hourly charts. But as soon as market opens, I as not able to get live data. Restarted Amibroker and then able to see live data but only from 28th feb. and not from 11th feb..
Please if anyone can help on this issue.
Please post queries only related to Amibroker AFL Coding or else thread may get diverted to other topics
 
I have defined Buy Sell Conditions. Now i want to define one more condition for Sell if there is a Close below the Buy Candle. I am putting a sample code below. Now, whenever there is a close below the buy candle, i want the sell to occur. Its like reversing the failed buy trade.

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
_N( Title = Title +"\n" + _DEFAULT_NAME() );

Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

Buy = Close > Open
AND MACD( 12, 26 ) > MACD( 6, 13 );

Sell = Close < Open
AND MACD( 12, 26 ) < MACD( 6, 13 );

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,Low,Offset=-15);

PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),coloryellow,0,Low,Offset=-50);
 
Last edited:

casoni

Well-Known Member
I have defined Buy Sell Conditions. Now i want to define one more condition for Sell if there is a Close below the Buy Candle. I am putting a sample code below. Now, whenever there is a close below the buy candle, i want the sell to occur. Its like reversing the failed buy trade.

SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
_N( Title = Title +"\n" + _DEFAULT_NAME() );

Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

Buy = Close > Open
AND MACD( 12, 26 ) > MACD( 6, 13 );

Sell = Close < Open
AND MACD( 12, 26 ) < MACD( 6, 13 );

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBlue,0,Low,Offset=-15);

PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),coloryellow,0,Low,Offset=-50);

Buyz = Close > Open AND MACD( 12, 26 ) > MACD( 6, 13 );
Sellz = Close < Open AND MACD( 12, 26 ) < MACD( 6, 13 );
Buy=buyz;
Sell=sellz OR Cross(ValueWhen(Buy,L),C);
 

manish9300

Well-Known Member
HI there,
i need some coding help.

HiVolume = IIf(V > (2 * MA(V,10)), True, False);
PlotShapes(shapeSmallCircle * HiVolume, IIf(C > O, colorGold, colorBlue), 0, (O+C)/2, 0);

In the above code instead of plotting shapes i want to plot rectangle , starting at high low of the candle and plot ending only when a candle closes over the high/low of the candle in future.
 

nifty trade

Well-Known Member
is there any AFL which can set stops based on closing below previous candles ? and draws a small line to show that stop , also it could be possible to configure it to set stop based on closing below N number of previous candles ?
 

Similar threads