Professional Documents
Culture Documents
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++;
}
_SECTION_END();