Hello,
Can an efs be set up that's based on the below formula from another online co (amibroker)?
Here's the formula, and thank you in advance!! I really want to test it out in esignal.
("MACD");
TimeFrameSet( in5Minute );
r1 = Param( "Fast avg", 4, 2, 200, 1 );
r2 = Param( "Slow avg", 13, 2, 200, 1 );
r3 = Param( "Signal avg", 1, 1, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
_SECTION_END();
MiddleLine = 0;
BuyLine = 0.005;
SellLine = -0.005;
Plot( MiddleLine, "ML", colorAqua,
styleLine);
Buy=Cross (ml, BuyLine);
Sell= Cross (SellLine, ml );
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
PlotShapes(Buy*shapeUpArrow,colorGreen);
PlotShapes(Sell*shapeDownArrow,colorRed);
GraphXSpace = Param("16} Graphxspace",3,0,100,1);
Can an efs be set up that's based on the below formula from another online co (amibroker)?
Here's the formula, and thank you in advance!! I really want to test it out in esignal.
("MACD");
TimeFrameSet( in5Minute );
r1 = Param( "Fast avg", 4, 2, 200, 1 );
r2 = Param( "Slow avg", 13, 2, 200, 1 );
r3 = Param( "Signal avg", 1, 1, 200, 1 );
Plot( ml = MACD(r1, r2), StrFormat(_SECTION_NAME()+"(%g,%g)", r1, r2), ParamColor("MACD color", colorRed ), ParamStyle("MACD style") );
Plot( sl = Signal(r1,r2,r3), "Signal" + _PARAM_VALUES(), ParamColor("Signal color", colorBlue ), ParamStyle("Signal style") );
Plot( ml-sl, "MACD Histogram", ParamColor("Histogram color", colorBlack ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
_SECTION_END();
MiddleLine = 0;
BuyLine = 0.005;
SellLine = -0.005;
Plot( MiddleLine, "ML", colorAqua,
styleLine);
Buy=Cross (ml, BuyLine);
Sell= Cross (SellLine, ml );
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
PlotShapes(Buy*shapeUpArrow,colorGreen);
PlotShapes(Sell*shapeDownArrow,colorRed);
GraphXSpace = Param("16} Graphxspace",3,0,100,1);