Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

HIT THE NAIL for Amibroker (AFL)

Rating:
2 / 5 (Votes 3)
Tags:
amibroker

Most of the time an AFL signals’ a BUY/SELL, “values”, among “OPEN, HIGH, LOW or CLOSE”, VALUES at the selected time frame.

Here is an example that gives the EXACT VALUE of signals for BUY/SELL.
(Explanation: if cross over happens at a candle/bar at a value of say 167 and candles’ Open is at 165, close is at 174 and high is 179 and low is 165, in normal case signal will be at close of 174.If we get the signal at EXACT VALUE here at 167, will it not be an add advantage? )

This is a moving average cross-over code that tells how to get EXACT VALUE for a BUY/SELL signal at the time frame selected.(Change the moving average as per need)

One can use the “Way Of Thinking”, to write or add on in other AFL’s, where the price moves in a very competitive environment, such as commodity or forex or in derivative segments.

Screenshots

Similar Indicators / Formulas

Kavach Of Karna v2
Submitted by hbkwarez about 5 years ago
Advanced Elliott Waves
Submitted by MarcosEn over 7 years ago
3_6Day GuaiLiLv
Submitted by motorfly over 7 years ago
Williams Alligator System
Submitted by durgesh1712 almost 8 years ago
*Level Breakout system*
Submitted by Tinych almost 8 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Exact cross over");
// Plotting the Price;
Plot (C,"close",colorBlack ,styleCandle );
//Plotting Fast EMAs;
Plot(EMA(C,3) ,"3ema",colorBlue ,styleLine );
//Plotting Slow EMAs
Plot(EMA(C,60) ,"60ema",colorRed ,styleLine );
// calculation of crossover value;
g=(EMA(Close, 3) * (2 / 4 - 1)-EMA(Close, 60) * (2 / 61 - 1)) / (2 /4- 2 /61);
// explanation : 2/4 is actually 2/(Fast ema+1) and 2/61 is 2/(slow ema+1)
e=Ref(g,-1);
//buy or sell conditions;
Buy=Cross( EMA(C,3), EMA(C,60));
Sell=Cross( EMA(C,60), EMA(C,3));
// Plotting shapes;
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorBrightGreen, colorRed ),0, IIf( Buy, Low, High ) );
//displaying signals with crossover value;
GraphXSpace = 5;
dist = 1.5*ATR(5); 
for( i = 0; i < BarCount; i++ ) 
{if( Buy[i] ) PlotText( "Buy\n@" + e[ i ], i, L[ i ]-dist[i], colorBrightGreen ); 
if( Sell[i] ) PlotText( "Sell\n@" + e[ i ], i, H[ i ]+dist[i], 
colorRed); 
} 
//Title;
_N(Title = "{{NAME}} - {{INTERVAL}} {{DATE}}: "+" : {{OHLCX}} " +EncodeColor( colorRed) +" V  "+WriteVal(V, 1)+" Lot Size  "+WriteVal(RoundLotSize,1.0) +"  Margin"+WriteVal( MarginDeposit, 1.0)+
 "\n"+EncodeColor( colorDarkGreen) + "  Next crossover value "+WriteVal(g, 1.2));
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.

Back