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

70/1030 EMA CROSSOVER WITH TRAILING STOPLOSS for Amibroker (AFL)
richjohn
almost 15 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
trading system, amibroker, moving average

This 70/1030 EMA Crossover with trailing Stoploss in a 1 Minute Timeframe will generate good results.

Similar Indicators / Formulas

Positional trading
Submitted by technotrader almost 11 years ago
Guppy MMA Convergence Divergence Histogram
Submitted by walid over 14 years ago
Debdulal And Soumya
Submitted by siivaramm over 14 years ago
Moving Average Difference
Submitted by rananjay00007 about 15 years ago
Super TEMA
Submitted by HARI123 over 14 years ago
1453 Fatih
Submitted by acarlar33 almost 12 years ago

Indicator / Formula

Copy & Paste Friendly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
_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();
 
 
_SECTION_BEGIN("Volume");
Plot( Volume, _DEFAULT_NAME(), ParamColor("Color", colorBlueGrey ), ParamStyle( "Style", styleHistogram | styleOwnScale | styleThick, maskHistogram  ), 2 );
_SECTION_END();
 
_SECTION_BEGIN("EMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 1050, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 
_SECTION_BEGIN("EMA2");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 
//USE THIS WITH 1 MINUTE TIMEFRAME
 
Range1=Optimize("range1",70,50,80,5);
Range2=Optimize("range2",970,500,1050,5);
 
StopLevel = Param("trailing stop %", 0.7, 0.1, 10, 0.1 );
 
SetTradeDelays(0,0,0,0);
 
Buy = Cross( EMA(Close,Range1), EMA(Close,Range2));
Sell = 0;
ApplyStop( stopTypeTrailing, stopModePercent, StopLevel, True );
  
Equity( 1, 0 ); // evaluate stops, all quotes
 
InTrade = Flip( Buy, Sell );
 
SetOption("EveryBarNullCheck", True );
stopline = IIf( InTrade, HighestSince( Buy, High ) * ( 1 - 0.01 * StopLevel ), Null );
 
PlotShapes(Buy*shapeUpArrow,colorGreen,0,Low);
 
PlotShapes(Sell*shapeDownArrow,colorRed,0,High);
 
 
 
 
//Plot( Close,"Price",colorBlack,styleBar);
Plot( stopline, "trailing stop line", colorRed );
 
 
Short = Cross( EMA(Close,Range2), EMA(Close,Range1));
Cover = 0;
ApplyStop( stopTypeTrailing, stopModePercent, StopLevel, True );
  
Equity( 1, 0 ); // evaluate stops, all quotes
 
InTrade1 = Flip( Short, Cover );
 
SetOption("EveryBarNullCheck", True );
stopline = IIf( InTrade1, LowestSince( Short, Low ) * ( 1 + 0.01 * StopLevel ), Null );
 
PlotShapes(Short*shapeDownArrow,colorRed,0,High);
PlotShapes(Cover*shapeUpArrow,colorGreen,0,High);
 
 
//Plot( Close,"Price",colorBlack,styleBar);
Plot( stopline, "trailing stop line", colorRed );

0 comments

Leave Comment

Please login here to leave a comment.

Back