Documente Academic
Documente Profesional
Documente Cultură
p = 250;
p = 125;
_SECTION_END();
_SECTION_BEGIN("RWILO");
minperiods = Param( "Min Periods", 9, 1, 200, 1 );
maxperiods = Param( "Max Periods", 40, 1, 200, 1 );
Plot( RWILo( minperiods, maxperiods) , _DEFAULT_NAME(), ParamColor( "Color",
colorCycle ), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("Line");
Line = Param( "Line", 1 );
Plot( Line, "Line", colorRed, styleThick | styleDashed | styleNoLabel );
_SECTION_END();
_SECTION_BEGIN("RWI System");
Sell = Cross( Line, RWIHi( minperiods, maxperiods));
Buy = Cross( RWILo( minperiods, maxperiods), Line);
Code 4
// Downloaded From www.WiseStockTrader.com
_SECTION_BEGIN( "Mother Candle Formation Strategy" );
/*
Here is another Trade Plan using simple candlestick analysis.
The idea on this strategy is to catch a break from a sudden move of a big
candle move.
It can be done on any time series of chart, but recommended on the 10 or 60
minute charts.
Only one trade Per symbol per day,recommended to trade in minimum 7 symbols
(mini lots).
Optimization can be done only on profit and target for Entry we are using a
plugin named "MotherCandle".
Plugin should be placed into amibroker (c/programfiles/amibroker/plugins)
folder.
This AFL will work only if microsoft visual c++ 2017 redistributable package
(x86).
You Can dowload from microsoft website
https://go.microsoft.com/fwlink/?LinkId=746571.
SetPositionSize( 1, spsShares );
SetBarsRequired( sbrAll, sbrAll );
GraphXSpace = 10;
DN = DateNum();
TN = TimeNum();
function Asign( x )
{
y = Null;
return y;
}
BuyPrice = Null;
ShortPrice = Null;
BYPRSV = Null;
SHPRSV = Null;
LF1 = False;
LF2 = False;
SF1 = False;
SF2 = False;
LSL = Null;
SSL = Null;
LTGT = Null;
STGT = Null;
count = 0;
// Long Trade
if( BuyTrig[i] != 0 && High[i] >= BuyTrig[i] && LF1 == False && LF2 ==
False && DayStart[i] == False && count < DaysTrades )
{
Buy[i] = True;
LF1 = True;
BYPRSV = BuyTrig[i];
LF2 = True;
count++;
}
// Short Trade
if( ShortTrig[i] != 0 && Low[i] < ShortTrig[i] && SF1 == False && SF2 ==
False && DayStart[i] == False && count < DaysTrades )
{
Short[i] = True;
SF1 = True;
SHPRSV = ShortTrig[i];
SF2 = True;
count++;
}