Rajandran R FollowCreator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.
Home » Amibroker » How to Post/Share your Code in Marketcalls Community?
How to Post/Share your Code in Marketcalls Community?
35 sec read
When you are participating in Marketcalls Community if you concerns in building your trading system codes sometimes you have to post lengthier codes (AFL, mql4, easylanguage codes). While posting in our community it looses its readability so to sort out the issue introduced github gist integration with marketcalls. Just by following few steps now you will be able to share code with other community members without loosing readability.
Signup and Post your Code to Github Gist
Goto Github Gist`Signup and Post your code as shown below
AMIBROKER
Masterclass on AmiBroker AFL coding
Write trading systems, explorations and backtests in AFL, and use ChatGPT to code faster.
Rajandran R FollowCreator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.
hii , i am looking fr a particular breakout strategy in stocks. as it is impossible to keep a watch on many stocks at the same time, i want a trading terminal where i can code my strategy for intraday and i get an alert (from say 100 scripts)whenever the script matches my condition.
i wanted to know that if this is possible with amibroker software or is there any other software available in the market which costs less than amibroker (the strategy is quite simple).
Hi Sir,
I have applied a ALF in Amibroker it is taken from wisestock site i want to apply sound alert in the same pls help me.
ALF code as below
_SECTION_BEGIN(“Price”);
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 ) ) ));
Plot( C, “Close”, ParamColor(“Color”, colorBlack ), styleNoTitle | ParamStyle(“Style”) | GetPriceStyle() );
_SECTION_END();
Buy = EMA( Close , 3 ) > EMA( Close , 10 )
AND RSI( 14 ) > 50;
Sell = EMA( Close , 3 ) < EMA( Close , 10 )
AND RSI( 14 ) < 50;
Short = EMA( Close , 3 ) < EMA( Close , 10 )
AND RSI( 14 ) EMA( Close , 10 )
AND RSI( 14 ) > 50;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
Short = ExRem(Short,Cover);
Cover = ExRem(Cover,Short);
// Code to plot signals
dist = .5*ATR(10);
for( i = 0; i < BarCount; i++ )
{
if( Buy[i] ) PlotText( "Buy Signal\n@" + C[ i ], i, L[ i ]-dist[i],colorWhite, colorBlue );
if( Sell[i] ) PlotText( "Sell Signal\n@ " + C[ i ], i, H[ i ]+dist[i],colorRed, colorYellow );
//if( Short[i] ) PlotText( "Short\n@" + C[ i ], i, H[ i ]+dist[i], colorRed, colorYellow );
//if( Cover[i] ) PlotText( "Cover\n@" + C[ i ], i, L[ i ]-dist[i],colorGreen );
}
PlotShapes( Buy * shapeUpTriangle + Sell* shapeDownTriangle, IIf( Buy,colorBlue, colorYellow ) );
// PlotShapes( Sell * shapeDownTriangle + Sell * shapeDownTriangle, IIf( Buy,colorGreen, colorRed ) );
// Sound
AlertIf( Buy, "SOUND C:Program Files (x86)AmiBrokerFormulasCustom", "Buy alert", 2 );
AlertIf( Sell, "SOUND C:Program Files (x86)AmiBrokerFormulasCustom", "Sell alert", 3 );
_SECTION_BEGIN("Background text");
SetChartBkColor(colorLightBlue);
GraphXSpace=Param("GraphXSpace",10,-45,200,1);
C13=Param("fonts",20,10,30,1 );
C14=Param("left-right",2.1,1.0,5.0,0.1 );
C15=Param("up-down",12,1,20,1 );
Miny = Status("axisminy");
Maxy = Status("axismaxy");
lvb = Status("lastvisiblebar");
fvb = Status("firstvisiblebar");
pxwidth = Status("pxwidth");
pxheight = Status("pxheight");
GfxSetBkMode(transparent=1);
GfxSetOverlayMode(1);
GfxSelectFont("Candara", Status("pxheight")/C13 );
GfxSetTextAlign( 6 );
GfxSetTextColor( ColorRGB (217,217,213));
GfxTextOut( Name(), Status("pxwidth")/C14, Status("pxheight")/C15 );
GfxSelectFont("Tahoma", Status("pxheight")/C13*0.5 );
GfxSetTextColor( ColorRGB (103,103,103));
GfxTextOut( "By", Status("pxwidth")/C14, Status("pxheight")/C15*2.5 );
GfxSelectFont("Candara", Status("pxheight")/C13*0.5 );
GfxSetTextColor( ColorRGB (103,103,103));
GfxTextOut( "HAR HAR MAHADEV – YOGRAJ R. JADEJA", Status("pxwidth")/C14, Status("pxheight")/C15*4 );
GfxSelectFont("MS Sans Serif", 36, 900, True, True, 0);
_SECTION_END();
_SECTION_BEGIN("Title");
DODay = TimeFrameGetPrice("O", inDaily);
DHiDay = TimeFrameGetPrice("H", inDaily);
DLoDay = TimeFrameGetPrice("L", inDaily);
Title = EncodeColor(colorWhite)+"* YOGRAJ R. JADEJA * "+EncodeColor(colorWhite)+ Name() + ", " + Interval(2) + ", " + Date() +
EncodeColor(colorWhite) + "\nO " + EncodeColor(colorWhite) + O +
", H : " + H +
", L : " + L +
", C : " + C +
EncodeColor(colorWhite)+ "\n Day-Open : " +DODay + " Day-High : " +DHiDay + " Day-Low : " + DLoDay
;
_SECTION_BEGIN("Magnified Market Price");
//by Vidyasagar, [email protected]//
FS=Param("Font Size",30,11,100,1);
GfxSelectFont("Times New Roman", FS, 700, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorBlack) );
Hor=Param("Horizontal Position",650,1,1200,1);
Ver=Param("Vertical Position",1,1,830,1);
GfxTextOut(""+C, Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Times New Roman", 11, 700, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor(ParamColor("Color",colorBlack) );
GfxTextOut(""+DD+" ("+xx+"%)", Hor , Ver+45 );
_SECTION_END();
hii , i am looking fr a particular breakout strategy in stocks. as it is impossible to keep a watch on many stocks at the same time, i want a trading terminal where i can code my strategy for intraday and i get an alert (from say 100 scripts)whenever the script matches my condition.
i wanted to know that if this is possible with amibroker software or is there any other software available in the market which costs less than amibroker (the strategy is quite simple).